Why Test Coefficients Jointly?
A model may contain several coefficients that represent one scientific question. For example, a treatment effect may vary across two subgroups, making the treatment coefficient and its interaction coefficient jointly relevant. Testing each coefficient separately does not, in general, test the combined claim that both are zero. A joint Wald test evaluates a set of linear restrictions together, using the covariance among the coefficient estimates.
The key calculation is a squared distance: how far the estimated restrictions are from their hypothesized values, measured in units of their estimated covariance. Because that covariance includes off-diagonal terms, the test can give a different conclusion from tests that consider each coefficient in isolation.
Hypotheses and the Wald Quadratic Form
The vector \(A\hat\beta-c\) contains the estimated departures from all \(q\) restrictions. Its covariance estimate is \(A\widehat V A^\top\), so the inverse covariance scales and combines those departures. In particular, the calculation requires the covariance between the restricted estimates, not just their separate variances.
For a test that \(q\) selected coefficients are zero, \(A\) selects those coefficients and \(c\) is the zero vector. More general choices of \(A\) test sums, differences, or other linear combinations. The requirement that \(A\) have full row rank rules out redundant restrictions. If some proposed restrictions are redundant, reduce them to an independent set before using the formula; the degrees of freedom are the number of independent restrictions.
Reference Distribution and Justification
Suppose the coefficient estimator has the asymptotic distribution \(\sqrt n(\hat\beta-\beta_0)\xrightarrow{d}N(0,\Omega)\), where \(\Omega\) is positive definite, and suppose \(\hat\Omega\xrightarrow{p}\Omega\). Here \(\widehat V=\hat\Omega/n\) estimates the covariance of \(\hat\beta\). In a GLM, \(\Omega\) may be obtained from the model-based information under the appropriate regularity conditions, or from a consistent sandwich covariance estimator when that is the intended covariance. The result below is asymptotic; it does not assert an exact finite-sample chi-square distribution.
Proof. Under the null, \(A\beta_0=c\). Define \(Y_n=\sqrt n(A\hat\beta-c)\) and \(S=A\Omega A^\top\). By the assumed asymptotic normality and the fact that a linear transformation of a multivariate normal vector is multivariate normal,
Since \(\Omega\) is positive definite and \(A\) has full row rank, \(S\) is positive definite: for every nonzero \(u\in\mathbb R^q\), \(A^\top u\ne0\), so \(u^\top S u=(A^\top u)^\top\Omega(A^\top u)>0\). Also \(A\hat\Omega A^\top\xrightarrow{p}S\). The statistic can be written
By continuity of matrix inversion at the positive-definite matrix \(S\), the estimated inverse converges in probability to \(S^{-1}\). Slutsky's theorem and the continuous mapping theorem therefore give \(W\xrightarrow{d}Y^\top S^{-1}Y\), where \(Y\sim N(0,S)\). The vector \(S^{-1/2}Y\) has a \(q\)-dimensional standard normal distribution, and \(Y^\top S^{-1}Y=(S^{-1/2}Y)^\top(S^{-1/2}Y)\) is the sum of squares of \(q\) independent standard normal variables. That sum has a \(\chi^2_q\) distribution. \(\square\)
Worked Calculations
Worked Example: Testing Two Coefficients Against Zero
Suppose a fitted GLM gives two coefficient estimates \(\hat\beta_1=0.4\) and \(\hat\beta_2=0.3\), with estimated covariance matrix
Test \(H_0:\beta_1=\beta_2=0\). Here \(A\) is the \(2\times2\) identity matrix, \(c=(0,0)^\top\), and \(A\hat\beta-c=(0.4,0.3)^\top\). The determinant of \(\widehat V\) is \(0.04(0.09)-0.03^2=0.0027\), so
Consequently,
The reference distribution is \(\chi^2_2\); its upper-tail probability at 4 is \(e^{-4/2}\approx0.1353\). The individual Wald statistics are \(0.4^2/0.04=4\) and \(0.3^2/0.09=1\). At the 5% level, the first individual test rejects, but the joint test does not. The joint test addresses the two restrictions together and accounts for the positive covariance between the estimates; it is not obtained by adding the two individual statistics.
Worked Example: Testing Two General Linear Restrictions
Let \(\beta=(\beta_1,\beta_2,\beta_3)^\top\), with estimates \((0.2,0.5,0.1)^\top\) and covariance estimate
Test the two restrictions \(\beta_1+\beta_2=1\) and \(\beta_2-\beta_3=0\). They correspond to
The estimated restriction residual is
Transforming the covariance gives
Its determinant is \(0.13(0.25)-0.09^2=0.0244\), and its inverse is
Therefore,
With two restrictions, the asymptotic reference distribution is \(\chi^2_2\). The upper-tail probability is \(e^{-2.660/2}\approx0.264\), so this test does not reject at the 5% level. The nonzero off-diagonal entry \(0.09\) in the transformed covariance arises because the two restrictions both involve \(\beta_2\).
Worked Example: Strong Correlation Changes the Joint Test
Suppose \(\hat\beta=(0.5,0.5)^\top\), and test \(H_0:\beta_1=\beta_2=0\) using
The covariance between the estimates is large and positive. The sum of the estimates is \(1\), and its estimated variance is \(0.04+0.04+2(0.036)=0.152\). The residual vector \((0.5,0.5)^\top\) points in the sum direction, so its covariance-scaled squared distance is
For two degrees of freedom, the upper-tail probability is \(e^{-6.579/2}\approx0.0373\), giving rejection at the 5% level. If the covariance were incorrectly discarded, the calculation would be \(0.5^2/0.04+0.5^2/0.04=12.5\), which is not the Wald statistic for the stated covariance matrix. Correlation matters because uncertainty in a sum or difference depends on the covariance between its component estimates.
Equivalent Ways to Write the Same Restrictions
A change of coordinates among the restrictions does not change the Wald statistic, provided it is invertible. This is useful when the same hypothesis is written using different but equivalent linear combinations.
Proof. Write \(r=A\hat\beta-c\) and \(M=A\widehat V A^\top\). Under the transformed restrictions, the residual is \(Cr\) and the covariance estimate is \(CMC^\top\). Since \(C\) and \(M\) are invertible, \((CMC^\top)^{-1}=C^{-\top}M^{-1}C^{-1}\). Hence the transformed statistic is
which is the original statistic. \(\square\)
Interpretation and Common Pitfalls
The degrees of freedom are the number of independent restrictions, \(q\), not the total number of coefficients in the fitted model. A test of two selected coefficients in a model with many other coefficients therefore uses a two-degree-of-freedom reference distribution. The covariance calculation still uses the estimates’ covariance under the fitted model, transformed to the restrictions by \(A\widehat V A^\top\).
A common mistake is to test each coefficient separately and treat the results as a joint test—for example, to add individual Wald statistics or to conclude that a joint null is false whenever one individual test rejects. That reasoning does not evaluate the specified joint restriction with its covariance. The correction is to form the full residual vector \(A\hat\beta-c\), transform the full covariance matrix, and calculate the quadratic form. Individual tests can help describe which estimates are notable, but they answer different hypotheses.
Another frequent error is to set the off-diagonal covariances to zero simply because the hypotheses concern different coefficients. Different coefficients can have correlated estimates, and a linear combination can be more or less precisely estimated as a result. Report the restrictions, the Wald statistic, its degrees of freedom, and the asymptotic p-value together. The test evaluates the joint departure from the null; by itself it does not identify which restriction is responsible for that departure.
Check Your Understanding
Use the definitions and calculations above to answer the following questions.
- For \(p\) coefficients and \(q\) independent linear restrictions, what matrix determines the Wald test's degrees of freedom?
- Why does the Wald statistic use \(A\widehat V A^\top\) rather than only the estimated variances of the coefficients?
- A test concerns three independent restrictions. What is its asymptotic reference distribution under the null?
- Explain why adding two individual Wald statistics does not generally produce the Wald statistic for the corresponding joint null.
- If an equivalent set of restrictions is obtained by multiplying both sides by an invertible matrix, what happens to the Wald statistic?