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
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

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
negative binomial
overdispersion
method of moments
Gamma-Poisson mixture
count models
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample Answer
Clarify
  • XX = comments on a post, sample mean xˉ=4\bar x = 4, sample variance s2=20s^2 = 20, a few thousand posts.
  • Want a distributional model to answer questions like the share of posts with zero comments....
Approach

Poisson forces Var(X)=E[X]\text{Var}(X) = E[X]. Here the variance is 5 times the mean, a strong sign of overdispersion. The negative binomial, parameterized by mean μ\mu and size rr, has


Submit Your Answer
Markdown supported