How to do rating & popularity
-
i am doing a shopping site where each product is rated
1 2 3 4 5 out of 5
user can click on the number to rate product. i want to know the logic for rating and popularityThis may help ?, lets say 7 users picked rating so , you add the seven picked values and divide them by the nubmer of users picked as: 1 - Picked 3 2 - Picked 4 3 - Picked 4 4 - Picked 2 5 - Picked 5 6 - Picked 4 7 - Picked 3 so the sum is = 27 ,and thier number is 7 sp : The raring is 27/7 which sequal to 3.83.... out of 5 . Hope that helps.
-
This may help ?, lets say 7 users picked rating so , you add the seven picked values and divide them by the nubmer of users picked as: 1 - Picked 3 2 - Picked 4 3 - Picked 4 4 - Picked 2 5 - Picked 5 6 - Picked 4 7 - Picked 3 so the sum is = 27 ,and thier number is 7 sp : The raring is 27/7 which sequal to 3.83.... out of 5 . Hope that helps.
Yep, I would assume rating to simply be the average of all the values as LongHC said. As for popularity, It really depends on what you're talking popularity relative to. Is an item popular if lots of people have purchased it from you site? Or is it popular if lots of people have viewed it? Or is it just popular because you say it is and you're using it as gimmick to sell things? (Like saying "Hey, this new CD is #1 on the Billboard charts, so we'll put it on top of our list of popular new releases") The question is what data are you basing "popularity" on?