How Can I Calculate an Unbiased Average Movie Rating?

  • Context: High School 
  • Thread starter Thread starter DaveC426913
  • Start date Start date
  • Tags Tags
    Brain
Click For Summary
SUMMARY

The discussion focuses on calculating an unbiased average movie rating for a website that rates films from 1 to 5. The user initially struggled with the concept of bias in averaging ratings but ultimately clarified that the correct formula involves dividing the weighted sum of ratings by the total number of ratings. The final calculation revealed an average of approximately 3.36, confirming that the user's method was accurate all along. The user also shared their pride in their database-driven reviews and ratings page.

PREREQUISITES
  • Understanding of weighted averages
  • Basic knowledge of arithmetic operations
  • Familiarity with rating systems
  • Experience with database-driven applications
NEXT STEPS
  • Research "weighted average calculations" for better understanding
  • Explore "PHP for database-driven applications" to enhance web development skills
  • Learn about "data visualization techniques" to present movie ratings effectively
  • Investigate "user feedback mechanisms" to improve rating accuracy
USEFUL FOR

This discussion is beneficial for web developers, data analysts, and anyone involved in creating or managing rating systems for media content, particularly in the film industry.

DaveC426913
Gold Member
2025 Award
Messages
24,258
Reaction score
8,381
My website posts my movie reviews and rates them from 1 - 5. I want to post an average*, and I can't figure out how to do it.

Rating Number of movies
1....6
2...10
3...41
4...37
5...12

I can't figure out how to average* them without biasing them in favour of the higher numbers.

(*by average, I mean I should get approx 3.? / 5 .)
 
Physics news on Phys.org
When I average them out I get about 3.36 which I would think is approximately 3.
 
dunno why this is a problem. avg. is
\overline{s}=\sum n_is_i/\sum n_i
This doesn't "bias" to high scores: consider if you had 6 1's and 6 5's and nothing else. You would get avg.=(1*6+5*6)/(1+5)=3 exactly as expected, so what do you mean by this "bias"?
 
krab said:
dunno why this is a problem. avg. is
\overline{s}=\sum n_is_i/\sum n_i
This doesn't "bias" to high scores: consider if you had 6 1's and 6 5's and nothing else. You would get avg.=(1*6+5*6)/(1+5)=3 exactly as expected, so what do you mean by this "bias"?

This is where I am confused.

What do you mean by "bias"?
 
OK, so


(5*12)+(4*37)+(3*41)+(2+10)+(1*6) = 357
1+2+3+4+5 = 15

357/15 = 23.8
 
Oh.

Oh.

It's just 357 / 107.

Duh.
 
DaveC426913 said:
OK, so
(5*12)+(4*37)+(3*41)+(2+10)+(1*6) = 357
1+2+3+4+5 = 15
357/15 = 23.8
Don't divide by the sum of the "choices" divide by the number of total ratings

ie. ((6*1)+(10*2)+(41*3)+(37*4)+(12*5))/(6+10+41+37+12) which is about 3.36
 
I've had it right all along and I keep second-guesing my code. (This is not even the first time I've tried to "fix" it.)

It's been saying 3.3 for a long time now, but that's not because it's "stuck" or broken, that's because 3.3 *is* the point of convergence, and subsequent entries are strongly averaging around it.

BTW, for those interested, my reviews and ratings page is http://www.davesbrain.ca/reviews.php" . It is database driven, and I am rather proud of it.
 
Last edited by a moderator:

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
997
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K