Fitting a Negative Binomial to Comments per Facebook Post
Last updated: November 29, 2026
Quick Overview
Comments per post on a Facebook Page have sample mean 4 and sample variance 20. Show why a Poisson model is wrong, fit a negative binomial by the method of moments, and use it to estimate the share of posts with zero comments.
Meta
November 29, 20260
0
0 solved
Comments per post on a Facebook Page have sample mean 4 and sample variance 20. Show why a Poisson model is wrong, fit a negative binomial by the method of moments, and use it to estimate the share of posts with zero comments.
Count data is everywhere at Meta (comments, shares, reports), and this screen question checks that you can diagnose overdispersion and fit a better distribution. Interviewers want the moment equations, a sanity check against Poisson, and an explanation of where the extra variance comes from.
What the Interviewer Expects
- Compare variance to mean as an overdispersion check
- Write the negative binomial mean and variance in terms of r and p (or mean and dispersion)
- Solve the method-of-moments equations
- Compute P(0) under both models and compare
- Explain the Gamma-Poisson mixture interpretation and mention MLE as the next step
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
- Why might the method-of-moments estimate be unstable, and how does MLE compare?
- How would you test formally for overdispersion?
- What happens to the fitted dispersion if you split posts by type (photo, link, video)?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
- = comments on a post, sample mean , sample variance , a few thousand posts.
- Want a distributional model to answer questions like the share of posts with zero comments....
Approach
Poisson forces . Here the variance is 5 times the mean, a strong sign of overdispersion. The negative binomial, parameterized by mean and size , has