- Introduced by
- Diane Lambert
- Year
- 1992
- Type
- Count regression (two-component mixture)
What does it do?
Zero-inflated Poisson (ZIP) regression is a two-component model for count outcomes that contain more zeros than an ordinary Poisson model can explain.
Introduced by Diane Lambert in 1992, it pairs a logistic model for the probability of a structural zero with a Poisson model for the counts produced when the process is not in its always-zero state.
The intuition behind the method
Some zeros are special. Consider counting defects on a production line. Equipment that is properly aligned may almost never produce a defect, so its zeros are structural. Equipment that is misaligned produces defects at some rate, and on a given run it may still produce none. A plain Poisson model treats all zeros alike and tends to under-predict them when many units come from the aligned state. ZIP first uses a logistic component to decide whether an observation belongs to the always-zero state, and then a Poisson component governs the counts for the rest.
History
The zero-inflated Poisson model was introduced by Diane Lambert in a 1992 Technometrics paper, with an application to defects in manufacturing, where many units have no defects at all. Its two-part structure, a logistic component for the always-zero state and a Poisson component for the counts, is the basis of the zero-inflated models discussed on this page.
When to use it
Use ZIP when the outcome is a count with more zeros than a Poisson model predicts, and when there is a plausible distinct mechanism that produces always-zero cases separate from the counting process. For example, a subgroup of the population may never engage in the behaviour being counted, however long it is observed. The zero-generating and count components should each be justifiable on substantive grounds, since they can take different covariates. Do not use ZIP simply because a count has many zeros: if all zeros plausibly come from one process, a Poisson or negative binomial model describes the data better. If the positive counts are also overdispersed, prefer the zero-inflated negative binomial extension. The sample must be large enough to support two linked equations, with enough zero and non-zero observations to identify both components, since the estimates are approximately normal in large samples.
Limitations and considerations
- The basic ZIP keeps a Poisson count component, which ties the mean and variance of the positive counts together; it does not absorb overdispersion in those counts, which calls for the zero-inflated negative binomial model.
- Two linked equations are estimated together, so small samples can leave both components imprecisely determined. The maximum likelihood estimates are approximately normal in large samples, so inference from small samples is less reliable.
- Interpretation is harder than for a single-equation model, and deciding which covariates belong in the zero part and which in the count part requires substantive judgement.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Models structural zeros explicitly, so it can represent excess zeros that a single Poisson distribution cannot accommodate.
- Gives two sets of interpretable effects at once: incidence-rate ratios for the count process and odds ratios for the structural-zero process.
- The two components can use different covariates, so the model can reflect a theory in which being an always-zero unit and the intensity of counting have different drivers.
Applications
- Manufacturing quality control, such as modelling the number of defects per item when many items are defect-free.
- Health and epidemiology counts like number of doctor visits, hospitalisations, or disease cases where many subjects record none.
- Behavioural and ecological counts (e.g., number of incidents, species sightings) with a large fraction of structural zeros.
How it works
How it works
The outcome is a mixture. With probability π an observation is a structural zero and always records zero; with probability 1−π it follows a Poisson distribution with mean λ. The probability of observing a zero is therefore π plus the Poisson chance of a zero count, (1−π)e^(−λ), while any positive count k can come only from the Poisson component.
Formula
P(Y=0)=\pi+(1-\pi)e^{-\lambda},\quad P(Y=k)=(1-\pi)\frac{e^{-\lambda}\lambda^{k}}{k!},\; k\ge 1Two linked equations connect the parameters to covariates. A log link ties the Poisson mean λ to the count predictors X, so exponentiated count coefficients are incidence-rate ratios. A logit link ties the structural-zero probability π to the predictors Z, so exponentiated zero-part coefficients are odds ratios for being a structural zero. The two sets of predictors may be identical, overlapping, or entirely different.
Formula
\log\lambda = X\beta,\qquad \operatorname{logit}(\pi)=Z\gammaBoth sets of coefficients are estimated jointly by maximum likelihood over the mixture likelihood. The maximum likelihood estimates are approximately normal in large samples, which allows confidence intervals from the normal approximation or from inverting likelihood ratio tests. To check whether the extra zero component is warranted, compare the fit with a plain Poisson model using a likelihood-ratio comparison or information criteria such as AIC or BIC. Because the Poisson model corresponds to a zero-inflation probability of zero, which lies on the boundary of the parameter space, likelihood-ratio p-values are only approximate.
Formula
(\hat{\beta},\hat{\gamma}) = \arg\max_{\beta,\gamma}\sum_{i}\log P(Y_i\mid X_i,Z_i)Common pitfalls
- Adopting ZIP when the excess zeros are not structural. Excess zeros alone do not establish a separate zero-generating mechanism, so compare the fit against a plain Poisson model before choosing ZIP.
- Ignoring overdispersion in the positive counts. If they vary more than a Poisson model allows, ZIP standard errors are likely too small, and the zero-inflated negative binomial model is the better choice.
- Misreading the two sets of coefficients. A positive count coefficient raises the expected count, whereas a positive zero-part coefficient raises the odds of a structural zero, which lowers the expected count. Because the expected count is (1−π)λ, a predictor that raises both the zero probability and the Poisson mean can have an ambiguous net effect on the expected count, so the two parts should be interpreted separately.
Frequently asked questions
How is ZIP different from ordinary Poisson regression?
Poisson assumes a single process generates all counts, including zeros, and tends to under-predict zeros when they are abundant. ZIP adds a separate logistic component for structural zeros, so it can match an inflated number of zeros that Poisson cannot.
How do I know if I actually need a zero-inflated model?
Compare the fitted ZIP with a plain Poisson model, for example with a likelihood-ratio comparison or information criteria such as AIC or BIC. If the comparison does not favour ZIP, the simpler Poisson model is preferable, because the data do not justify an extra zero component. Poisson is the special case in which the zero-inflation probability is zero, which lies on the boundary of the parameter space, so likelihood-ratio p-values are only approximate.
When should I switch to zero-inflated negative binomial (ZINB)?
When the non-zero counts are overdispersed, meaning their variance clearly exceeds their mean, in addition to having excess zeros. ZINB replaces the Poisson count component with a negative binomial one to absorb that extra variability.
How do I interpret the coefficients?
Exponentiated count-model coefficients are incidence-rate ratios: the multiplicative change in expected count per unit of the predictor. Exponentiated zero-model coefficients are odds ratios for an observation being a structural (always-zero) case.
Related methods
Sources
Lambert, D. (1992). Zero-Inflated Poisson Regression, with an Application to Defects in Manufacturing. Technometrics, 34(1), 1–14.
Open DOI referenceR in Action: Data Analysis and Graphics with R, 2nd Edition, p. 317–318