1/11
Learn

Ranking by ratings, the way the statistics round asks

A Netflix data science guide asks how you would analyze focus-group ratings when each of 1,000 participants rated a random 100 of the pilot episodes (1 source). The same problem sits on every top rated page. This lesson's practice problem builds the tools, in three levels:

  1. bayesian_average(ratings, prior_mean, weight), and rank_by_bayes(items, weight): rank items by their averages after adding imaginary ratings at the overall mean.
  2. wilson_lower(ups, n) and rank_by_wilson(items): rank thumbs-up shares by the lower end of the Wilson interval.
  3. shrink(items), which lets the data choose how hard to pull each average toward the mean, and rater_adjusted(rows), which takes harsh and easy raters' habits out of their scores.
CallReturns
bayesian_average([5, 5, 5], 3.9, 10)4.15: three 5-star ratings move it only a little
wilson_lower(1, 1)0.207
wilson_lower(80, 100)0.711
rater_adjusted(rows), a generous rater and a harsh one{"pilot 1": 6.0, "pilot 2": 7.0, "pilot 3": 7.0}

The lesson follows the shop's tent ratings: what goes wrong when you rank by raw average, Bayesian averages, empirical Bayes, the Wilson bound and rater offsets. Five steps end with a small task in the editor.