I'm looking to make a User rating system. I'm not very good when it comes to these math problems so I figured I'd post what I came up with here for you guys to pick apart.
The site is an 'epinions' type site. Users can post just a product rating with an optional short comment or a full blown epinions style rating/review.
I want people to get a rating credit for posting, then allow other users to rate their submission. It should come up with a number 0-10.
The only thing I could come up with is this..
Code: Select all
UsersRatingVal = (RatingCnt + (ReviewCnt*2) + (helpful votes * .5) - (not helpful votes * .5);
UserRating = (10/MaxUserRatingVal)*UsersRatingVal;Then the only way to actually convert the numebr to a 0-10 rating that I could think of is to compare it to the user with the largest "UserRatingVal".
The problem I see is the weight of the votes. If the site ends up having a lot of users, a person's rating could drop to zero pretty quickly if people start voting not helpful. So the votes need to be weighted in relation to the number of users (?)
This is beyond me. Any help would be great.
Thanks,
Mike