Understand the idea
The Poisson distribution forces a strict rule: variance must equal the mean. Real count data frequently break that rule: website visits, disease case counts, and product defects often cluster or vary more than a plain Poisson model expects, a pattern called overdispersion.
The negative binomial distribution keeps the same basic idea (counting events) but adds one extra ingredient, a dispersion parameter, that lets the variance be LARGER than the mean by whatever amount the data actually show, instead of forcing them to be equal.
In practice this usually shows up as a modeling choice rather than a raw-data description: fit a Poisson regression first, check whether the residuals are more spread out than the model expects, and switch to negative binomial regression if they are, which changes the standard errors (and therefore the p-values) without necessarily changing the estimated average effect much.
Counts whose variance is larger than their mean are often called overdispersed Poisson counts, and the negative binomial is the usual model for them. The negative binomial can be built as a gamma-Poisson mixture: a Poisson count whose rate itself varies from unit to unit. Negative binomial regression, often shortened to NB regression, models such counts from predictors.
Practitioner explanation
One standard parameterization gives Var(X) = mu + mu^2/theta (or mu + alpha*mu^2 in an equivalent form), where theta (or 1/alpha) is the dispersion parameter; as theta -> infinity the negative binomial converges to the Poisson (alpha -> 0), so Poisson is the special case, not a competing family, and a likelihood-ratio test of alpha = 0 formally tests Poisson adequacy against the negative-binomial alternative.
It also has a direct combinatorial interpretation as the number of Bernoulli failures before a fixed number of successes, distinct from its use as an overdispersed-count regression family; in KernelStats the relevant use is the latter, a drop-in replacement for Poisson regression when overdispersion is detected.
KernelStats' Negative Binomial Regression reports the dispersion parameter alpha with its standard error and confidence interval, an explicit likelihood-ratio test against the nested Poisson model (its statistic and p-value), and a nb_preferred flag, so the choice between Poisson and negative binomial is made on a reported statistical test rather than by inspection alone.
When to use it
Consider it when
For count data whose variance clearly exceeds the mean, confirmed by a dispersion diagnostic or a likelihood-ratio test against the Poisson model.
Use caution when
As a default replacement for Poisson without checking for overdispersion first: when the Poisson assumption genuinely holds, the extra dispersion parameter costs precision for no benefit.
Formulas and symbols
Negative binomial variance
mu is the mean count, theta the dispersion parameter; smaller theta means more overdispersion relative to the mean, and Poisson is the limit as theta -> infinity.
Alternatives
- Poisson Regression. A dispersion check shows the variance is close to the mean; the simpler Poisson model is preferred when it is adequate.
Common misconceptions
Misconception
'Negative binomial' means the data contain negative numbers.
Correction
The name comes from the distribution's mathematical derivation (as a mixture, or via a combinatorial identity involving negative exponents), not from the values it models. It describes non-negative event counts, exactly like the Poisson, just with more flexibility in the variance.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.20 Negative binomial distribution, NIST/SEMATECH (2012), §1.3.6.6.20.
