Tutorials › Generalized Linear Mixed Models (GLMM) › Why Excess Zeros Alone Do Not Establish Zero Inflation

Overdispersion and Zero Inflation · Tutorial 570 of 698

Why Excess Zeros Alone Do Not Establish Zero Inflation

Learn to assess observed zeros against suitable count-model predictions and explain why a structural-zero component requires more evidence than a large zero fraction.

Advanced 11 min read

What You'll Learn

  • Calculate expected zero probabilities under Poisson and negative binomial models.
  • Compare an observed zero count with its sampling variability under an explicit model.
  • Explain how overdispersion, varying means, and random effects can produce many zeros without a structural-zero class.
  • Distinguish a zero-count discrepancy from evidence for a particular zero-generating mechanism.
  • Identify when dependence or parameter estimation makes a simple binomial benchmark inadequate.
  • Use model checks and substantive knowledge to evaluate a zero-inflation claim.

Why a Large Zero Fraction Needs a Benchmark

A count data set can contain many zeros and still be well described by a model with no structural-zero class. The expected number of zeros depends on the mean count, how much counts vary around that mean, differences among observations, and dependence among observations. A zero fraction has no diagnostic meaning on its own: it must be compared with what an appropriate non-zero-inflated model predicts.

The key distinction is between a zero observation and a structural-zero mechanism. A zero may arise because an ordinary count process happens to produce no events. A structural-zero model adds a latent state or process that makes some observations necessarily zero. The data may support that additional mechanism, but the fact that zeros are common does not establish it.

Definition: For a specified count model, the zero probability is \(p_{0i}=P(Y_i=0)\), where \(Y_i\) is the count for observation \(i\). The observed zero count is \(Z=\sum_{i=1}^n I(Y_i=0)\), with \(I(\cdot)\) equal to 1 when its statement is true and 0 otherwise. An observed zero count is unusually large only relative to a stated model and its sampling distribution.

What Ordinary Count Models Predict

For a Poisson count with mean \(\mu_i\), the probability of zero is \(P(Y_i=0)=e^{-\mu_i}\). Thus, a lower mean naturally produces more zeros. For an overdispersed count, a negative binomial model can predict still more zeros at the same mean. Under the NB2 parameterization, with mean \(\mu_i\) and size parameter \(k>0\), the variance is \(\mu_i+\mu_i^2/k\), and

$$ P(Y_i=0)=\left(\frac{k}{k+\mu_i}\right)^k . $$

As \(k\) becomes large, the negative binomial approaches the Poisson model. Smaller \(k\) allows greater overdispersion and, generally, a larger zero probability for a given positive mean. A comparison to a Poisson model can therefore make ordinary overdispersion look like zero inflation.

If the observations are independent and share the same zero probability \(p_0\), then \(Z\sim\operatorname{Binomial}(n,p_0)\). In that special case,

$$ E(Z)=np_0,\qquad \operatorname{Var}(Z)=np_0(1-p_0). $$

This provides a useful sampling-variation benchmark. If the \(p_{0i}\) differ but observations remain independent, then \(E(Z)=\sum_i p_{0i}\) and \(\operatorname{Var}(Z)=\sum_i p_{0i}(1-p_{0i})\); \(Z\) is then a sum of Bernoulli variables with different probabilities, not a binomial count. If observations are dependent, covariance terms also enter its variance.

Worked Example: A Zero Count Within Poisson Sampling Variation

Suppose 80 hypothetical, independent observations are adequately described by a Poisson model with a known common mean of 0.50 events per observation. The observed data contain 55 zeros. Is that count by itself compelling evidence that the Poisson model needs a structural-zero component?

The model gives \(p_0=e^{-0.50}\approx0.6065\). Under the model, the expected number of zeros is

$$ E(Z)=80(0.6065)=48.52. $$

The standard deviation is

$$ SD(Z)=\sqrt{80(0.6065)(1-0.6065)} =\sqrt{19.0926}\approx4.370. $$

The observed count exceeds its expectation by \(55-48.52=6.48\), or about \(6.48/4.370=1.48\) standard deviations. A normal approximation with a continuity correction gives an upper-tail probability of about \(P\{N(48.52,19.0926)\ge54.5\}\approx0.086\). This is not an especially surprising count under this benchmark, and it does not establish a structural-zero component.

This calculation assumes independent observations and a known mean. If the mean was estimated from these same data, or if observations are clustered, the simple binomial reference is not an exact model-based test. The example illustrates the comparison, not a universal decision threshold.

Overdispersion Can Produce Extra Zeros

One reason a Poisson benchmark may fail is unmodeled heterogeneity in event rates. A useful justification comes from a Poisson model whose rate \(\Lambda\) varies among observations. Conditional on \(\Lambda\), the zero probability is \(e^{-\Lambda}\), so the marginal zero probability is \(E(e^{-\Lambda})\). Because \(e^{-x}\) is convex, Jensen's inequality gives

$$ E(e^{-\Lambda})\ge e^{-E(\Lambda)}. $$

The right-hand side is the zero probability for a Poisson model with the same average rate. Unless \(\Lambda\) is constant, mixing rates can therefore increase the probability of zero without adding a class that is structurally unable to experience events. Negative binomial variation and random effects are familiar ways of representing such heterogeneity.

Worked Example: Negative Binomial Variation Changes the Zero Benchmark

Consider 100 hypothetical independent counts with mean \(\mu=0.80\). A Poisson model predicts \(p_0=e^{-0.80}\approx0.4493\), or about 44.93 zeros. Suppose the observed data contain 61 zeros. A Poisson-only comparison would call this a substantial discrepancy. But suppose the ordinary-count alternative is a negative binomial model with the same mean and \(k=0.50\).

Under that negative binomial model,

$$ p_0=\left(\frac{0.50}{0.50+0.80}\right)^{0.50} =\sqrt{\frac{0.50}{1.30}} \approx0.6202. $$

The expected zero count is \(100(0.6202)=62.02\). Its standard deviation, under independent counts with this common zero probability, is

$$ SD(Z)=\sqrt{100(0.6202)(0.3798)} \approx4.853. $$

The observed count of 61 is only \(1.02/4.853\approx0.21\) standard deviations below this negative binomial expectation. Thus, 61 zeros are high relative to the Poisson benchmark but entirely consistent with the stated overdispersed benchmark. This does not prove the negative binomial model is correct; it demonstrates why a zero-inflation claim should not be based on a Poisson comparison alone.

Varying Means and Random Effects Matter Too

Even without overdispersion conditional on each observation's predictors, a group with heterogeneous fitted means can have more zeros than a homogeneous Poisson model using only the pooled mean would predict. In a GLMM with a conditional Poisson distribution and random effect \(b\), for example, the marginal probability of zero is \(E_b[\exp\{-\mu_i(b)\}]\), not simply the exponential of the marginal mean with a minus sign. The variation in conditional rates changes the marginal zero probability.

Worked Example: Different Poisson Means Across Observations

Suppose there are 50 hypothetical observations in each of two covariate groups. Conditional counts are independent Poisson variables: the first group has mean 0.20 events per observation, and the second has mean 1.80. The pooled average mean is 1.00. Compare the correct expected zero count with the count predicted by incorrectly treating all observations as if their mean were 1.00.

For the two groups, the zero probabilities are \(e^{-0.20}\approx0.8187\) and \(e^{-1.80}\approx0.1653\). Therefore, the expected zero count under the group-specific model is

$$ E(Z)=50(0.8187)+50(0.1653)=49.20. $$

The homogeneous pooled-mean calculation would instead give \(100e^{-1}\approx36.79\) zeros? No: \(100e^{-1}\approx36.79\) does not correspond to 50 observations in each group with pooled mean 1 if all 100 observations are assigned that common mean; it is the homogeneous model's prediction. The heterogeneous model's prediction is 49.20, which is higher here. This example shows that heterogeneity raises the average zero probability relative to the pooled-mean Poisson calculation when the arithmetic mean rate is held fixed, as Jensen's inequality implies. In fact, with the two means specified, the arithmetic mean is 1.00, and convexity implies the average zero probability must be at least \(e^{-1}\). Check the arithmetic: \(0.8187+0.1653=0.9840\), so the average is 0.4920, not 0.2460, and the expected count is 49.20.

Using the corrected sum, the variance of the zero count is the sum of the two groups' Bernoulli variances:

$$ \operatorname{Var}(Z)=50(0.8187)(0.1813)+50(0.1653)(0.8347) \approx14.32, \qquad SD(Z)\approx3.784. $$

For example, an observed count of 50 zeros is close to the expectation of 49.20. Comparing it to a homogeneous mean-1 Poisson expectation of 36.79 would be misleading: that calculation discards the known group-specific means. The arithmetic check is essential whenever zero probabilities are combined across groups.

What Evidence Would Support a Structural-Zero Component?

A zero-inflated model proposes a particular mixture: some observations come from a latent zero-generating state, while counts in the other state follow a count distribution that can itself produce zeros. A hurdle model instead separates the zero-versus-positive outcome from the positive-count distribution. The earlier material on hurdle and zero-inflated models establishes these model structures; the issue here is how to assess evidence for adding one.

A single zero count primarily informs the marginal probability of zero. It does not by itself determine whether those zeros came from a separate latent state, ordinary count variation, omitted covariates, or random effects. The positive counts matter too: the proposed model must describe their frequencies and magnitudes, not just raise its predicted zero probability. A latent class interpretation is stronger still and needs a defensible scientific account of what makes an observation structurally unable to produce a count.

A sound assessment begins with a plausible baseline count model and its assumptions. Check whether its mean structure, dispersion, exposure, and dependence structure are appropriate. Then compare the observed number and pattern of zeros with model-based predictions that account for parameter estimation and the study design. For a fitted GLMM, simulation from the fitted model can preserve covariates, grouping, and random effects; compare simulated zero counts and other relevant summaries with the observed data. A zero-count discrepancy can be a useful warning, but it does not uniquely diagnose zero inflation.

1
Specify the baseline.
State the count distribution, mean model, dispersion assumptions, exposure handling, and any random effects or clustering. Check that the model's assumptions are relevant to the data collection process.
2
Calculate model-based zeros.
Use the observation-specific probabilities \(p_{0i}\). Sum them for the expected zero count; use a binomial variance only for independent observations with a common \(p_0\).
3
Assess uncertainty and fit.
Compare observed zeros with the sampling distribution under the fitted design, allowing for estimated parameters and dependence. Also check whether the model reproduces positive counts and relevant group patterns.
4
Evaluate the added mechanism.
Consider a structural-zero component when the baseline model remains inadequate and the mixture mechanism is scientifically interpretable. Do not infer a latent class solely from a high observed zero fraction.

Diagnostics, Alternatives, and Limitations

Several features should prompt further investigation: a zero count far into the predictive tail of a well-specified baseline model; zero residual patterns across covariate or exposure ranges; substantial mismatch in positive counts; or systematic differences among groups. These are diagnostic signals, not automatic proof of zero inflation. If the model is fitted rather than fully specified, uncertainty in its estimated parameters should be included in predictive checks; treating fitted values as known can make a comparison too confident.

Dependence is especially important in repeated or grouped data. Even when each observation has the same marginal zero probability, correlated zero indicators do not have the binomial variance \(np_0(1-p_0)\). A random-effects model may be a more appropriate alternative if group-level variation accounts for the pattern. Likewise, omitted predictors or an incorrect exposure term can distort predicted zero probabilities. Structural-zero interpretations should not be used to patch a mean or dependence model that has not been examined.

Candidate explanationHow it can affect zerosUseful question
Lower fitted meansRaises \(e^{-\mu_i}\) under a Poisson modelDoes the mean model include relevant predictors and exposure?
OverdispersionCan increase zero probability relative to Poisson at the same meanDoes a negative binomial or other dispersion model fit the counts better?
Heterogeneous means or random effectsChanges the mixture of observation-specific zero probabilitiesAre rates varying across groups or covariate profiles?
Structural-zero mixtureAdds a latent mechanism for observations that must be zeroIs there substantive support, beyond the zero count, for that mechanism?

No diagnostic can identify an unobserved zero-generating mechanism with certainty from the zero fraction alone. Different models may make similar marginal predictions, particularly in small or sparse samples. Model comparison, predictive fit, and domain knowledge should be considered together, and uncertainty about the model itself should be reported when conclusions depend on it.

Common Mistake

Wrong reasoning: “The data contain more zeros than a Poisson model with the pooled mean predicts, so some observations must belong to a structural-zero class.” This conclusion treats the Poisson model as unquestionably adequate and ignores overdispersion, heterogeneous means, dependence, and sampling variation.

Correction: First compare zeros with predictions from a baseline model that reflects the mean structure and variation in the data. Then assess the uncertainty of that comparison and whether the candidate zero-inflated model improves the overall count distribution in a scientifically plausible way. Excess zeros relative to one inadequate benchmark are not proof of a structural mechanism.

Key takeaway: “Excess zeros” is always relative to a specified model. A high observed zero fraction does not establish zero inflation unless appropriate mean, dispersion, heterogeneity, dependence, and sampling uncertainty have been considered.

Check Your Understanding

Answer each question, then check the solutions below.

  1. Under an independent Poisson model with common mean 1.20, what is the expected zero probability? Why does that probability alone not say whether an observed zero count is surprising?
  2. For 40 independent counts with a common zero probability of 0.25, calculate the expected zero count and its standard deviation.
  3. Explain why comparing observed zeros only with a Poisson model can falsely suggest zero inflation.
  4. In a repeated-measures study, why might the binomial variance for the total zero count be inappropriate even if each observation has the same marginal zero probability?

Solutions. (1) \(p_0=e^{-1.20}\approx0.3010\). Whether a count is surprising also depends on the sample size, sampling variability, and whether the independent common-mean Poisson assumptions are appropriate. (2) \(E(Z)=40(0.25)=10\), and \(SD(Z)=\sqrt{40(0.25)(0.75)}=\sqrt{7.5}\approx2.739\) zeros. (3) Overdispersion, varying rates, or unmodeled random effects can increase the zero probability relative to Poisson without a structural-zero class; compare against a suitable baseline. (4) Correlation among zero indicators adds covariance terms to \(\operatorname{Var}(Z)\), so \(np_0(1-p_0)\) generally does not capture the total sampling variation.

Clinical Biostats