- Introduced by
- Greene (1994)
- Year
- 1994
- Type
- Count regression (mixture model)
What does it do?
Zero-Inflated Negative Binomial (ZINB) regression is a count model for outcomes that show both an excess of zeros and overdispersion, meaning the variance is larger than the mean.
It combines a binary process that generates structural zeros with a negative binomial process that models the counts. The earliest source cited on this page is Greene's 1994 working paper, an unpublished NYU paper rather than a peer-reviewed article. It is used when a single Poisson count model cannot describe both the frequency of zeros and the spread of the data.
The intuition behind the method
Some count outcomes contain far more zeros than a standard model predicts, and the non-zero counts also vary more than their mean suggests. ZINB separates two kinds of zero: structural zeros, from cases that cannot produce a positive count, and sampling zeros, from cases that could have produced a count but happened to record zero. A binary component estimates the probability that a case is a structural zero. A negative binomial component, with its own dispersion parameter α, models the counts and absorbs extra spread that the Poisson count component of a zero-inflated Poisson model cannot, because that component forces its own variance to equal its mean.
History
The earliest source cited here for the ZINB model is Greene's 1994 working paper on accounting for excess zeros and sample selection in Poisson and negative binomial regression models. It is a working paper rather than a peer-reviewed publication. The model extends the zero-inflated Poisson framework, which Lambert (1992) proposed, to count data that are both zero-heavy and overdispersed. Applications such as Cameron and Trivedi's (1998) analysis of recreation demand use a negative binomial count part with a separate inflation equation, and the pscl package for R (Zeileis, Kleiber and Jackman 2008) fits such models.
When to use it
Choose ZINB when the outcome is a count with more zeros than a count model predicts and the non-zero counts are overdispersed. Before fitting, compare observed zero and count frequencies with those expected under fitted Poisson and negative binomial models. An overdispersion test such as the Cameron-Trivedi test can help, but excess zeros alone can inflate the variance-to-mean ratio, so a significant result does not by itself show that a negative binomial count part is needed. If overdispersion among the counts is absent, a zero-inflated Poisson model is the simpler option. Do not use ZINB when the zeros plausibly come from a single gate process, where a hurdle model matches the mechanism better, or when there is no excess of zeros, where a plain negative binomial model is sufficient. As a rough rule of thumb, around 50 or more observations are needed because the inflation, count and dispersion parameters are estimated together. Adequacy depends on the number of predictors and the proportion of zeros, so check convergence and standard errors. ZIP is nested in ZINB (α → 0), so the two can be compared with a likelihood-ratio test on the dispersion parameter. Because α = 0 lies on the boundary of the parameter space, the usual chi-square reference distribution is only approximate. Predictors can be specified separately for the inflation and count parts, so theory should justify which variables enter each.
Limitations and considerations
- Joint maximum likelihood estimation of the inflation, count and dispersion parameters needs a reasonably large sample (roughly 50 or more observations as a rule of thumb); small samples can give unstable estimates or convergence problems.
- When there are few zeros, the inflation part is weakly identified, because the data carry little information about how many zeros are structural.
- The two-part mixture is harder to specify and interpret than a single-equation count model, and its coefficients must be read separately for the inflation and count parts.
- If the counts are not overdispersed, the simpler zero-inflated Poisson model may be preferred; the choice can be checked with a likelihood-ratio test on α, bearing in mind its boundary-based approximation.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Models excess zeros and overdispersion together. The Poisson count component of a zero-inflated Poisson model forces its own variance to equal its mean, so it cannot absorb overdispersion among the non-zero counts.
- The dispersion parameter α is estimated from the data, so extra variation in the non-zero counts is modelled rather than assumed away.
- Structural and sampling zeros can be given different predictors, so the factors that decide whether a case can ever be positive can be separated from the factors that decide how large its count is.
Applications
- Health research: counts of doctor visits or hospital stays, where many subjects record zero and the remaining subjects vary widely.
- Ecology: species or nest counts across sites, where many sites are empty and occupied sites have highly variable counts.
- Economics and insurance: claim or defect counts with many zeros and a wide spread among the non-zero values.
How it works
How it works
The probability of observing a zero is a mixture: a structural-zero probability π plus the chance that the negative binomial count process itself yields zero. Positive counts come only from the negative binomial component, scaled by (1 − π). Both parts are tied to covariates: the count mean uses a log link, log(μ_i) = x_i'β, and the inflation probability uses a binary link, usually the logit, logit(π_i) = z_i'γ, with probit as an alternative. The regressor sets x_i and z_i need not be identical. The negative binomial part adds a dispersion parameter α so the variance of the count component can exceed its mean.
Formula
\Pr(Y=0) = \pi + (1-\pi)\,\mathrm{NB}(0;\mu,\alpha), \quad \Pr(Y=y) = (1-\pi)\,\mathrm{NB}(y;\mu,\alpha),\ y>0The inflation probability π_i and the negative binomial mean μ_i are linked to predictors as described above and estimated jointly by maximum likelihood, maximising the log-likelihood of the mixture over all observations. The dispersion parameter α is estimated alongside the regression coefficients.
Formula
\hat{\theta} = \arg\max_{\theta} \sum_i \log\big[\pi_i \,\mathbb{1}(y_i=0) + (1-\pi_i)\,\mathrm{NB}(y_i;\mu_i,\alpha)\big]Common pitfalls
- Fitting ZINB on the basis of a high variance-to-mean ratio alone. Excess zeros can inflate that ratio, so compare observed and expected zero and count frequencies from fitted ZIP and negative binomial models before choosing the dispersion structure.
- Using the Vuong test to compare ZINB with ZIP. The Vuong test is designed for non-nested models, and ZIP is nested in ZINB, so a likelihood-ratio test on the dispersion parameter is the appropriate comparison.
- Confusing the two zero sources, or putting the same predictors in both the inflation and count equations without theoretical justification.
- Comparing ZINB with a hurdle model without realising that hurdle models treat all zeros as coming from a single gate process.
Frequently asked questions
How is ZINB different from zero-inflated Poisson (ZIP)?
Both mix a structural-zero process with a count process, but ZINB uses a negative binomial count part that adds a dispersion parameter. The Poisson count part of ZIP forces its own variance to equal its mean, so it cannot absorb overdispersion among the non-zero counts. ZIP is a special case of ZINB (α → 0), so the two can be compared with a likelihood-ratio test on the dispersion parameter. That test has an approximate reference distribution because α = 0 lies on the boundary. The Vuong test is meant for non-nested models and is not appropriate here.
How do I know my data are overdispersed?
A Cameron-Trivedi overdispersion test can be run on the count, but excess zeros alone can inflate the variance-to-mean ratio. Compare observed and expected zero and count frequencies from fitted Poisson, ZIP and negative binomial models. If the ZIP model still under-predicts the spread of the positive counts, a negative binomial count component is warranted.
How does ZINB differ from a hurdle model?
ZINB treats zeros as a mixture of structural zeros and ordinary count zeros, so zeros can come from both processes. A hurdle model treats every zero as coming from a single gate (zero versus positive) and models only positive counts in the second part.
What sample size do I need?
There is no fixed threshold. ZINB estimates an inflation equation, a count equation and a dispersion parameter together by maximum likelihood, and a rough rule of thumb is around 50 or more observations. The sample needed depends on the number of predictors and the proportion of zeros, so check convergence and standard errors.
Related methods
Sources
Greene, W. H. (1994). Accounting for Excess Zeros and Sample Selection in Poisson and Negative Binomial Regression Models. NYU Working Paper.
Open publication referenceApplied Econometrics with R, p. ?