newbtophp Posted December 29, 2009 Share Posted December 29, 2009 OK, bare with me - i've added a rating system (i've defined the mysql row etc., just havent added any way to calculate) to user uploads at my site, so users can vote: 0-5 and its out of 5, but the problem is, im not sure how to calculate the score (how many votes until it gets to 5/5?) , what are you suggestions - thanks Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/ Share on other sites More sharing options...
Daniel0 Posted December 29, 2009 Share Posted December 29, 2009 See: http://en.wikipedia.org/wiki/Arithmetic_mean Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985323 Share on other sites More sharing options...
ignace Posted December 29, 2009 Share Posted December 29, 2009 Aren't there any better choices then to just calculate an average? Many websites use this method and I think it sucks. Look at for example http://www.opensourcecms.com where a certain product receives many votes but a lower average while another product receives less votes but an higher average. Thus if you sort from highest to lowest the second product will show up first while the first has been critised more.. This makes it very unreliable because is a product with 4 stars and 10 votes more reliable then a product with 500 votes and an average of 3? Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985381 Share on other sites More sharing options...
Daniel0 Posted December 29, 2009 Share Posted December 29, 2009 Yes there is, but now you're looking at popularity compared to other things as opposed to looking at an isolated element. Have a look at the binomial proportion confidence interval or the bayesian average. Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985394 Share on other sites More sharing options...
ignace Posted December 29, 2009 Share Posted December 29, 2009 Daniel THANK YOU I've been looking for this with no result and to imagine the keywords were so simple: binomial proportion and bayesian average.. How come actually you know so much about Math? What did you study? Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985399 Share on other sites More sharing options...
Daniel0 Posted December 29, 2009 Share Posted December 29, 2009 I'm studying computer science. A lot comes from reading stuff online though. Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985401 Share on other sites More sharing options...
newbtophp Posted December 30, 2009 Author Share Posted December 30, 2009 See: http://en.wikipedia.org/wiki/Arithmetic_mean I followed your example and some of the scores produce wild numbers such as: 4.8888888888889/5 Which makes it destroy my layout structure. :-\ Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985739 Share on other sites More sharing options...
newbtophp Posted December 30, 2009 Author Share Posted December 30, 2009 Solved thanks to russellreal Quote Link to comment https://forums.phpfreaks.com/topic/186565-php-rating/#findComment-985757 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.