Reputation: 1551
I need some help in finding best logic for vote system which is based on 5 stars.
Logic is like this:
User has to give rating(5 star rating) for 3 questions for one movie or restaurant
For example :
Restaurant name : XYZ
taste : ******
price : ***
service : ****
How we can findout which is best restaurant?
case 1:
Based on total stars (in this case 13)
But,
quest1 quest2 quest3 restaurant
user A 4 4 4 AA
user B 5 5 5 BB
user c 1 1 1 AA
In this case AA and BB has same vote?
case 2 :
Average stars (sum of users rating / number of user rated)
quest1 quest2 quest3 restaurant
user A 5 5 5 AA
user B 5 5 5 BB
user c 1 1 1 AA
In this case, AA = 18/2
BB = 15/1
?
Any suggestions to get better logic?
Upvotes: 1
Views: 153
Reputation: 8338
You will always have ties, so there is no one way to find the best restaurant. For example, 2 restaurants that have all 5 stars.
You could have other data points which support the choice of the restaurant, such as which review was first. The thinking behind this is: the longer a record has been in the system, the more chances it has to have been tested.
You could also have a way to find out which restaurants are the closest to the user and break the tie based on proximity: a 5 star restaurant 1 block away is better than a 5 star restaurant 10 blocks away.
My 2 cents. :)
Upvotes: 1