Tutorials › Statistical Theory I - Probability and Distribution Theory › Craig’s Criterion for Independent Quadratic Forms

Gaussian Quadratic Forms · Tutorial 758 of 994

Craig's Criterion for Independent Quadratic Forms

Learn to state and prove Craig’s independence criterion and apply its support-adjusted form when the Gaussian covariance is singular.

Advanced 10 min read

What You'll Learn

  • State Craig’s criterion for two quadratic forms of a centered Gaussian vector.
  • Convert the forms to standard-normal coordinates using the covariance matrix.
  • Prove that independence is equivalent to a zero matrix product.
  • Apply the criterion when the covariance matrix is singular.
  • Distinguish the effective matrix condition from the stronger raw matrix condition.

Why a Matrix Condition Can Decide Independence

A quadratic form in a Gaussian vector can combine many coordinates, so independence is not always visible by inspection. Craig’s criterion gives an exact test: for a centered Gaussian vector with nonsingular covariance, two symmetric quadratic forms are independent precisely when a particular matrix product is zero. The criterion is stronger than a check of covariance alone; it captures the way the forms share Gaussian directions.

When the covariance is singular, some directions never vary. The criterion must then be applied to the parts of the matrices that act on the Gaussian vector’s support. This distinction matters: a raw matrix product can be nonzero even when the forms, as random variables, are independent.

Setup and Statement of the Criterion

Definition: Let \(X\) be a \(p\)-dimensional Gaussian vector with mean zero and covariance matrix \(\Sigma\), where \(\Sigma\) is symmetric and nonnegative definite. Let \(A\) and \(B\) be symmetric \(p\times p\) matrices. The associated quadratic forms are \(Q_A=X'AX\) and \(Q_B=X'BX\).

A symmetric nonnegative definite matrix has a symmetric nonnegative definite square root \(\Sigma^{1/2}\). We can represent \(X\) in distribution as \(X=\Sigma^{1/2}Z\), where \(Z\sim N_p(0,I_p)\). This representation also applies when \(\Sigma\) is singular. Define the effective matrices

$$ C=\Sigma^{1/2}A\Sigma^{1/2}, \qquad D=\Sigma^{1/2}B\Sigma^{1/2}. $$

Then \(Q_A=Z'CZ\) and \(Q_B=Z'DZ\). Thus the forms depend on \(A\) and \(B\) only through their action on the varying Gaussian directions.

Theorem (Craig’s criterion): If \(X\sim N_p(0,\Sigma)\), with \(\Sigma\) symmetric and nonnegative definite, and \(A,B\) are symmetric, then \(X'AX\) and \(X'BX\) are independent if and only if
$$ CD=0, \qquad\text{where }C=\Sigma^{1/2}A\Sigma^{1/2},\quad D=\Sigma^{1/2}B\Sigma^{1/2}. $$
If \(\Sigma\) is positive definite, this is equivalent to \(A\Sigma B=0\). In particular, for \(X\sim N_p(0,I_p)\), the condition is \(AB=0\).

For positive definite \(\Sigma\), the equivalence follows because \(\Sigma^{1/2}\) is invertible: \(CD=\Sigma^{1/2}A\Sigma B\Sigma^{1/2}\), so \(CD=0\) exactly when \(A\Sigma B=0\). For singular \(\Sigma\), the criterion is the support-adjusted condition \(CD=0\), not necessarily the raw condition \(A\Sigma B=0\).

Proof of Craig’s Criterion

We first obtain the joint moment-generating function near the origin. For a symmetric matrix \(H\) and standard normal \(Z\), diagonalizing \(H\) by an orthogonal matrix reduces \(Z'HZ\) to a weighted sum of independent squared standard normal variables. The one-dimensional Gaussian integral gives \(E[\exp(t\lambda Z_1^2)]=(1-2t\lambda)^{-1/2}\) when \(1-2t\lambda>0\). Therefore, for \(s,t\) sufficiently close to zero,

$$ E[\exp(sQ_A+tQ_B)] = \det(I_p-2sC-2tD)^{-1/2}. $$

The neighborhood can be chosen so that \(I_p-2sC-2tD\) is positive definite; the integral and determinant formula are then finite and the square root is unambiguous.

If \(Q_A\) and \(Q_B\) are independent, their joint moment-generating function factors into the product of their marginal moment-generating functions. The displayed formula consequently implies, for \(s,t\) near zero,

$$ \det(I_p-2sC-2tD) = \det(I_p-2sC)\det(I_p-2tD). $$

To extract a matrix consequence, use the expansion \(\log\det(I_p-H)=-\sum_{k\geq 1}\operatorname{tr}(H^k)/k\), valid when the eigenvalues of \(H\) have absolute value less than one. Taking logarithms of the determinant identity shows that the coefficient involving \(s^2t^2\) in \(\operatorname{tr}((2sC+2tD)^4)\) must be zero: the separate terms on the right have no mixed powers. Expanding the fourth power and using invariance of trace under cyclic rearrangement, that coefficient, apart from the nonzero common factor \(2^4\), is

$$ 4\operatorname{tr}(C^2D^2)+2\operatorname{tr}(CDCD)=0. $$

Set \(a=\operatorname{tr}(C^2D^2)\) and \(M=CD\). Since \(C\) and \(D\) are symmetric, \(a=\operatorname{tr}(M'M)=\|M\|_F^2\), where \(\|M\|_F^2\) is the sum of the squares of the entries of \(M\). Also, Cauchy–Schwarz for the Frobenius inner product gives \(\lvert\operatorname{tr}(M^2)\rvert=\lvert\operatorname{tr}(M'M')\rvert\leq\|M\|_F^2=a\). Hence

$$ 4a+2\operatorname{tr}(M^2)\geq 4a-2a=2a. $$

The left side is zero, so \(a=0\), which forces every entry of \(M\) to be zero. Thus \(CD=0\). This proves necessity.

Conversely, suppose \(CD=0\). Since \(C\) and \(D\) are symmetric, \(DC=(CD)'=0\) as well. The range of \(C\) is therefore orthogonal to the range of \(D\). By the spectral theorem, \(Z'CZ\) depends only on the projection of \(Z\) onto the range of \(C\), and \(Z'DZ\) only on its projection onto the range of \(D\). Orthogonal projections of a standard Gaussian vector onto orthogonal subspaces are independent: in an orthonormal basis adapted to those subspaces, they use disjoint groups of independent standard normal coordinates. Functions of these independent projections are independent, so \(Q_A\) and \(Q_B\) are independent. This proves sufficiency and completes the theorem. \(\square\)

Worked Applications

Worked Example: Independent Forms in Two Gaussian Coordinates

Let \(X\sim N_2(0,\Sigma)\), with \(\Sigma=\begin{pmatrix}4&0\\0&1\end{pmatrix}\). Take \(A=\begin{pmatrix}1&0\\0&0\end{pmatrix}\) and \(B=\begin{pmatrix}0&0\\0&3\end{pmatrix}\). Determine whether \(Q_A=X'AX\) and \(Q_B=X'BX\) are independent.

Here \(\Sigma^{1/2}=\begin{pmatrix}2&0\\0&1\end{pmatrix}\), so \(C=\Sigma^{1/2}A\Sigma^{1/2}=\begin{pmatrix}4&0\\0&0\end{pmatrix}\) and \(D=\Sigma^{1/2}B\Sigma^{1/2}=\begin{pmatrix}0&0\\0&3\end{pmatrix}\). Multiplication gives

$$ CD= \begin{pmatrix}4&0\\0&0\end{pmatrix} \begin{pmatrix}0&0\\0&3\end{pmatrix} = \begin{pmatrix}0&0\\0&0\end{pmatrix}. $$

Craig’s criterion proves independence. Directly, the diagonal covariance makes \(X_1\) and \(X_2\) independent, while \(Q_A=X_1^2\) and \(Q_B=3X_2^2\) are functions of separate coordinates.

Worked Example: Testing a Pair with a Nonzero Matrix Product

Let \(Z\sim N_2(0,I_2)\), \(A=\begin{pmatrix}1&0\\0&0\end{pmatrix}\), and \(B=\begin{pmatrix}1&1\\1&1\end{pmatrix}\). Apply the criterion to \(Q_A=Z'AZ\) and \(Q_B=Z'BZ\).

The covariance is \(I_2\), so \(C=A\) and \(D=B\). Their product is

$$ CD= \begin{pmatrix}1&0\\0&0\end{pmatrix} \begin{pmatrix}1&1\\1&1\end{pmatrix} = \begin{pmatrix}1&1\\0&0\end{pmatrix}\ne 0. $$

The forms are not independent, by the necessity direction of Craig’s criterion. In fact, \(Q_A=Z_1^2\) and \(Q_B=(Z_1+Z_2)^2\); both involve \(Z_1\). The product test is decisive even though each form has a simple expression.

Worked Example: A Singular Covariance and an Ineffective Raw Product

Let \(X=(Z,0)'\), where \(Z\sim N(0,1)\). Thus \(\Sigma=\begin{pmatrix}1&0\\0&0\end{pmatrix}\). Set \(A=\begin{pmatrix}1&0\\0&0\end{pmatrix}\) and \(B=\begin{pmatrix}0&1\\1&0\end{pmatrix}\). Check the support-adjusted criterion and compare it with \(A\Sigma B=0\).

Since \(\Sigma^{1/2}=\Sigma\), direct multiplication gives \(C=\Sigma^{1/2}A\Sigma^{1/2}=\begin{pmatrix}1&0\\0&0\end{pmatrix}\) and \(D=\Sigma^{1/2}B\Sigma^{1/2}=\begin{pmatrix}0&0\\0&0\end{pmatrix}\). Therefore \(CD=0\), and the forms are independent. Indeed, \(Q_A=Z^2\), whereas \(Q_B=X'BX=0\) with probability one; a constant random variable is independent of every random variable.

But the uncompressed product is \(A\Sigma B=\begin{pmatrix}0&1\\0&0\end{pmatrix}\ne0\). This does not contradict Craig’s criterion: the covariance is singular, and the second coordinate of \(X\) never varies. The effective matrices discard directions that cannot affect the random forms.

Nonzero Means and the Scope of the Test

The theorem above is stated for a centered Gaussian vector. A useful sufficient condition also covers a nonzero mean when \(\Sigma\) is positive definite. Write \(X=\mu+\Sigma^{1/2}Z\), with \(Z\sim N_p(0,I_p)\), and use the effective matrices \(C=\Sigma^{1/2}A\Sigma^{1/2}\) and \(D=\Sigma^{1/2}B\Sigma^{1/2}\). Then

$$ X'AX=\mu'A\mu+Z'CZ+2(\Sigma^{1/2}A\mu)'Z, \qquad X'BX=\mu'B\mu+Z'DZ+2(\Sigma^{1/2}B\mu)'Z. $$

If \(CD=0\), the ranges of \(C\) and \(D\) are orthogonal. Because \(\Sigma\) is invertible, \(\Sigma^{1/2}A\mu=C\Sigma^{-1/2}\mu\) lies in the range of \(C\), and \(\Sigma^{1/2}B\mu=D\Sigma^{-1/2}\mu\) lies in the range of \(D\). Thus the first form depends, apart from a constant, only on the standard normal projection onto the range of \(C\), and the second only on the projection onto the orthogonal range of \(D\). They are independent. This establishes sufficiency for arbitrary \(\mu\); the centered theorem’s full equivalence is the claim proved above.

Common Pitfall and Why the Criterion Matters

A common error is to treat \(A\Sigma B=0\) as the criterion regardless of the covariance. For positive definite \(\Sigma\), this is equivalent to \(CD=0\). For singular \(\Sigma\), however, the random vector explores only its covariance support, and the correct test is \(CD=0\). Example 3 shows why imposing the raw product can reject independent forms.

Another error is to infer independence from a single scalar calculation such as zero covariance. Craig’s criterion is a matrix condition, and its proof uses the full joint Gaussian transform. A scalar summary does not generally encode whether the forms use overlapping Gaussian directions. The criterion is especially useful for checking proposed decompositions of Gaussian sums of squares: it provides a precise independence test before any distributional labels are assigned.

Key takeaway: For centered \(X\sim N_p(0,\Sigma)\), form \(C=\Sigma^{1/2}A\Sigma^{1/2}\) and \(D=\Sigma^{1/2}B\Sigma^{1/2}\). The quadratic forms are independent exactly when \(CD=0\). When \(\Sigma\) is nonsingular, this is equivalent to \(A\Sigma B=0\); when it is singular, use the effective matrices.

Check Your Understanding

Use the support-adjusted matrix condition when the covariance may be singular.

  1. For \(X\sim N_p(0,I_p)\), what matrix condition characterizes independence of \(X'AX\) and \(X'BX\)?
  2. Why does \(CD=0\), for symmetric \(C\) and \(D\), imply that their ranges are orthogonal?
  3. If \(\Sigma\) is singular, why might \(A\Sigma B\ne0\) fail to rule out independence?
  4. In the fourth-power argument for necessity, why does \(4\operatorname{tr}(C^2D^2)+2\operatorname{tr}(CDCD)=0\) force \(CD=0\)?
  5. For a nonzero mean and positive definite covariance, explain why the linear term in \(X'AX\), after standardization, lies in the range of \(C\).