- Introduced by
- Cameron & Trivedi (textbook treatment); Hilbe (negative binomial)
- Year
- 1998
- Type
- Generalized linear model for count data
What does it do?
Poisson regression is a generalized linear model for count outcomes: events tallied as non-negative integers, such as hospital admissions, accidents, or article counts.
It models the logarithm of the expected count as a linear function of the predictors. Cameron and Trivedi (1998) treat this model and its extensions for count data; when the counts are over-dispersed, the closely related negative binomial model (Hilbe, 2011) is the usual alternative.
The intuition behind the method
Many outcomes are not continuous measurements but counts of how often something happens, such as doctor visits, defects, or citations. A straight-line model is poorly suited to counts because its predictions can fall below zero, and counts tend to cluster at small whole numbers. Poisson regression instead models the rate at which events occur by predicting the log of the expected count, so each predictor acts multiplicatively on the rate. Exponentiating a coefficient gives the factor by which the expected count changes for a one-unit increase in that predictor, holding the other predictors fixed.
History
Cameron and Trivedi's Regression Analysis of Count Data (1998) gives a comprehensive treatment of count models, including the Poisson model and its over-dispersed extensions. Hilbe's Negative Binomial Regression (2011) is devoted to the negative binomial model and its variations for over-dispersed counts.
When to use it
Choose Poisson regression when the outcome is a count of events (non-negative integers) and you want to relate the expected count or event rate to one or more predictors. It applies to cross-sectional, panel, and longitudinal count data. If events are counted over different exposures, such as different observation periods or population sizes, the model needs an exposure term: the log of the exposure E_i enters the linear predictor as an offset with its coefficient fixed at one, so that mu_i = E_i exp(X_i beta) and the coefficients describe rates per unit of exposure. For panel or repeated counts, observations on the same unit are correlated, so standard errors should be clustered by unit. The conditional fixed-effects Poisson estimator controls for unit-specific heterogeneity without assuming a distribution for it, and the trade-offs between fixed and random effects are discussed on the panel fixed-effects page. The core assumption is equidispersion, meaning the conditional variance equals the conditional mean; check this before relying on the model, because a variance clearly larger than the mean points to the negative binomial model. Do not use it for continuous, bounded, or ordered-category outcomes, for which the count distribution does not apply. Zeros far more frequent than the Poisson distribution implies call for considering a zero-inflated specification in place of the plain model.
Limitations and considerations
- The basic model assumes the conditional variance equals the conditional mean; where real counts are over-dispersed, standard errors are understated and tests are too optimistic.
- Zeros beyond what the Poisson distribution implies are not captured by the basic model; zero-inflated (ZIP or ZINB) models separate structural zeros from the count process.
- Because the likelihood is maximised numerically, convergence problems can occur, and the fit should be checked for convergence before the coefficients are interpreted.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The log link keeps predicted counts non-negative and makes predictor effects multiplicative, which suits event rates.
- Exponentiated coefficients are incidence rate ratios: exp(beta) is the multiplicative change in the expected count for a one-unit change in the predictor, holding the others fixed.
- The same log-linear structure extends to the negative binomial model for over-dispersed counts, so the choice between the two concerns the variance assumption rather than the mean model.
Applications
- Modelling health-care utilisation such as the number of hospital admissions or physician visits.
- Analysing accident, defect, or failure counts in safety and quality studies.
- Bibliometric and social-science counts, such as the number of articles, citations, or events per unit.
How it works
How it works
The count outcome Y_i is assumed to follow a Poisson distribution whose mean mu_i varies across observations. A log link relates this mean to the predictors, log(mu_i) = X_i beta, so mu_i = exp(X_i beta). Because the exponential is always positive, predicted counts cannot be negative, and each predictor multiplies the expected count. If the unobserved heterogeneity across units follows a gamma distribution, the marginal count model becomes the negative binomial, with the same log-linear mean exp(X_i beta) and variance mu_i + alpha mu_i^2 in the common NB2 parameterisation, where alpha is the dispersion parameter; alpha equal to zero recovers the Poisson model.
Formula
\log(\mu_i) = X_i\beta, \quad Y_i \sim \text{Poisson}(\mu_i)The coefficients beta are estimated by maximum likelihood: the estimator maximises the sum of y_i X_i beta - exp(X_i beta) - log(y_i!), which selects the beta that makes the observed counts most probable under the model. The resulting score equations are nonlinear in beta and generally have no closed-form solution, so the maximisation is carried out numerically. When the data are over-dispersed (variance larger than the mean), the negative binomial model adds a dispersion parameter to the same log-linear structure.
Formula
\hat{\beta} = \arg\max_{\beta} \sum_i \left( y_i X_i\beta - e^{X_i\beta} - \log y_i! \right)Common pitfalls
- Fitting plain Poisson to over-dispersed data (variance clearly above the mean): standard errors are too small and significance is exaggerated; the negative binomial model corrects the inference.
- Treating an unusually high share of zeros as ordinary counts without checking fit; a zero-inflated Poisson or negative binomial model may be needed, though the plain model can still be adequate.
- Interpreting raw coefficients as additive changes in the count, rather than exponentiating them into incidence rate ratios.
- Skipping diagnostics: goodness-of-fit checks with the Pearson and deviance residuals, and a check of the dispersion, should be made before the model is reported.
Frequently asked questions
When should I use negative binomial instead of Poisson?
When the counts are over-dispersed, meaning the conditional variance is clearly larger than the mean. Plain Poisson then understates the standard errors; the negative binomial model adds a dispersion parameter and corrects the inference.
What is an incidence rate ratio (IRR)?
It is the exponentiated coefficient, exp(beta). An IRR of 1.2 means a one-unit increase in the predictor multiplies the expected event rate by 1.2, i.e. a 20% increase. IRRs are the usual way to report Poisson and negative binomial effects.
What if my data have too many zeros?
If zeros are far more numerous than the Poisson or negative binomial model predicts, those models may underfit them. A zero-inflated model (ZIP or ZINB) separates structural zeros from the count process. Compare the fit of the plain and zero-inflated models before choosing.
How do I check whether the model fits?
Examine the Pearson and deviance residuals for goodness of fit. Compare the Pearson chi-square with its degrees of freedom as a dispersion check; values well above one indicate over-dispersion. A poor fit or clear over-dispersion points to the negative binomial or a zero-inflated specification.
Related methods
Sources
Cameron, A. C. & Trivedi, P. K. (1998). Regression Analysis of Count Data. Cambridge University Press.
Open DOI referenceHilbe, J. M. (2011). Negative Binomial Regression (2nd ed.). Cambridge University Press.
Open DOI referenceThe Econometrics of Individual Risk: Credit, Insurance, and Marketing, chapter 5 (Count Data Models), p. 62