5 replies [Last post]
myke@drupal.org's picture
Offline
Joined: 04/12/2008
Juice: 189
Was this information Helpful?

What would be really nice to see.. would be an Ubercart module for rating products..

But I wouldn't want it to just rank by average ratings.. That could make products unfairly ranked if they don't have very many ratings..

I would propose a Bayesian Ratings system, as detailed here:

http://www.thebroth.com/blog/118/bayesian-rating

Basically, the formula is:

br = ( (avg_num_votes * avg_rating) + (this_num_votes * this_rating) ) / avg_num_votes + this_num_votes)

Legend:

avg_num_votes: The average number of votes of all items that have num_votes > 0
avg_rating: The average rating of each item (again, of those that have num_votes > 0)
this_num_votes: Number of votes for this item
this_rating: The rating of this item

========================================
This would give more weight to products that have more votes, and shift those with less votes more towards the averages..

Comments?

-Myke

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Ratings of products

There are lots of Drupal modules that deal with rating nodes on a site. If it doesn't exist already (but I kind of doubt it does), I think a Bayesian ranking system would be best implemented in VotingAPI or something that implements it.

myke@drupal.org's picture
Offline
Joined: 04/12/2008
Juice: 189
VotingAPI

Can VotingAPI handle calls like that, or would it need to be extended?

(Average number of votes, average rating, etc. ?)

We would probably also need to define Taxonomy terms to include...?

-Myke

RobertoGuzman's picture
Offline
Joined: 12/13/2007
Juice: 15
did u resolve it ?

hi, did u make any implementation of the rating for products ?

Roberto Guzman

myke@drupal.org's picture
Offline
Joined: 04/12/2008
Juice: 189
Rating for products

I did get the Five Star module working before but removed it, per the request of the website owner, since a single 1 star rating could bring a product to the bottom of the list (or a 5 star to the top..)

I'm looking into the possibility of doing a bayesian rating using the VotingAPI (Which may need to be extended to support it.. I'm looking into that but it's in my limited spare time so it will probably be a while..)

-Myke

druphyte's picture
Offline
Joined: 09/02/2009
Juice: 8
Re: Ratings of products

played around with views and fivestar, obviously to implement bayesian averages will need to add that in as a relationship in votingapi.

any progress? i'll check in with the votingapi folks as well.