Tutorials › Generalized Linear Models › Zero Exposure And Boundary Cases

Exposure and Rate Modeling · Tutorial 436 of 981

Zero Exposure And Boundary Cases

Distinguish records with no exposure from event-free records, and use the Poisson likelihood to understand what each record says about a rate.

Intermediate 10 min read

What You'll Learn

  • Identify when an observed rate is undefined and when a count is incompatible with zero exposure.
  • Write the likelihood contribution for zero exposure and for zero events at positive exposure.
  • Explain why an event-free record can inform a rate even though its crude rate is zero.
  • Derive the score and information contribution from a zero count in a log-linear rate model.
  • Quantify why crude rates from very small exposures are unstable.

Why the exposure boundary matters

A rate is a count divided by an amount of opportunity: events per person-year, failures per machine-hour, or cases per population at risk. When the exposure is zero, the observed count divided by exposure is undefined. But the record may still have a clear likelihood contribution. When exposure is positive but no events occur, the observed rate is zero, yet the record is not equivalent to a zero-exposure record. Keeping these cases separate is essential for fitting and interpreting a Poisson rate model.

Let \(Y_i\) denote a count and \(t_i\) its exposure, with \(t_i\geq 0\). In a Poisson rate model, the mean count is the exposure multiplied by the rate. Write the rate as \(\lambda_i=\exp(x_i^\mathsf{T}\beta)\), where \(x_i\) is the predictor vector and \(\beta\) is a finite parameter vector. Thus the mean is \(\mu_i=t_i\lambda_i\). The exponential link ensures a positive finite rate for finite \(x_i^\mathsf{T}\beta\); the exposure enters as an offset when \(t_i>0\).

Definition: A zero-exposure record has \(t_i=0\). A zero-count record has \(Y_i=0\). If \(t_i>0\), its observed rate \(Y_i/t_i\) is defined, including when \(Y_i=0\). If \(t_i=0\), \(Y_i/t_i\) is undefined, whether or not \(Y_i=0\).

The distinction is not merely arithmetic. Under the Poisson model with a finite rate, zero exposure forces the count to be zero with probability one. By contrast, zero events during positive exposure are possible under many positive rates, and their probability depends on the rate.

What the likelihood says at zero exposure

For a positive exposure \(t_i\), the probability mass function is

$$ P(Y_i=y_i\mid t_i,x_i,\beta) = \frac{\exp(-t_i\lambda_i)(t_i\lambda_i)^{y_i}}{y_i!}, \qquad y_i=0,1,2,\ldots. $$

At \(t_i=0\), the mean is \(\mu_i=0\), and the Poisson distribution with mean zero is degenerate: \(P(Y_i=0)=1\), while \(P(Y_i=y_i)=0\) for every positive integer \(y_i\). This gives a precise interpretation of the boundary case.

Result: Under a Poisson rate model with a finite rate, a zero-exposure record with \(Y_i=0\) has likelihood contribution \(1\), independent of the rate parameters. A zero-exposure record with \(Y_i>0\) has likelihood contribution \(0\), so it is incompatible with the model as recorded.

For \(t_i=0,Y_i=0\), the contribution is the probability of the only possible count, namely one. It therefore adds zero to the log-likelihood and no score or curvature in \(\beta\). The log-offset expression \(\log(t_i)+x_i^\mathsf{T}\beta\) cannot be evaluated at zero exposure; this does not mean the likelihood is undefined. The probability model itself is well-defined at the boundary.

For \(t_i=0,Y_i>0\), it is not appropriate to insert a small positive exposure merely to make the offset computable. The recorded event and exposure must first be checked: perhaps exposure was measured over the wrong interval, was rounded to zero, or the event was assigned to the wrong record. If the data are correct, the assumed model needs reconsideration. Quietly changing zero to a small number changes the model and can produce an arbitrary rate contribution.

Worked Example: A Record With Exactly Zero Exposure

Suppose a device is monitored for \(t=0\) operating hours during a study interval. Compare the likelihood contributions if the recorded failure count is \(Y=0\) or \(Y=1\), under a Poisson model with rate \(\lambda=\exp(\beta)\).

If \(Y=0\), the mean count is \(t\lambda=0\), so

$$ P(Y=0\mid t=0,\lambda)=1. $$

The log-likelihood contribution is \(\log(1)=0\) for every \(\beta\). The observed rate \(Y/t=0/0\) is undefined, and no rate estimate should be reported for this record.

If \(Y=1\), then \(P(Y=1\mid t=0,\lambda)=0\) for every finite \(\lambda\). The log-likelihood is \(-\infty\). The count and exposure cannot both be correct under this model; there is no finite rate that makes a positive count possible during exactly zero exposure.

Zero events during positive exposure

Now suppose \(t_i>0\) but \(Y_i=0\). The rate \(Y_i/t_i\) is defined and equals zero, but the likelihood contribution is not one. Substituting \(y_i=0\) in the Poisson mass function gives

$$ P(Y_i=0\mid t_i,\lambda_i)=\exp(-t_i\lambda_i), \qquad \ell_i(\lambda_i)=-t_i\lambda_i. $$

This is positive for every finite positive rate and depends on that rate. An event-free record can therefore provide evidence about the rate: it is less likely under larger rates, all else equal. Its contribution is not the same as an observation whose exposure is zero.

The parameter dependence can also be seen in a log-linear model. For \(t_i>0\), the log-likelihood contribution, score, and observed information matrix are

$$ \begin{aligned} \ell_i(\beta) &=Y_i\{\log(t_i)+x_i^\mathsf{T}\beta\} -t_i\exp(x_i^\mathsf{T}\beta)-\log(Y_i!),\\ \frac{\partial\ell_i(\beta)}{\partial\beta} &=x_i\{Y_i-t_i\exp(x_i^\mathsf{T}\beta)\},\\ -\frac{\partial^2\ell_i(\beta)}{\partial\beta\,\partial\beta^\mathsf{T}} &=t_i\exp(x_i^\mathsf{T}\beta)x_ix_i^\mathsf{T}. \end{aligned} $$
Derived result: For a positive-exposure record with \(Y_i=0\), the score is \(-t_i\lambda_i x_i\), and the observed information is \(t_i\lambda_i x_ix_i^\mathsf{T}\). Thus the record generally affects estimation even though its observed count is zero.

To verify the result, set \(Y_i=0\) in the log-likelihood. The factorial term is \(\log(0!)=0\), and the count multiplied by \(\log(t_i)+x_i^\mathsf{T}\beta\) vanishes, leaving \(\ell_i(\beta)=-t_i\exp(x_i^\mathsf{T}\beta)\). Differentiation gives the stated score. Differentiating that score once more gives \(-t_i\exp(x_i^\mathsf{T}\beta)x_ix_i^\mathsf{T}\), so its negative is the observed information. For finite \(\beta\) and positive \(t_i\), the scalar multiplier is positive. \(\square\)

Worked Example: Zero Events at Positive Exposure

A clinic observes zero events over \(t=0.25\) person-years. Compare the likelihood of this record under rates \(\lambda=2\) and \(\lambda=8\) events per person-year.

At rate \(2\), the expected count is \(0.25(2)=0.5\). The probability of no events is

$$ P(Y=0\mid \lambda=2)=\exp(-0.5)\approx 0.6065. $$

At rate \(8\), the expected count is \(0.25(8)=2\), and

$$ P(Y=0\mid \lambda=8)=\exp(-2)\approx 0.1353. $$

The observed crude rate is \(0/0.25=0\) in either comparison, but the likelihood contribution is much larger under rate \(2\) than rate \(8\). The zero count is a valid observation that distinguishes the rates; it is not a record with no exposure or no information.

Why very small exposures produce unstable crude rates

When \(t_i\) is positive but small, the offset \(\log(t_i)\) is finite and the likelihood model remains valid. The difficulty is that the crude rate \(Y_i/t_i\) can change sharply with a small change in the count. One event over \(0.01\) person-years gives a crude rate of \(100\) events per person-year; zero events over the same exposure gives a crude rate of zero. Neither number alone describes how uncertain the underlying rate is.

The variability of a crude rate follows directly from the Poisson mean and variance. For fixed \(t>0\) and rate \(\lambda>0\), if \(Y\sim\operatorname{Poisson}(t\lambda)\), then

$$ E\left[\frac{Y}{t}\right]=\lambda, \qquad \operatorname{Var}\left(\frac{Y}{t}\right) =\frac{\operatorname{Var}(Y)}{t^2} =\frac{t\lambda}{t^2} =\frac{\lambda}{t}. $$

The standard deviation of the crude rate is \(\sqrt{\lambda/t}\), and its standard deviation relative to its mean is \(1/\sqrt{t\lambda}\). As exposure decreases, both the variance and relative variability increase. This derivation assumes a fixed positive exposure and the stated Poisson model; it does not say that every small-exposure estimate must be wrong, but it explains why it is typically imprecise.

Worked Example: One Event in a Tiny Exposure

Suppose \(t=0.01\) person-years and \(Y=1\). The crude rate is

$$ \frac{Y}{t}=\frac{1}{0.01}=100 \quad\text{events per person-year}. $$

For a single Poisson observation, the log-likelihood as a function of \(\lambda\) is

$$ \ell(\lambda)=\log(0.01\lambda)-0.01\lambda, \qquad \lambda>0. $$

Its derivative is \(1/\lambda-0.01\), which is zero at \(\hat{\lambda}=100\). The second derivative is \(-1/\lambda^2<0\), confirming that this is the maximum. But nearby rates can give similar likelihoods: relative to the maximum, at \(\lambda=50\) the log-likelihood difference is

$$ \ell(50)-\ell(100)=\log(0.5)+0.5\approx -0.1931, $$

and at \(\lambda=200\) it is

$$ \ell(200)-\ell(100)=\log(2)-1\approx -0.3069. $$

Both rates remain reasonably close in likelihood to the maximum despite being half or twice the crude estimate. The data do not support treating \(100\) as a precisely known rate. Regression models can use the likelihood across records and predictors, but a tiny exposure still supplies limited information on its own.

Practical handling and common pitfalls

A sound analysis begins by separating three situations rather than treating every zero alike:

Exposure and countObserved ratePoisson likelihood interpretation
\(t=0,\;Y=0\)UndefinedContribution is 1; no rate information
\(t=0,\;Y>0\)UndefinedContribution is 0 under the model; investigate the record or model
\(t>0,\;Y=0\)Defined as 0Contribution is \(\exp(-t\lambda)\); it depends on the rate
\(t>0\) small, \(Y\geq 0\)DefinedUse the likelihood, but expect a noisy record-level crude rate

A common mistake is to say, “The observed rate is zero, so this record contributes nothing.” That reasoning conflates a zero count with zero exposure. The correction is to check the denominator: with positive exposure, a zero count has a rate of zero and likelihood \(\exp(-t\lambda)\), which depends on the model rate. Only the zero-exposure, zero-count case has a parameter-free likelihood contribution.

Another mistake is to discard every zero count before fitting a rate model. That removes valid evidence and can bias the analysis by retaining only records in which events occurred. Conversely, retaining a positive count with zero exposure without investigation asks the model to explain an impossible observation. A third mistake is to report \(Y_i/t_i\) as a stable estimate for every record. For small \(t_i\), the arithmetic is valid but the estimate can be highly variable; interpret it in light of the exposure and the model, rather than as a precise rate.

In practice, verify that exposure is genuinely zero rather than missing, rounded, or measured on a different time scale. Keep the count and exposure definitions aligned to the same record and observation window. For a zero exposure and zero count, no log-offset row can be formed, but omitting that row from parameter estimation does not alter the likelihood because its contribution is constant. Retaining it in data-quality summaries can still be useful. For positive exposure, including a very small value, use the specified exposure in the likelihood rather than replacing it with an arbitrary threshold.

Key takeaway: An undefined observed rate does not imply an undefined likelihood. Zero exposure with zero events contributes no rate information; zero events over positive exposure contributes a rate-dependent likelihood; and small positive exposure calls for caution about precision, not automatic deletion or alteration.

Check Your Understanding

For each question, distinguish the observed rate from the likelihood contribution.

  1. Under a Poisson rate model with finite \(\lambda\), what are the likelihood contributions for \(t=0,Y=0\) and \(t=0,Y=2\)?
  2. Why does a record with \(t>0,Y=0\) generally affect estimation even though its crude rate is zero?
  3. For \(Y\sim\operatorname{Poisson}(t\lambda)\), derive the variance of \(Y/t\) for fixed \(t>0\).
  4. A record has one event over \(0.02\) person-years. Calculate its crude rate, and give one reason not to interpret it as a precise rate estimate.
  5. Why is replacing a zero exposure with a small positive number not a neutral computational fix?
Clinical Biostats