Shrink Star Ratings for Products With Only a Few Reviews
Last updated: November 29, 2026
Quick Overview
A new product has two 5-star reviews while an established one averages 4.6 over 1,000 reviews. Build a Bayesian estimate of each product's true rating so search and recommendation do not overrank tiny samples, and explain how to set the prior.
Amazon
November 29, 20260
0
0 solved
A new product has two 5-star reviews while an established one averages 4.6 over 1,000 reviews. Build a Bayesian estimate of each product's true rating so search and recommendation do not overrank tiny samples, and explain how to set the prior.
A Bayesian estimation question in the style of an Amazon onsite for Data Scientist roles near Search or Customer Reviews. The interviewer probes whether you can turn a ranking problem into a prior and posterior, choose the prior strength from data, and see the fairness cost to new sellers.
What the Interviewer Expects
- Explains why raw averages overrank small samples
- Sets up a conjugate prior with a pseudo-count interpretation
- Computes posterior means for both products
- Estimates the prior from the category's rating distribution
- Discusses lower bounds versus posterior means for ranking
- Notes the cold-start cost for new legitimate products
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How would you estimate the prior strength from historical data?
- Should the prior be global, per category, or per brand?
- Would you rank by posterior mean or a lower credible bound, and why?
- How does review manipulation interact with shrinkage?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Product A: two reviews, both 5 stars. Product B: 1,000 reviews, mean 4.6. The category average is 4.1. The goal is an estimate of each product's long-run rating that is robust to small samples, for us...
Approach
Treat each product's rating as drawn around a category-level prior. With a conjugate prior the posterior mean is a weighted average of the prior mean and the observed mean, with weight equal to the sa...