Tutorials › Generalized Linear Models › Wald Inference After Firth Bias Reduction

Bias Reduction and Separation · Tutorial 936 of 981

Wald Inference After Firth Bias Reduction

Learn to calculate and interpret information-based Wald intervals and tests from Firth bias-reduced logistic estimates.

Advanced 11 min read

What You'll Learn

  • Calculate the model-based covariance matrix at a Firth estimate
  • Construct Wald intervals for coefficients and odds ratios
  • Test linear contrasts using their estimated covariance
  • Understand when Wald inference is justified asymptotically
  • Distinguish ordinary information-based uncertainty from penalized-likelihood curvature
  • Recognize why a finite Firth estimate does not ensure a reliable Wald interval

From a Finite Estimate to an Interval

Firth bias reduction can produce finite logistic regression estimates even when ordinary maximum likelihood fails because of separation. A finite estimate, however, is not itself an uncertainty statement. Wald inference adds an estimated standard error and uses a normal approximation to construct intervals or tests. This tutorial develops that calculation and explains what its covariance matrix represents.

The central distinction is between the method used to obtain the point estimate and the information used for its usual model-based Wald standard error. The estimate solves Firth's adjusted score equations, whereas the standard covariance calculation uses the ordinary logistic model's Fisher information, evaluated at that estimate. The resulting intervals are approximate; finiteness alone does not make them exact or guarantee good coverage.

Information-Based Covariance

Consider independent binomial responses \(Y_i\), with \(m_i\) trials and success probability \(p_i\), and a logistic linear predictor \(\eta_i=x_i^\mathsf{T}\beta\). Here \(x_i\) is a column vector of covariates and \(\beta\) is the coefficient vector. For Bernoulli data, \(m_i=1\). The ordinary Fisher information at a coefficient vector \(\beta\) is

$$ I(\beta)=X^\mathsf{T}W(\beta)X,\qquad W(\beta)=\operatorname{diag}\{m_i p_i(\beta)[1-p_i(\beta)]\}, \qquad p_i(\beta)=\frac{\exp(x_i^\mathsf{T}\beta)}{1+\exp(x_i^\mathsf{T}\beta)}. $$

If the design matrix \(X\) has full column rank and all fitted probabilities lie strictly between zero and one, this information is positive definite. For a Firth estimate \(\hat\beta_F\), the usual model-based covariance estimate and standard error for coefficient \(j\) are

$$ \widehat{\operatorname{Var}}(\hat\beta_F)=I(\hat\beta_F)^{-1}, \qquad \operatorname{SE}(\hat\beta_{F,j}) =\sqrt{\left[I(\hat\beta_F)^{-1}\right]_{jj}}. $$

The estimate in these expressions is the Firth estimate, but \(I\) is the ordinary model Fisher information—not the Hessian of the Jeffreys-penalized log-likelihood. This is a common model-based Wald convention. A different covariance convention based on penalized curvature would require its own definition and interpretation; it should not be silently substituted into these formulas.

Definition: For a scalar coefficient \(\beta_j\), the two-sided \(100(1-\alpha)\%\) information-based Wald interval after Firth bias reduction is $$ \hat\beta_{F,j}\ \pm\ z_{1-\alpha/2} \sqrt{\left[I(\hat\beta_F)^{-1}\right]_{jj}}, $$ where \(z_{1-\alpha/2}\) is the \(1-\alpha/2\) quantile of the standard normal distribution. For a nonzero null value \(\beta_{j,0}\), the corresponding Wald statistic is $$ Z=\frac{\hat\beta_{F,j}-\beta_{j,0}} {\sqrt{\left[I(\hat\beta_F)^{-1}\right]_{jj}}}. $$

Why the Information Formula Has This Form

The information calculation follows from the variance of the ordinary logistic score. For the binomial model, the score is \(U(\beta)=X^\mathsf{T}(Y-mp)\), where \(mp\) denotes the vector with entries \(m_i p_i\). Independence gives a diagonal covariance matrix for \(Y\), with diagonal entries \(m_i p_i(1-p_i)\). Consequently, the score covariance equals \(I(\beta)\). When the model is locally identifiable, the inverse information is the usual first-order covariance for estimating \(\beta\). After Firth fitting, evaluating it at \(\hat\beta_F\) gives the stated plug-in estimate.

The same calculation also gives uncertainty for any linear contrast. Let \(c\) be a fixed coefficient vector, and let \(\psi=c^\mathsf{T}\beta\). Its estimate is \(c^\mathsf{T}\hat\beta_F\), and its estimated variance is

$$ \widehat{\operatorname{Var}}(c^\mathsf{T}\hat\beta_F) =c^\mathsf{T}I(\hat\beta_F)^{-1}c. $$
Result: Under a correctly specified logistic model with fixed coefficient dimension, independent observations, a consistent Firth estimate, and regularity conditions that give a nonsingular limiting information matrix and the usual score central limit theorem, information-based Wald statistics are asymptotically standard normal under their null hypotheses.

One way to see the approximation is to write \(I_n(\beta_0)/n\to J\), where \(J\) is positive definite and \(\beta_0\) is the true coefficient vector. Assume, in addition, that the covariates are bounded, the true probabilities stay away from zero and one, and the Firth adjustment \(A(\beta)\) and its derivative are bounded in probability in a neighborhood of \(\beta_0\). The adjusted score is \(U(\beta)+A(\beta)\). Expanding it about \(\beta_0\), the score equation at a consistent Firth estimate gives

$$ 0=U(\beta_0)-I_n(\beta_0)(\hat\beta_F-\beta_0)+A(\beta_0)+o_p(\sqrt n). $$

The ordinary score has mean zero and covariance \(I_n(\beta_0)\); boundedness and the score central limit theorem therefore give \(U(\beta_0)/\sqrt n\xrightarrow{d}N(0,J)\). Since \(A(\beta_0)=O_p(1)\), its contribution divided by \(\sqrt n\) vanishes. Rearranging the expansion yields

$$ \sqrt n(\hat\beta_F-\beta_0) =J^{-1}\frac{U(\beta_0)}{\sqrt n}+o_p(1) \xrightarrow{d}N(0,J^{-1}). $$

Also, \(I_n(\hat\beta_F)/n\xrightarrow{p}J\), so standardizing by the plug-in information gives the stated asymptotic Wald approximation. This argument concerns regular large-sample behavior. In a small or sparse sample, the normal approximation may be poor even when the Firth estimate and its information matrix are finite.

Worked Wald Calculations

Worked Example: A Coefficient Interval and Odds-Ratio Interval

Suppose a Firth logistic fit reports a treatment coefficient \(\hat\beta_{F,1}=0.70\), and the treatment diagonal entry of \(I(\hat\beta_F)^{-1}\) is \(0.09\). Construct a 95% Wald interval for the coefficient and the corresponding odds ratio.

The standard error is \(\sqrt{0.09}=0.30\). Using \(z_{0.975}=1.96\), the coefficient interval is

$$ 0.70\pm1.96(0.30) =0.70\pm0.588 =[0.112,1.288]. $$

For a one-unit increase in the treatment indicator, the odds ratio is \(\exp(\beta_{F,1})\). Exponentiating both interval endpoints gives

$$ [\exp(0.112),\exp(1.288)] \approx[1.119,3.625]. $$

The estimate is an odds ratio of \(\exp(0.70)\approx2.014\). The interval excludes one, equivalently the coefficient interval excludes zero. These are large-sample Wald conclusions, not a finite-sample guarantee.

Worked Example: A Contrast Uses the Full Covariance Matrix

Suppose two Firth coefficient estimates are \(\hat\beta_F=(-1.2,0.7)^\mathsf{T}\), with estimated covariance matrix

$$ \widehat V= \begin{pmatrix} 0.16 & -0.04\\ -0.04 & 0.09 \end{pmatrix}. $$

Test the null hypothesis \(H_0:\beta_1+2\beta_2=0\) using a two-sided 5% Wald test. Set \(c=(1,2)^\mathsf{T}\). The estimated contrast is \(-1.2+2(0.7)=0.2\). Its variance, including the covariance term, is

$$ c^\mathsf{T}\widehat Vc =0.16+4(0.09)+4(-0.04) =0.16+0.36-0.16 =0.36. $$

Thus the standard error is \(0.6\), and \(Z=0.2/0.6=0.333\). Since \(|0.333|<1.96\), this test does not reject at the 5% level. Omitting the off-diagonal entries would give the wrong contrast variance: correlated coefficient estimates cannot generally be treated as independent.

Worked Example: A Sparse Two-Group Logistic Fit

In two independent groups, suppose each group has 10 binomial trials. The treatment group has 8 successes and the control group has 1. In this saturated two-group logistic model, Firth's Jeffreys penalty gives fitted group probabilities \((y_g+0.5)/(m_g+1)\). Therefore,

$$ \hat p_T=\frac{8.5}{11}=\frac{17}{22}, \qquad \hat p_C=\frac{1.5}{11}=\frac{3}{22}. $$

The treatment log-odds coefficient is the difference in fitted group logits:

$$ \hat\beta_{F,T} =\log\left(\frac{17/5}{3/19}\right) =\log\left(\frac{323}{15}\right) \approx3.070. $$

Use the ordinary binomial information evaluated at these Firth probabilities. The group contributions are \(10\hat p_T(1-\hat p_T)=425/242\) and \(10\hat p_C(1-\hat p_C)=285/242\). Because the coefficient is the difference between the two group logits, its variance is the sum of the reciprocals:

$$ \widehat{\operatorname{Var}}(\hat\beta_{F,T}) =\frac{242}{425}+\frac{242}{285} \approx1.4185, \qquad \operatorname{SE}(\hat\beta_{F,T})\approx1.191. $$

The 95% coefficient interval is \(3.070\pm1.96(1.191)\), or approximately \([0.735,5.405]\). On the odds-ratio scale, this becomes \([\exp(0.735),\exp(5.405)]\approx[2.085,222.6]\). The data are sparse, and the interval's large upper endpoint illustrates why a finite estimate need not imply precise inference.

Worked Example: Wald Inference From a Reported Fit

Suppose a fitted logistic model reports a treatment estimate \(\hat\beta_{F,T}=\log(357/5)\) and information-based variance \(242/105+242/425\). Calculate its 95% interval and odds-ratio interval.

First, \(\log(357/5)=\log(71.4)\approx4.26870\). The variance and standard error are

$$ \frac{242}{105}+\frac{242}{425} \approx2.87417, \qquad \operatorname{SE}\approx\sqrt{2.87417}=1.69534. $$

The margin of error is \(1.96(1.69534)\approx3.32287\). The coefficient endpoints are therefore \(4.26870-3.32287=0.94583\) and \(4.26870+3.32287=7.59157\). Exponentiating them gives

$$ [\exp(0.94583),\exp(7.59157)] \approx[2.574,1981]. $$

The interval excludes an odds ratio of one, but its width shows that this Wald result is compatible with substantial uncertainty. Exponentiation preserves the interval endpoints' order because the exponential function is increasing.

Wald Intervals and Tests Are Two Views of the Same Calculation

For a scalar contrast \(\psi=c^\mathsf{T}\beta\), let \(\hat\psi=c^\mathsf{T}\hat\beta_F\) and \(s^2=c^\mathsf{T}I(\hat\beta_F)^{-1}c\). Its Wald interval is \([\hat\psi-z_{1-\alpha/2}s,\hat\psi+z_{1-\alpha/2}s]\). The two-sided test of \(H_0:\psi=\psi_0\) rejects when

$$ \left|\frac{\hat\psi-\psi_0}{s}\right|>z_{1-\alpha/2}. $$

Rearranging the non-rejection condition gives \(|\hat\psi-\psi_0|\leq z_{1-\alpha/2}s\), which is equivalent to \(\psi_0\) lying inside the interval. Thus, for the same contrast and critical value, the Wald interval and test are equivalent ways to report the calculation. For a vector of \(q\) restrictions \(C\beta=d\), the corresponding Wald statistic is

$$ (C\hat\beta_F-d)^\mathsf{T} \left[C I(\hat\beta_F)^{-1}C^\mathsf{T}\right]^{-1} (C\hat\beta_F-d), $$

which is compared approximately with a chi-squared distribution with \(q\) degrees of freedom under the same large-sample conditions.

Interpretation and a Common Pitfall

Ordinary maximum-likelihood Wald inference evaluates information at the maximum-likelihood estimate. After Firth bias reduction, the estimate changes, so the fitted probabilities and the information-based standard errors change as well. The inferential framework remains a model-based normal approximation; the bias correction does not turn it into an exact procedure. In particular, when separation has made the ordinary maximum-likelihood estimate diverge, the Firth estimate can make a finite Wald calculation possible, but the Wald approximation may still be unreliable in a small sample.

  • Pitfall: treating finite as precise. A finite Firth coefficient can have a very large standard error. Check the information matrix and interval width rather than concluding that finiteness guarantees stability.
  • Pitfall: using penalized curvature without saying so. The information-based covariance described here is \(I(\hat\beta_F)^{-1}\). The Hessian of the penalized log-likelihood is a different matrix and does not give the same calculation by definition.
  • Pitfall: interpreting the coefficient interval on the wrong scale. Logistic coefficients are log odds ratios. Exponentiate both endpoints to obtain an odds-ratio interval; do not exponentiate only the estimate or the standard error.
  • Pitfall: dropping covariance terms for contrasts. For a linear combination of coefficients, use \(c^\mathsf{T}\widehat Vc\), including off-diagonal terms.
Key takeaway: Wald inference after Firth bias reduction combines the adjusted coefficient estimate with the inverse ordinary Fisher information evaluated at that estimate. Its standard errors, tests, and intervals are useful summaries, but their normal approximation must be interpreted with particular care in sparse data.

Check Your Understanding

Use the information-based Wald convention throughout.

  1. Which estimate is used in the information matrix for a Wald interval after Firth fitting?
  2. A coefficient estimate is \(0.4\), with estimated variance \(0.04\). Calculate its 95% Wald interval on the coefficient scale.
  3. Why does a contrast's variance generally require the off-diagonal entries of the coefficient covariance matrix?
  4. What odds-ratio interval corresponds to a coefficient interval \([-0.2,0.8]\)?
  5. Explain why a finite Firth estimate does not establish that its Wald interval has accurate small-sample coverage.
Clinical Biostats