Tutorials › Generalized Linear Mixed Models (GLMM) › The Hurdle Count Model

Overdispersion and Zero Inflation · Tutorial 555 of 698

The Hurdle Count Model

Learn how a hurdle model separates the probability of any positive count from the distribution of counts conditional on being positive.

Advanced 11 min read

What You'll Learn

  • Define the binary hurdle indicator and its probability.
  • Derive the zero-truncated component from a baseline count distribution.
  • Calculate zero and positive outcome probabilities for a Poisson hurdle model.
  • Interpret component probabilities in a GLMM with group heterogeneity.
  • Distinguish the hurdle mechanism from zero-inflated and ordinary count models.
  • Recognize assumptions, diagnostics, and common interpretation errors.

Two Stages for a Count Outcome

A count outcome can have many zeros and a spread of positive values for different reasons. A hurdle model represents these features with two linked parts: first, a process determines whether the count is zero or positive; second, if it is positive, a count distribution determines its size. This separation is useful when the occurrence of any event and the number of events among those with at least one event are scientifically distinct questions.

For example, a hypothetical clinical service might record the number of visits each patient makes during a fixed period. The model can represent the probability of making no visits separately from the distribution of visit counts among patients who make at least one. The model describes probabilities; it does not by itself establish why a person has a zero or a positive count.

Definition: Let \(Y_{ij}\) be a nonnegative integer count for observation \(i\) in group \(j\), and define the hurdle indicator \(H_{ij}=I(Y_{ij}>0)\). A hurdle model specifies \(P(H_{ij}=1\mid b_j)=\pi_{ij}\), where \(0\leq\pi_{ij}\leq1\) and \(b_j\) denotes any group-level random effect. If \(H_{ij}=0\), then \(Y_{ij}=0\). If \(H_{ij}=1\), then \(Y_{ij}\) follows a baseline count distribution conditioned to be positive.

Write \(f_{ij}(y\mid b_j)\) for the probability mass function of that baseline count distribution on \(y=0,1,2,\ldots\). Its probability of zero is \(f_{ij}(0\mid b_j)\), which must be less than 1 for a positive-count distribution to exist. Conditioning the baseline distribution on a positive count gives the positive-component probabilities below.

$$ P(Y_{ij}=0\mid b_j)=1-\pi_{ij}, \qquad P(Y_{ij}=y\mid b_j)= \pi_{ij}\frac{f_{ij}(y\mid b_j)}{1-f_{ij}(0\mid b_j)}, \quad y=1,2,\ldots $$

Thus the zero probability is determined directly by the binary component. The positive probabilities use both components: \(\pi_{ij}\) is the chance of crossing the hurdle, and the fraction describes how the baseline count distribution allocates probability across positive counts after its zero probability is removed. In particular, the baseline probability \(f_{ij}(0\mid b_j)\) is not the hurdle model's probability of observing zero.

Why the Positive Component Must Be Truncated

A count distribution such as the Poisson distribution assigns probability to zero as well as to positive counts. But once the hurdle has been crossed, the outcome must be positive. The positive component therefore uses the baseline distribution conditional on \(Y_{ij}>0\), rather than the unmodified baseline distribution.

The adjustment is a direct application of conditional probability. For \(y\geq1\), the events \(Y_{ij}=y\) and \(Y_{ij}>0\) satisfy \(Y_{ij}=y\Rightarrow Y_{ij}>0\), so \(P(Y_{ij}=y\mid Y_{ij}>0,b_j)=f_{ij}(y\mid b_j)/P(Y_{ij}>0\mid b_j)\). Since \(P(Y_{ij}>0\mid b_j)=1-f_{ij}(0\mid b_j)\), this gives the positive-component fraction in the model definition. It is normalized because \(\sum_{y=1}^{\infty}f_{ij}(y\mid b_j)=1-f_{ij}(0\mid b_j)\).

Key result: Conditional on the group effect, the model assigns probability \(1-\pi_{ij}\) to zero, and its probabilities over positive counts sum to \(\pi_{ij}\). The parameter \(\pi_{ij}\) is therefore exactly \(P(Y_{ij}>0\mid b_j)\).

A GLMM can allow either component, or both, to depend on predictors and random effects. For example, a binary regression can specify \(\pi_{ij}\), while a count model specifies the baseline distribution and its parameters. The random effect \(b_j\) represents group-level heterogeneity; probabilities above are conditional on it. If an unconditional probability is wanted, the conditional probabilities must be averaged over the distribution of \(b_j\). This distinction matters because averaging a nonlinear probability over random effects generally does not equal evaluating it at an average random effect.

Worked Example: A Poisson Hurdle Distribution

Suppose a hypothetical count outcome has hurdle probability \(\pi=0.70\), and its baseline distribution is Poisson with rate \(\lambda=2\). The assumptions for this calculation are that the baseline count is Poisson, the hurdle probability is 0.70, and the positive component is that Poisson distribution conditioned on being positive.

For a Poisson variable, the baseline zero probability is \(f(0)=e^{-2}=0.1353\). Therefore the probability of zero under the hurdle model is \(1-\pi=0.30\), not 0.1353. For a count of one, the baseline mass is \(f(1)=2e^{-2}=0.2707\), and the positive-component probability is

$$ P(Y=1)=0.70\frac{2e^{-2}}{1-e^{-2}} =0.70\frac{0.2707}{0.8647} \approx 0.2191. $$

For a count of two, \(f(2)=e^{-2}2^2/2=0.2707\), so \(P(Y=2)\approx0.2191\) as well. These equal probabilities follow from the equal baseline Poisson masses at one and two when \(\lambda=2\); they are not an assumption of the hurdle model. The total probability assigned to all positive counts is 0.70, while the probability assigned to zero is 0.30.

Reading the Components in Context

The two components answer different questions. The hurdle probability describes the chance of any positive count. The baseline count distribution, after truncation, describes the relative pattern of positive counts. A change in either component can change probabilities for particular positive outcomes, but only a change in \(\pi_{ij}\) directly changes the total probability of being positive, conditional on the group effect.

Worked Example: Interpreting the Zero and Positive Probabilities

Suppose a hypothetical model uses \(\pi=0.60\) and a Poisson baseline with \(\lambda=1\). Assume these values apply to every observation in the setting being considered. The Poisson zero probability is \(e^{-1}=0.3679\), so the truncated positive distribution has normalizing denominator \(1-e^{-1}=0.6321\).

The model's probability of zero is \(1-0.60=0.40\). For exactly one event, the baseline probability is \(e^{-1}=0.3679\), giving

$$ P(Y=1)=0.60\frac{e^{-1}}{1-e^{-1}} =0.60\frac{0.3679}{0.6321} \approx 0.3492. $$

The interpretation is that the model assigns a 40% probability to no events and about a 34.92% probability to exactly one event. Among positive counts, the conditional probability of exactly one is \(0.3679/0.6321\approx0.5820\). Multiplying that conditional probability by the 0.60 chance of crossing the hurdle gives the unconditional probability of exactly one.

These are model probabilities, not claims that a particular sample must have exactly those proportions. In a finite sample, observed proportions vary around the probabilities, and model adequacy must be assessed using the data and the sampling design.

Group Heterogeneity and Conditional Probabilities

In a mixed model, the hurdle and baseline count probabilities may depend on group effects. The defining formulas still apply conditional on those effects. For example, a group effect could change the probability of a positive outcome, the baseline count rate, or both. The resulting group-specific probability of zero is \(1-\pi_{ij}\), whereas the group-specific probability of a particular positive count also depends on the truncated baseline distribution.

To obtain a population-average probability, one integrates the conditional probability over the random-effects distribution. For a discrete illustrative distribution, this is a weighted average. With a continuous random-effects distribution, it is an integral. In either case, one should not substitute an average random effect into a conditional probability formula and assume that the result is the marginal probability.

Worked Example: Averaging Across Two Group Types

Consider a hypothetical population with two equally common group types. For the first type, let \(\pi_A=0.40\) and let the baseline count distribution be Poisson with \(\lambda_A=1\). For the second type, let \(\pi_B=0.80\) and let the baseline distribution be Poisson with \(\lambda_B=2\). This two-point setup illustrates averaging over heterogeneity; it is not an assumption that random effects in general have only two values.

The conditional zero probabilities are 0.60 for type A and 0.20 for type B. With equal group weights, the population-average zero probability is

$$ P(Y=0)=\tfrac12(0.60)+\tfrac12(0.20)=0.40. $$

For type A, the conditional probability of one count is \(0.40e^{-1}/(1-e^{-1})\approx0.2328\). For type B, it is \(0.80(2e^{-2})/(1-e^{-2})\approx0.2504\). Averaging gives

$$ P(Y=1)=\tfrac12(0.2328)+\tfrac12(0.2504)=0.2416. $$

The population-average probabilities are therefore 0.40 for zero and approximately 0.2416 for exactly one. These calculations average probabilities across group types; they do not imply that an individual group has those conditional probabilities.

Comparison, Diagnostics, and Limitations

An ordinary count GLMM uses one count distribution for zero and positive outcomes, so it does not have a separate hurdle probability. A zero-inflated model instead combines a zero-generating component with a count distribution that can itself produce zeros. In a hurdle model, all zeros come from the binary hurdle, and the count distribution is truncated at zero for positive outcomes. These are different probability structures, not merely different names for the same model.

Useful diagnostics should examine both parts of the distribution. Compare observed and fitted zero proportions, and compare observed and fitted frequencies among positive counts, including the tail. A model can reproduce the overall zero proportion but fit positive counts poorly; conversely, it can capture the positive-count pattern while missing the frequency of zeros. For GLMMs, assess predictions in a way that distinguishes conditional fit given group effects from population-average fit.

The hurdle structure is most defensible when the zero-versus-positive distinction is meaningful and the positive counts can reasonably be modeled by a specified truncated distribution. It can be inadequate if the positive tail is too heavy or too light, if the binary component is misspecified, or if relevant group heterogeneity is omitted. A good fit does not prove that the process literally occurs in two temporal stages: the two components are a statistical representation of the outcome distribution.

  • Common mistake: treating \(f(0)\), the baseline distribution's zero probability, as the hurdle model's zero probability. Correction: the model's zero probability is \(1-\pi\); \(f(0)\) appears only in the normalization of positive counts.
  • Common mistake: using the untruncated baseline mass \(f(y)\) for \(y>0\) and multiplying it by \(\pi\). Correction: divide by \(1-f(0)\) first, so the positive probabilities sum to one conditional on crossing the hurdle.
  • Common mistake: interpreting \(\pi\) as the probability of a particular positive count. Correction: \(\pi\) is the probability of any positive count; a particular positive-count probability also depends on the truncated distribution.

Check Your Understanding

Answer each question using the hurdle model definition. Brief solutions follow the questions.

  1. If \(\pi=0.25\), what is the model probability of zero?
  2. A baseline distribution has \(f(0)=0.20\) and \(f(2)=0.24\), with \(\pi=0.50\). What is \(P(Y=2)\)?
  3. Why must the positive-component probabilities be divided by \(1-f(0)\)?
  4. In a hurdle GLMM, what does conditioning on a group random effect mean for the stated component probabilities?
  5. State one probability-structure difference between a hurdle model and a zero-inflated model.

Solutions. (1) \(P(Y=0)=1-\pi=0.75\). (2) \(P(Y=2)=0.50(0.24)/(1-0.20)=0.15\). (3) The baseline positive masses sum to \(1-f(0)\); division by that quantity makes them sum to one conditional on being positive. (4) The probabilities apply at a specified value of the group effect; population-average probabilities require averaging over its distribution. (5) A hurdle model assigns all zeros through the binary component and truncates the count distribution to positive values; a zero-inflated model allows its count component to generate zeros as well.

Clinical Biostats