This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-top开发者_Python百科ic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this questionThe arithmetic mean or average is easy to implement since it's often integrated as a function in most programming languages.
However, it's not really appropriate for ratings as several 5 out of 10s would "drag" down the average whereas a single rating of, say, 8 would give a higher average.
What calculation is usually done instead on sites that let you rate pictures or people? I'm supposing that weight is given to a higher number of ratings.
I think your best bet is to ignore the outliers - ie discard the top 10% and the bottom 10% and then calculate the average
Alternatively, maybe re-think exactly what you want to do, maybe have some way of assigning weights to the voters
I've heard online that median is a commonly used alternative to mean, usually in skewed settings. In symetrical data sets, the mean, median and mode are the same.
精彩评论