Tutorials › Generalized Linear Models › Delta-Method Intervals for Expected Counts

Count Effects and Predictions · Tutorial 475 of 981

Delta-Method Intervals for Expected Counts

You will learn how to turn uncertainty on the log-mean scale into a direct-scale standard error and interval, and how to recognize when that interval is a poor approximation.

Intermediate 10 min read

What You'll Learn

  • Express a fitted Poisson mean as a smooth function of its linear predictor.
  • Calculate the predictor variance from a coefficient covariance matrix.
  • Derive the delta-method standard error for an expected count.
  • Construct and interpret a direct-scale Wald interval.
  • Identify negative, asymmetric, or otherwise unreliable intervals.

From Linear-Predictor Uncertainty to Mean Uncertainty

In a Poisson log-link model, the mean at a covariate profile is obtained by exponentiating its linear predictor. Uncertainty is often first calculated for that predictor, because it is a linear combination of estimated coefficients. To report uncertainty for the expected count itself, we need to carry that uncertainty through the exponential transformation.

The delta method gives a first-order approximation to the variance after a smooth transformation. Applied to the exponential function, it says that uncertainty in the linear predictor is multiplied, approximately, by the fitted mean. This leads to a simple standard error and a direct-scale Wald interval. The approximation is useful, but it does not guarantee that the interval respects the positive range of a Poisson mean or has accurate coverage in a given sample.

Definition: For a Poisson log-link model, let \(\beta\) be the coefficient vector and let \(x_0\) denote the design vector for a specified covariate profile. Its linear predictor and expected count are $$ \eta_0=x_0^\mathsf{T}\beta,\qquad \mu_0=\exp(\eta_0). $$ The fitted predictor and fitted mean are \(\hat\eta_0=x_0^\mathsf{T}\hat\beta\) and \(\hat\mu_0=\exp(\hat\eta_0)\). If the estimated covariance matrix of \(\hat\beta\) is \(\widehat V\), the estimated predictor variance is \(\hat v_0=x_0^\mathsf{T}\widehat Vx_0\).

If the model includes a known offset, it is added to \(\eta_0\) before exponentiation. The derivative of the predictor with respect to \(\beta\) remains \(x_0\), so the variance calculation below is unchanged. In applications, \(\widehat V\) is typically obtained from the fitted model’s coefficient covariance matrix; it is the covariance matrix of the coefficient estimates, not a matrix of coefficient standard errors placed on the diagonal.

The Delta-Method Standard Error

For a differentiable function \(g\), the first-order delta method approximates the variance of \(g(\hat\theta)\) by the squared derivative of \(g\) at the true parameter, multiplied by the variance of \(\hat\theta\). Here \(g(\eta)=\exp(\eta)\), whose derivative is also \(\exp(\eta)\). Thus, near the fitted predictor, a change in \(\eta_0\) of size \(d\) corresponds to a change in the mean of approximately \(\mu_0d\).

Result: The first-order delta-method approximation for the variance of the fitted mean is $$ \widehat{\operatorname{Var}}(\hat\mu_0)\ \approx\ \hat\mu_0^2\hat v_0, \qquad \widehat{\operatorname{SE}}(\hat\mu_0)=\hat\mu_0\sqrt{\hat v_0}. $$ The direct-scale Wald interval with normal critical value \(z_{1-\alpha/2}\) is $$ \hat\mu_0\ \pm\ z_{1-\alpha/2}\hat\mu_0\sqrt{\hat v_0}. $$

The variance result follows directly by a first-order expansion. It is important that the predictor variance includes the covariances among coefficient estimates: for a design vector with several nonzero entries, those covariances contribute to \(x_0^\mathsf{T}\widehat Vx_0\).

Worked Example: Calculating the Direct-Scale Standard Error

Suppose a fitted model has \(\hat\beta=(0.50,0.25)^\mathsf{T}\), and the profile of interest has \(x_0=(1,2)^\mathsf{T}\). Suppose the estimated coefficient covariance matrix is $$ \widehat V= \begin{pmatrix} 0.040&-0.005\\ -0.005&0.010 \end{pmatrix}. $$ Find the fitted mean, its delta-method standard error, and a 95% direct-scale Wald interval.

First calculate the predictor and fitted mean: $$ \hat\eta_0=1(0.50)+2(0.25)=1.00,\qquad \hat\mu_0=\exp(1.00)\approx2.7183. $$

Next calculate the predictor variance, including both covariance terms: $$ \hat v_0= \begin{pmatrix}1&2\end{pmatrix} \begin{pmatrix}0.040&-0.005\\-0.005&0.010\end{pmatrix} \begin{pmatrix}1\\2\end{pmatrix} =0.040-0.010-0.010+0.040=0.060. $$ The predictor standard error is \(\sqrt{0.060}\approx0.2449\). The delta-method standard error for the fitted mean is therefore $$ \widehat{\operatorname{SE}}(\hat\mu_0) =2.7183\sqrt{0.060}\approx0.6657. $$ Using \(z_{0.975}\approx1.96\), the interval is $$ 2.7183\pm1.96(0.6657) =2.7183\pm1.3048 \approx(1.4135,4.0231). $$ This is an approximate interval for the expected count at the specified profile, not an interval for a future Poisson observation.

Why the Approximation Works

The justification is asymptotic. The result below states the conditions that connect uncertainty in the estimated coefficients to uncertainty in the fitted mean. It assumes the usual regular large-sample behavior of the coefficient estimator; it does not assert that a normal approximation is exact for a finite sample.

Theorem: Suppose \(x_0\) is fixed, \(\hat\beta\) estimates a finite-dimensional parameter \(\beta\), and $$ \sqrt n(\hat\beta-\beta)\xrightarrow{d}N(0,\Sigma), $$ where \(\Sigma\) is finite and \(x_0^\mathsf{T}\Sigma x_0>0\). Suppose also that \(n\widehat V\xrightarrow{p}\Sigma\). Then, for \(\mu_0=\exp(x_0^\mathsf{T}\beta)\), $$ \frac{\hat\mu_0-\mu_0}{\mu_0\sqrt{x_0^\mathsf{T}\widehat Vx_0}} \xrightarrow{d}N(0,1). $$ Consequently, the direct-scale Wald interval using \(z_{1-\alpha/2}\) has coverage approaching \(1-\alpha\) under these assumptions.

For a regular, identifiable Poisson log-link model with a fixed-dimensional parameter and a nonsingular information matrix, asymptotic normality and a consistent model-based covariance estimate are standard large-sample conditions. The theorem also states the needed conditions directly, so it can be used when a different valid covariance estimator is employed.

Proof. Write \(\hat\eta_0=x_0^\mathsf{T}\hat\beta\), so \(\hat\eta_0-\eta_0=x_0^\mathsf{T}(\hat\beta-\beta)\). The assumed convergence and the linear transformation rule for normal limits give $$ \sqrt n(\hat\eta_0-\eta_0)\xrightarrow{d} N\bigl(0,x_0^\mathsf{T}\Sigma x_0\bigr). $$ In particular, \(\hat\eta_0-\eta_0=O_p(n^{-1/2})\), so it converges in probability to zero. Taylor’s theorem for the exponential function gives, for some value \(\xi_n\) between \(\hat\eta_0\) and \(\eta_0\), $$ \hat\mu_0-\mu_0 =\exp(\hat\eta_0)-\exp(\eta_0) =\exp(\xi_n)(\hat\eta_0-\eta_0). $$ Because \(\hat\eta_0\xrightarrow{p}\eta_0\), also \(\xi_n\xrightarrow{p}\eta_0\), and hence \(\exp(\xi_n)/\mu_0\xrightarrow{p}1\). Slutsky’s theorem now yields $$ \sqrt n\,\frac{\hat\mu_0-\mu_0}{\mu_0} \xrightarrow{d}N\bigl(0,x_0^\mathsf{T}\Sigma x_0\bigr). $$ Meanwhile, \(n\widehat V\xrightarrow{p}\Sigma\) implies \(n x_0^\mathsf{T}\widehat Vx_0\xrightarrow{p}x_0^\mathsf{T}\Sigma x_0\). Dividing by the resulting consistent estimate of the limiting standard deviation proves the displayed standardized convergence. The limiting standard normal distribution assigns probability \(1-\alpha\) to \([-z_{1-\alpha/2},z_{1-\alpha/2}]\); therefore the corresponding Wald interval has asymptotic coverage \(1-\alpha\). \(\square\)

When a Direct-Scale Interval Can Be Poor

The direct-scale interval uses a symmetric normal approximation around \(\hat\mu_0\). But a Poisson mean must be positive, and exponentiation creates a skewed transformation: equal-sized changes in the predictor do not translate into equal-sized changes in the mean. When predictor uncertainty is appreciable, a symmetric interval on the mean scale can extend below zero or poorly represent that asymmetry. These are warnings about the approximation, not automatic tests that tell us exactly how inaccurate coverage will be.

Worked Example: A Negative Lower Endpoint

Suppose \(\hat\mu_0=1.50\) and the estimated standard error of its linear predictor is \(0.80\). The direct-scale delta-method standard error is $$ 1.50(0.80)=1.20. $$ The 95% direct-scale interval is $$ 1.50\pm1.96(1.20)=1.50\pm2.352=(-0.852,3.852). $$

A negative lower endpoint cannot be a Poisson mean. It does not mean the fitted mean itself is negative; \(\hat\mu_0\) remains positive. It signals that this symmetric, first-order approximation is strained for the amount of uncertainty involved. For comparison only, the interval formed by exponentiating the predictor-scale endpoints is $$ \exp\bigl(\log(1.50)\pm1.96(0.80)\bigr) \approx(0.313,7.20). $$ That construction is positive and asymmetric, but it is not the direct-scale delta-method interval derived here. The two intervals reflect different approximations.

Worked Example: A Smaller Predictor Standard Error

Now suppose \(\hat\mu_0=20\) and the estimated predictor standard error is \(0.10\). The direct-scale standard error is $$ 20(0.10)=2. $$ The 95% direct-scale interval is $$ 20\pm1.96(2)=(16.08,23.92). $$

For comparison, exponentiating the predictor-scale endpoints gives $$ \exp\bigl(\log(20)\pm1.96(0.10)\bigr) \approx(16.44,24.33). $$ These intervals are not identical, but their endpoints are relatively close in this example. The contrast with the previous example illustrates why the size of predictor uncertainty matters: the direct-scale approximation is a local, first-order calculation, and its behavior depends on how much uncertainty is being transformed.

Common Mistakes and Practical Checks

  • Dropping the square. The approximate variance is \(\hat\mu_0^2\hat v_0\), while the standard error is \(\hat\mu_0\sqrt{\hat v_0}\). Confusing these gives the wrong scale.
  • Ignoring coefficient covariances. Compute \(x_0^\mathsf{T}\widehat Vx_0\) using the full covariance matrix. Keeping only diagonal entries is generally incorrect.
  • Calling the interval exact. Its standard-normal justification is asymptotic and depends on the estimator and covariance estimate behaving as specified. The delta method is a local approximation.
  • Treating a negative endpoint as a negative fitted mean. The fitted mean is an exponential and is positive. The endpoint instead warns that the direct-scale interval does not respect the parameter’s range.
  • Confusing mean uncertainty with count variability. This interval concerns the model’s expected count at a profile. A future observed count also varies around that mean; that additional variation is not included here.

In practice, check the predictor variance, the resulting standard error, and the interval endpoints before interpreting the result. A negative endpoint or a very wide interval deserves particular caution. Even if both endpoints are positive, the direct-scale interval remains an approximation whose accuracy cannot be established from endpoint positivity alone.

Check Your Understanding

Use the definitions and calculations in this tutorial to answer the following questions.

  1. For a profile vector \(x_0\), how do you calculate the estimated variance of its fitted linear predictor from \(\widehat V\)?
  2. If \(\hat\mu_0=4\) and the predictor standard error is \(0.25\), calculate the delta-method standard error for the fitted mean.
  3. Why can omitting off-diagonal entries of the coefficient covariance matrix give an incorrect standard error?
  4. What does a negative lower endpoint of a direct-scale interval indicate, and what does it not indicate?
  5. Why is the direct-scale delta-method interval not an interval for a future Poisson observation?
Clinical Biostats