Tutorials › Multiple Imputation by Chained Equations (MICE) › Zero-Inflated And Hurdle Models For Counts

Imputation Models by Variable Type · Tutorial 181 of 497

Zero-Inflated And Hurdle Models For Counts

Learn how zero-inflated and hurdle models generate count zeros, when their probability distributions can coincide, and what data structures motivate each model in MICE.

Intermediate 12 min read

What You'll Learn

  • Distinguish structural zeros from zeros generated by a count distribution.
  • Write the probability mass functions for zero-inflated and hurdle models.
  • Derive when the two models have identical distributions.
  • Calculate count probabilities, means, and a posterior structural-zero probability.
  • Match a conditional count model to the data-generating structure without treating excess zeros as proof of a mechanism.
  • Identify diagnostics and limitations relevant to using these models for MICE.

Why Separate Count Models May Be Needed

A count variable can have many zeros for different reasons. Some observations may be unable to produce a positive count under the circumstances being studied; others may be capable of producing counts but happen to record zero. A model that treats all zeros as outcomes of one ordinary count distribution may not represent this distinction well. Zero-inflated and hurdle models allow a separate process to govern whether the count is zero, but they describe that process differently.

In MICE, either model can be used for the conditional distribution of a count variable with missing values, given the other variables in the imputation model. The choice is about the conditional distribution and its plausible zero-generating process. A large observed fraction of zeros can motivate investigation, but by itself does not establish that zeros are structural or identify which model is appropriate.

Definition: Let \(Y\) be a nonnegative integer-valued count and \(x\) denote its predictors. Let \(f(y\mid x;\theta)\) be a count distribution with probability \(f_0(x)=f(0\mid x;\theta)\) and mean \(\mu(x)\). A zero-inflated model assigns probability \(\pi(x)\) to a structural-zero state; otherwise, \(Y\) is drawn from \(f\). A hurdle model assigns probability \(q(x)\) to zero; conditional on crossing the hurdle, \(Y\) is drawn from \(f\) truncated to positive counts.

Two Ways to Generate Zeros

In a zero-inflated model, an observation first enters a structural-zero state with probability \(\pi(x)\). If it does not, it follows the count distribution \(f\), which may itself generate zero. Thus a zero can arise from either state. The probability mass function is

$$ P(Y=0\mid x)=\pi(x)+[1-\pi(x)]f_0(x), \qquad P(Y=y\mid x)=[1-\pi(x)]f(y\mid x;\theta),\quad y=1,2,\ldots. $$

The marginal mean is \(E(Y\mid x)=[1-\pi(x)]\mu(x)\), because the structural-zero state contributes zero and the count state occurs with probability \(1-\pi(x)\). The label “structural” is a model interpretation: in an application it should be supported by subject-matter knowledge, not inferred merely from the observed zeros.

In a hurdle model, the first process determines whether \(Y\) is zero or positive. Once the hurdle is crossed, zero is not possible: the count distribution is conditioned on being positive. Its probability mass function is

$$ P(Y=0\mid x)=q(x), \qquad P(Y=y\mid x)=[1-q(x)]\frac{f(y\mid x;\theta)}{1-f_0(x)},\quad y=1,2,\ldots. $$

The divisor \(1-f_0(x)\) normalizes the positive-count probabilities, since \(\sum_{y=1}^{\infty}f(y\mid x;\theta)=1-f_0(x)\). The hurdle-model mean is therefore

$$ E(Y\mid x)=[1-q(x)]\frac{\mu(x)}{1-f_0(x)}. $$

Both models can use predictors in their zero and count components. Their distinct feature is the assumed zero-generating process: a zero-inflated model permits zeros from both the structural state and the count distribution, whereas a hurdle model assigns every zero to the zero part and uses only positive counts in its count component.

Worked Example: Matched Components Give Identical Distributions

Suppose, hypothetically, that the count component is Poisson with mean \(\lambda=1\), and the zero-inflated structural-zero probability is \(\pi=0.25\). Since \(e^{-1}\approx0.3679\), the marginal zero probability is

$$ P(Y=0)=0.25+0.75e^{-1} =0.25+0.75(0.367879) \approx0.5259. $$

Now define a hurdle model with the same Poisson component and \(q=0.5259\), using the unrounded value \(q=0.25+0.75e^{-1}\). For exactly two counts, the zero-inflated probability is

$$ P(Y=2)=0.75\frac{e^{-1}1^2}{2!} =0.75\frac{0.367879}{2} \approx0.13795. $$

The hurdle probability is

$$ P(Y=2)=(1-q)\frac{e^{-1}1^2/2!}{1-e^{-1}} =\{0.75(1-e^{-1})\} \frac{e^{-1}/2}{1-e^{-1}} \approx0.13795. $$

The zero probabilities also match by construction, and the same cancellation applies to every positive count. These two specifications therefore have identical distributions in this matched-component example, even though their latent interpretations and parameterizations differ. The common marginal mean is \(0.75(1)=0.7500\) counts.

When Can Their Distributions Match?

The preceding equality is not limited to the numerical example. Suppose the zero-inflated and hurdle models use the same count distribution \(f\), and write the hurdle zero probability as

$$ q=\pi+(1-\pi)f_0. $$

Then \(1-q=(1-\pi)(1-f_0)\). For every \(y>0\), the hurdle probability becomes

$$ (1-q)\frac{f(y)}{1-f_0} =(1-\pi)(1-f_0)\frac{f(y)}{1-f_0} =(1-\pi)f(y), $$

which is exactly the zero-inflated probability. At zero, both assign probability \(q\). This proves that matching the zero probability in this way gives the same full probability distribution.

Conversely, for a fixed count component, a zero-inflated model can match a hurdle zero probability \(q\) only if \(q\geq f_0\). When this holds, solving \(q=\pi+(1-\pi)f_0\) gives \(\pi=(q-f_0)/(1-f_0)\), which lies between zero and one. If \(q<f_0\), no nonnegative structural-zero probability can produce that hurdle zero probability with the same \(f\). In practice, fitted models can also differ because they use different count-component distributions or predictor relationships. Distributional equivalence in one parameterization does not make the latent process interpretations interchangeable.

Worked Example: Interpreting a Zero Under a Zero-Inflated Model

Suppose, hypothetically, that a zero-inflated Poisson model for a contact count has \(\pi=0.40\) and \(\lambda=1.2\). A zero may be structural, or it may come from the Poisson component. Since \(e^{-1.2}\approx0.301194\), the marginal probability of zero is

$$ P(Y=0)=0.40+0.60e^{-1.2} =0.40+0.60(0.301194) \approx0.5807. $$

Among observations known to have \(Y=0\), the model-implied probability of being in the structural-zero state follows from the definition of conditional probability:

$$ P(\text{structural state}\mid Y=0) =\frac{0.40}{0.40+0.60e^{-1.2}} =\frac{0.40}{0.5807165} \approx0.6888. $$

Thus, under this hypothetical model, about 68.88% of zeros are attributed to the structural-zero state and about 31.12% to zeros generated by the Poisson component. This is a model-based allocation, not direct identification of each observation’s true state from its recorded zero.

What Data Structures Motivate Each Conditional Model?

A hurdle model is a natural candidate when the process has a distinct transition from no event to at least one event, followed by a count process among those with an event. For example, in a hypothetical study of optional service use, some people may not participate during the observation window; among participants, the number of uses is positive. If the scientific process treats every recorded zero as failure to cross that participation hurdle, the hurdle formulation directly represents that structure. It does not, however, prove that the hurdle mechanism is correct.

A zero-inflated model is a candidate when a subgroup is plausibly unable to generate the event during the observation window, while the remaining subgroup follows a count distribution that can itself produce zeros. For instance, some hypothetical sites may have no opportunity for a particular event, while sites with opportunity may still record none. This structure motivates, but does not by itself validate, a structural-zero component.

Worked Example: A Hurdle Count Distribution for Service Use

Consider a hypothetical conditional model for a count of service uses. Let the probability of zero be \(q=0.60\), and let positive counts follow a Poisson distribution with \(\lambda=2\), truncated to values above zero. Since \(e^{-2}\approx0.135335\), the probability of exactly one use is

$$ P(Y=1)=0.40\frac{2e^{-2}}{1-e^{-2}} =0.40\frac{2(0.135335)}{0.864665} \approx0.1252. $$

The probability of any positive count is \(1-q=0.40\), and the mean among positive counts is \(2/(1-e^{-2})\approx2.3130\) uses. Therefore the overall mean is

$$ E(Y)=0.40\frac{2}{1-e^{-2}} =\frac{0.80}{0.864665} \approx0.9252\text{ uses}. $$

Here the model assigns every zero to the hurdle process. It could be a reasonable conditional imputation model if the study context supports a distinct participation stage and the positive counts are plausibly described by the truncated count distribution. Those assumptions would need checking against the observed data and substantive knowledge.

Choosing and Checking a Model for Imputation

For MICE, the selected model must describe the count conditional on the variables used to predict it, including relevant auxiliary variables and other variables in the substantive analysis. The predictors and component distributions should be chosen so that simulated missing values are plausible for each predictor pattern. In a zero-inflated model, the zero-state probability and the count distribution both contribute to the conditional distribution; in a hurdle model, the zero probability and the truncated positive-count distribution do so. Parameter uncertainty must also be represented in multiple imputation rather than treating a single fitted parameter estimate as known.

Useful diagnostics include comparing observed and model-predicted zero proportions across important predictor groups, checking the frequency of small positive counts and the upper tail, and examining whether simulated imputations respect the count’s possible values. A model may fit the overall zero fraction but miss positive counts, or fit the positive distribution while systematically under- or overpredicting zeros. Sparse predictor groups can make component estimates unstable. Where there are few observations, especially few positive counts, inspect uncertainty and whether the fitted model can generate reasonable values across the covariate patterns that have missing outcomes.

A high number of zeros alone is not a diagnostic verdict. A negative-binomial model, for example, can allow more variability than a Poisson model, and that flexibility may account for some apparent excess of zeros without a separate zero process. Conversely, substantive evidence for a distinct no-opportunity group may motivate zero inflation even when competing models have similar overall fit. Compare conditional predictions and the data-generating context, not just a single overall fit statistic.

FeatureZero-inflated modelHurdle model
How zeros ariseStructural-zero state or count componentZero part only
Positive countsScaled probabilities from the untruncated count distributionCount probabilities renormalized over positive values
Motivating structureA subgroup plausibly cannot generate counts; the other subgroup can still generate zerosA distinct zero-versus-positive transition, followed by a positive-count process
Key limitationThe structural state is latent and can be difficult to distinguish from count-generated zerosThe zero-only interpretation may not suit settings where the count process can generate zeros within the eligible group

Neither formulation is universally superior. They can produce the same marginal distribution under the matched-component relationship derived above, yet offer different interpretations and may yield different fitted distributions when their components are specified differently. Both can be sensitive to misspecified predictors, sparse data, and an incorrect count distribution. Neither removes the need to justify the missing-data assumptions used for multiple imputation; modelling the observed conditional count distribution does not, by itself, establish that missingness is ignorable.

Common Mistakes

  • Calling every zero in a zero-inflated model structural. The count component also generates zeros. Use the model’s component probabilities to describe the implied allocation, and do not claim that an individual zero’s source is observed.
  • Assuming hurdle and zero-inflated models must give different positive-count probabilities. With the same count component and \(q=\pi+(1-\pi)f_0\), their full distributions coincide. They differ in interpretation and may differ when their fitted components differ.
  • Choosing zero inflation solely because the sample has many zeros. Compare conditional predictions, consider alternative count distributions, and use knowledge of how zeros arise. A zero proportion alone cannot establish a latent structural-zero group.
  • Ignoring truncation in a hurdle model. The positive probabilities must be divided by \(1-f_0\); using \(f(y)\) directly would leave the positive probabilities summing to less than one.
Key takeaway: A zero-inflated model permits zeros from both a structural state and its count component. A hurdle model assigns zeros to a separate zero process and truncates its count component to positive values. With matched components, their distributions can be identical, so model choice should reflect conditional fit and a defensible data-generating interpretation.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. For a zero-inflated model with structural-zero probability \(\pi\) and count-component zero probability \(f_0\), write the marginal zero probability.
  2. Why must a hurdle model divide the positive count probabilities by \(1-f_0\)?
  3. A hurdle model and zero-inflated model use the same \(f\). What value of \(q\) makes their distributions match?
  4. In a zero-inflated model, should a recorded zero automatically be labelled structural? Explain.
  5. Give one reason that a large observed fraction of zeros is not enough to select a zero-inflated model.

Solutions. (1) \(P(Y=0)=\pi+(1-\pi)f_0\). (2) The positive probabilities from \(f\) sum to \(1-f_0\), so division by that quantity makes the truncated positive probabilities sum to one. (3) Set \(q=\pi+(1-\pi)f_0\); this makes the zero probabilities and every positive-count probability match. (4) No. A zero can arise from either the structural state or the count component, and the state is latent. (5) A more variable count distribution may explain some zeros, and the observed fraction alone gives no evidence that a distinct structural-zero mechanism exists.

Clinical Biostats