Tutorials › Generalized Linear Models › Joint Wald Tests for Quasi-Estimators

Quasi-Likelihood Theory · Tutorial 690 of 981

Joint Wald Tests for Quasi-Estimators

Build and interpret joint Wald tests for linear coefficient restrictions using robust sandwich covariance, and understand when their chi-square approximation is reliable.

Advanced 12 min read

What You'll Learn

  • State a joint null hypothesis as a full-rank system of linear coefficient restrictions
  • Construct the Wald statistic from the estimated restriction and its sandwich covariance
  • Derive the asymptotic chi-square reference distribution under the null
  • Calculate joint Wald statistics with diagonal and correlated covariance estimates
  • Recognize equivalent restriction systems and common finite-sample pitfalls

Why Test Several Restrictions Together?

A single coefficient test asks whether one component of a regression parameter equals a specified value. Many scientific questions instead concern several coefficients at once: whether a group of predictors contributes jointly, whether two slopes are both zero, or whether a specified linear combination of coefficients equals a target. These are joint hypotheses. Testing each coefficient separately does not answer the same question, because the estimates can be correlated and the joint null concerns their combined uncertainty.

For a quasi-estimator, the covariance used in the test should reflect the estimating procedure and the variability of the observations. In particular, when the variance model may be misspecified, the sandwich covariance—not a model-based covariance that assumes the variance specification is correct—is the relevant uncertainty estimate. The Wald construction converts the estimated departure from the null into a squared, covariance-standardized distance.

Linear Restrictions and the Wald Statistic

Definition: Let \(\beta\) be a \(p\)-dimensional coefficient vector. A joint linear hypothesis has the form \(H_0:R\beta=r\), where \(R\) is a known \(q\times p\) matrix of rank \(q\), \(r\) is a specified \(q\)-vector, and \(q\le p\). The alternative is that at least one of the \(q\) restrictions fails.

The rank condition means the restrictions are linearly independent. It also ensures that the hypothesis has \(q\), rather than fewer, distinct components. Write \(\hat\beta\) for the quasi-estimator and let \(\hat C\) be its estimated sandwich covariance matrix, including the sample-size scaling so that \(\hat C\) estimates the covariance of \(\hat\beta\) itself. The estimated restriction vector is \(R\hat\beta-r\), and its estimated covariance is \(R\hat C R^\mathsf{T}\).

Definition: The joint Wald statistic for \(H_0:R\beta=r\) is $$ W=(R\hat\beta-r)^\mathsf{T}\left(R\hat C R^\mathsf{T}\right)^{-1}(R\hat\beta-r). $$ It is defined when \(R\hat C R^\mathsf{T}\) is invertible. Under the regularity conditions below, its null reference distribution is asymptotically chi-square with \(q\) degrees of freedom.

The covariance scaling is important. If software instead reports \(\hat V\) as an estimate of the asymptotic covariance \(V\) in the limit \(\sqrt n(\hat\beta-\beta)\xrightarrow{d}N(0,V)\), then the covariance estimate for \(\hat\beta\) is \(\hat C=\hat V/n\). The same statistic can then be written

$$ W=n(R\hat\beta-r)^\mathsf{T}\left(R\hat V R^\mathsf{T}\right)^{-1}(R\hat\beta-r). $$

These expressions are equivalent; the factor \(n\) must not be omitted when using an estimate of \(V\) rather than an estimate of \(\operatorname{Cov}(\hat\beta)\).

Why the Reference Distribution Is Chi-Square

The result rests on asymptotic normality of the quasi-estimator and consistency of the sandwich covariance estimate. State these assumptions explicitly: under the null value \(\beta_0\), suppose

$$ \sqrt n(\hat\beta-\beta_0)\xrightarrow{d}N(0,V), \qquad n\hat C\xrightarrow{p}V, $$

where \(V\) is finite and positive definite. Assume \(R\) is fixed, has rank \(q\), and \(RVR^\mathsf{T}\) is positive definite. These assumptions describe the setting in which the estimator has a nonsingular limiting covariance in the tested directions. The asymptotic normality is the quasi-estimator result; the argument below derives the test distribution from it.

Theorem: Under \(H_0:R\beta_0=r\) and the conditions just stated, the joint Wald statistic satisfies \(W\xrightarrow{d}\chi^2_q\).

Proof. Define \(Z_n=\sqrt n(R\hat\beta-r)\). Since \(R\beta_0=r\), linear transformation of the assumed asymptotic normal limit gives

$$ Z_n=R\sqrt n(\hat\beta-\beta_0)\xrightarrow{d}N(0,C), \qquad C=RVR^\mathsf{T}. $$

By assumption, \(C\) is positive definite. Also, \(nR\hat C R^\mathsf{T}\xrightarrow{p}C\), by the covariance consistency and the fact that \(R\) is fixed. The Wald statistic can be expressed as

$$ W=Z_n^\mathsf{T}\left(nR\hat C R^\mathsf{T}\right)^{-1}Z_n. $$

The inverse is a continuous function at positive-definite \(C\), so \(\left(nR\hat C R^\mathsf{T}\right)^{-1}\xrightarrow{p}C^{-1}\). Slutsky's theorem therefore gives convergence in distribution of \(W\) to \(Z^\mathsf{T}C^{-1}Z\), where \(Z\sim N(0,C)\). Let \(U=C^{-1/2}Z\). Then \(U\sim N(0,I_q)\), and

$$ Z^\mathsf{T}C^{-1}Z=U^\mathsf{T}U=\sum_{j=1}^{q}U_j^2\sim\chi^2_q. $$

Thus \(W\xrightarrow{d}\chi^2_q\), as claimed. \(\square\)

This is an asymptotic result. It does not assert that the statistic has an exact chi-square distribution for a fixed sample size. Its degrees of freedom count the independent restrictions, not the number of coefficients in the entire model.

Worked Calculations

Worked Example: Two Coefficients Tested Against Zero

Suppose a quasi-regression has two coefficients of interest, with estimates \(\hat\beta_1=0.4\) and \(\hat\beta_2=-0.3\). The estimated sandwich covariance for these estimates is

$$ \hat C= \begin{pmatrix} 0.04&0\\ 0&0.09 \end{pmatrix}. $$

Test \(H_0:\beta_1=0,\ \beta_2=0\). Here \(R=I_2\), \(r=(0,0)^\mathsf{T}\), and \(R\hat\beta-r=(0.4,-0.3)^\mathsf{T}\). The restriction covariance is the displayed covariance matrix, so

$$ W=\frac{0.4^2}{0.04}+\frac{(-0.3)^2}{0.09} =\frac{0.16}{0.04}+\frac{0.09}{0.09} =4+1=5. $$

There are two independent restrictions, so the asymptotic reference distribution is \(\chi^2_2\). For a chi-square variable with two degrees of freedom, the upper-tail probability at 5 is \(\exp(-5/2)\approx0.0821\). This is not below 0.05, so this joint test does not reject at the 5% level. The calculation uses both estimated departures and their uncertainties together.

Worked Example: Accounting for Correlated Estimates

Suppose two coefficient estimates have departures from their null values of \(-0.4\) and \(0.5\), and their estimated sandwich covariance is

$$ \hat C= \begin{pmatrix} 0.09&0.01\\ 0.01&0.04 \end{pmatrix}. $$

For the joint null that both departures are zero, the determinant of this covariance is

$$ \det(\hat C)=0.09(0.04)-0.01^2=0.0036-0.0001=0.0035. $$

For a two-dimensional covariance matrix with entries \(a,b,b,d\), the quadratic form at \((x,y)^\mathsf{T}\) is \(\{dx^2-2bxy+ay^2\}/(ad-b^2)\). Substituting \(x=-0.4\), \(y=0.5\), \(a=0.09\), \(b=0.01\), and \(d=0.04\), the numerator is

$$ 0.04(0.16)-2(0.01)(-0.4)(0.5)+0.09(0.25) =0.0064+0.004+0.0225=0.0329. $$

Therefore

$$ W=\frac{0.0329}{0.0035}\approx9.40. $$

The reference distribution is \(\chi^2_2\), with upper-tail probability \(\exp(-9.40/2)\approx0.0091\). This test rejects at the 5% level. The off-diagonal covariance is included in the calculation; treating the estimates as uncorrelated would give a different statistic.

Worked Example: Testing Two Linear Combinations

Let \(\beta=(\beta_1,\beta_2,\beta_3)^\mathsf{T}\), with estimate \(\hat\beta=(0.6,-0.1,1.4)^\mathsf{T}\) and sandwich covariance

$$ \hat C= \begin{pmatrix} 0.04&0.01&0\\ 0.01&0.09&0.02\\ 0&0.02&0.16 \end{pmatrix}. $$

Test \(H_0:\beta_1+\beta_2=0,\ \beta_3=1\). The restriction matrix and target are

$$ R= \begin{pmatrix} 1&1&0\\ 0&0&1 \end{pmatrix}, \qquad r= \begin{pmatrix} 0\\ 1 \end{pmatrix}. $$

The departure from the restrictions is \(R\hat\beta-r=(0.5,0.4)^\mathsf{T}\). Projecting the covariance into the restriction space gives

$$ R\hat C R^\mathsf{T} = \begin{pmatrix} 0.04+0.09+2(0.01)&0+0.02\\ 0+0.02&0.16 \end{pmatrix} = \begin{pmatrix} 0.15&0.02\\ 0.02&0.16 \end{pmatrix}. $$

Its determinant is \(0.15(0.16)-0.02^2=0.024-0.0004=0.0236\). The numerator of the quadratic form is

$$ 0.16(0.5^2)-2(0.02)(0.5)(0.4)+0.15(0.4^2) =0.04-0.008+0.024=0.056. $$

Thus \(W=0.056/0.0236\approx2.373\). With two restrictions, the \(\chi^2_2\) upper-tail probability is \(\exp(-2.373/2)\approx0.305\). The test does not reject at the 5% level. This example illustrates that restrictions need not select individual coefficients: they can test linear combinations directly.

Equivalent Ways to Write the Same Restrictions

The numerical form of the restriction equations is not unique. If \(A\) is any invertible \(q\times q\) matrix, then \(R\beta=r\) and \(AR\beta=Ar\) describe the same set of coefficient vectors. The Wald statistic is unchanged by this rewriting.

Result: Replacing \((R,r)\) by \((AR,Ar)\), for invertible \(A\), leaves the Wald statistic unchanged.

Proof. Set \(d=R\hat\beta-r\) and \(M=R\hat C R^\mathsf{T}\). For the transformed restrictions, the departure is \(Ad\) and the covariance is \(AMA^\mathsf{T}\). Since \(A\) and \(M\) are invertible,

$$ (AMA^\mathsf{T})^{-1}=A^{-\mathsf{T}}M^{-1}A^{-1}. $$

Consequently, the transformed quadratic form is

$$ (Ad)^\mathsf{T}(AMA^\mathsf{T})^{-1}(Ad) =d^\mathsf{T}A^\mathsf{T}A^{-\mathsf{T}}M^{-1}A^{-1}Ad =d^\mathsf{T}M^{-1}d. $$

This equals the original statistic. \(\square\)

Interpretation and Finite-Sample Cautions

A Wald statistic measures how far the estimated coefficient vector lies from the null restrictions relative to estimated uncertainty in the tested directions. Large values indicate a departure that is large compared with its estimated standard error structure. The sandwich covariance matters because it carries the robust uncertainty information into this comparison. A covariance estimate that ignores dependence among the restricted estimates can misstate the distance.

The chi-square calibration is justified by an asymptotic normal approximation, not by an exact finite-sample identity. In modest samples, especially with many restrictions, the approximation can be poor. Estimated sandwich covariances can also be unstable when there are few independent observational units, strong leverage, or near-collinearity among the tested directions. If \(R\hat C R^\mathsf{T}\) is singular or nearly singular, the usual inverse-based statistic is undefined or numerically unreliable; this may indicate redundant restrictions, insufficient information, or an unstable covariance estimate.

A common mistake is to test each coefficient separately and then conclude that the joint null is rejected if one individual test rejects—or that it is accepted if none does. Neither conclusion is generally justified: individual tests do not account for the joint covariance structure, and their results do not equal the specified \(q\)-restriction Wald test. The correction is to form \(R\hat\beta-r\), calculate its full covariance \(R\hat C R^\mathsf{T}\), and evaluate one joint quadratic form. Also, the chi-square \(p\)-value should be described as an asymptotic approximation, not an exact finite-sample probability.

Key takeaway: For a joint Wald test, the number of independent restrictions determines the degrees of freedom, while the sandwich covariance of those restrictions determines how the observed departure is standardized. Use the full covariance matrix and treat the chi-square reference as asymptotic.

Check Your Understanding

Check that you can set up the restrictions, covariance, and reference distribution before interpreting a result.

  1. For \(H_0:\beta_2=\beta_3=0\), how would you construct \(R\) and \(r\) when \(\beta\) has four components?
  2. If a hypothesis consists of three independent linear restrictions, what is the asymptotic chi-square degrees of freedom, and which assumptions support that calibration?
  3. Why can the off-diagonal entries of \(R\hat C R^\mathsf{T}\) affect a joint Wald statistic?
  4. Suppose \(\hat V\) estimates the limiting covariance of \(\sqrt n(\hat\beta-\beta)\). What scaling is needed in the Wald statistic when using \(\hat V\) instead of a covariance estimate for \(\hat\beta\)?
  5. Why is it incorrect to describe the chi-square Wald \(p\)-value as an exact finite-sample probability?
Clinical Biostats