Forty shops. One has 860 ratings. Five have exactly one.
Shop #0 has a single rating, and that rating says 80.43 . It sits at the top of the leaderboard. Its true quality is 57.61 — above average, but nowhere near the top of anything.
Partial pooling estimates it at 53.12 , and across all forty shops it cuts total squared error from 1763.35 to 332.54 .
👉 Live, with the shrinkage weight recomputed as you drag the sample size: https://dev48.in/ml/day83-partial-pooling.html
The data is synthetic and seeded
Every number here comes from a seeded generator: 40 groups, sizes 1, 1, 1, 1, 1, 2, … 688, 860 for 4,345 observations , true group means drawn from Normal(50, 4²) and observations from Normal(θ_g, 12²) . That is the entire point of synthesising it — the true group means are known exactly, so every estimator is scored against the truth rather than against another estimate.…