Why the Direction Matters
A Wishart matrix summarizes variation across several coordinates. One way to inspect that variation is to choose a direction \(a\) and evaluate \(a'Wa\). If \(a\) is fixed in advance, this quantity has a simple distribution: after dividing by its scale, it is chi-square. But the conclusion relies on the direction being fixed independently of the observed matrix. Choosing a direction after seeing \(W\), for example to maximize \(a'Wa\), can change the distribution substantially.
The same distinction appears for scalar summaries that involve several directions at once. A general linear projection of the entries of a Wishart matrix is usually a weighted sum of chi-square variables, not necessarily one chi-square variable. The weights determine whether the sum simplifies.
A Fixed Direction Gives a Chi-Square Law
The key is to examine the Gaussian observations one at a time. Each \(a'Z_i\) is a scalar normal variable with mean zero and variance \(a'\Sigma a\). Since the \(Z_i\) are independent, these scalar projections are independent as well. The Wishart quadratic form is their sum of squares.
Proof. By the Wishart construction,
For each \(i\), a linear projection of a multivariate normal vector is normal, so \(a'Z_i\sim N(0,a'\Sigma a)\). Thus \(U_i=(a'Z_i)/\sqrt{a'\Sigma a}\sim N(0,1)\). Independence of the \(Z_i\)'s implies independence of the \(U_i\)'s. Therefore
by the definition of the chi-square distribution as a sum of squares of \(\nu\) independent standard normal variables. \(\square\)
Worked Example: A Fixed Linear Combination of Coordinates
Suppose \(W\sim W_3(6,\Sigma)\), where \(\Sigma=\operatorname{diag}(1,2,3)\), and take the fixed direction \(a=(1,1,0)'\). Find the distribution of \(a'Wa\).
First calculate its scale:
The fixed-direction theorem now gives
For a check, \(E[a'Wa]=3\cdot 6=18\), which also agrees with \(E[W]=6\Sigma\) and \(a'E[W]a=6(a'\Sigma a)=18\).
General Scalar Projections of a Wishart Matrix
The expression \(a'Wa\) is one particular scalar summary of a matrix. Any symmetric matrix \(C\) defines another scalar summary, \(\operatorname{tr}(CW)\), which is a linear combination of the entries of \(W\). A rank-one choice \(C=aa'\) recovers the directional form, since \(\operatorname{tr}(aa'W)=a'Wa\). The distribution for general \(C\) can be read from the eigenvalues of a transformed version of \(C\).
Derivation. Write \(Z_i=\Sigma^{1/2}G_i\), where the vectors \(G_i\) are independent \(N_p(0,I_p)\). Collect the \(G_i\)'s as columns of a \(p\times\nu\) matrix \(G\). Then \(W=\Sigma^{1/2}GG'\Sigma^{1/2}\), and the cyclic property of trace gives
Because \(M\) is symmetric, the spectral theorem gives an orthogonal matrix \(U\) such that \(U'MU=\operatorname{diag}(\lambda_1,\ldots,\lambda_p)\). The matrix \(U'G\) has independent standard normal entries: each column is a standard multivariate normal vector after an orthogonal transformation, and the columns remain independent. Denote its entries by \(H_{ji}\). It follows that
For each \(j\), the inner sum is \(\chi^2_\nu\). Different inner sums use different rows of \(U'G\), so they are independent. This proves the weighted-sum representation. If exactly \(r\) eigenvalues equal \(\lambda>0\) and the rest are zero, the sum is \(\lambda\) times the sum of \(r\) independent \(\chi^2_\nu\) variables, which is \(\lambda\chi^2_{r\nu}\). \(\square\)
Worked Example: A Projection That Is a Scaled Chi-Square
Let \(W\sim W_2(3,\Sigma)\), with \(\Sigma=\operatorname{diag}(1,4)\), and set \(C=\operatorname{diag}(1,1/4)\). Determine the distribution of \(\operatorname{tr}(CW)\).
Here \(\Sigma^{1/2}=\operatorname{diag}(1,2)\). Thus
Both eigenvalues are \(1\), so the theorem gives
The degrees of freedom are \(6\), not \(3\), because this projection combines two independent coordinate contributions, each with three degrees of freedom.
Worked Example: An Ordinary Trace Need Not Be Chi-Square
Let \(W\sim W_2(4,\operatorname{diag}(1,4))\). Find a distributional representation for \(\operatorname{tr}(W)\).
Take \(C=I_2\), so \(M=\Sigma=\operatorname{diag}(1,4)\), with eigenvalues \(1\) and \(4\). The projection theorem yields
This is a weighted sum, not the unweighted sum that would give a chi-square variable with eight degrees of freedom. Its mean is \(4+4(4)=20\), and its variance is \(2(4)+16\cdot 2(4)=136\). In contrast, a \(\chi^2_8\) variable has mean \(8\) and variance \(16\). The scaling here is determined by \(\Sigma\), and ignoring it would give the wrong law.
Independent Random Directions and Data-Dependent Directions
The fixed-direction result also applies to a random direction chosen independently of \(W\). More precisely, suppose \(A\) is a random nonzero vector independent of \(W\). Conditional on \(A=a\), the vector is fixed, so
This conditional distribution is the same for every nonzero \(a\). Averaging over the distribution of \(A\) therefore leaves the ratio marginally \(\chi^2_\nu\) as well. Independence matters: if \(A\) is computed from \(W\), conditioning on \(A\) does not leave the original fixed-direction argument intact.
Worked Example: Selecting the Leading Eigenvector
Let \(W\sim W_2(3,I_2)\). Choose \(A\) to be a unit eigenvector corresponding to the largest eigenvalue \(\lambda_{\max}(W)\). Show that \(A'WA\) does not have a \(\chi^2_3\) distribution.
Since \(A\) is a unit eigenvector for \(\lambda_{\max}(W)\), its quadratic form is exactly
The matrix \(W\) is positive definite with probability one because it is formed from three independent, nondegenerate Gaussian vectors in dimension two. Its Wishart distribution has a density on the positive-definite matrices. Repeated eigenvalues in dimension two require \((W_{11}-W_{22})^2+4W_{12}^2=0\), a set of Lebesgue measure zero. Therefore its eigenvalues are distinct with probability one.
For any positive-definite \(2\times2\) matrix, the largest eigenvalue satisfies
with strict inequality when the eigenvalues are distinct. In this example, the inequality is strict with probability one. The difference is integrable because \(0\leq\lambda_{\max}(W)\leq\operatorname{tr}(W)\), and \(\operatorname{tr}(W)\) has finite expectation. Also, \(E[\operatorname{tr}(W)]=\operatorname{tr}(3I_2)=6\). Hence
A \(\chi^2_3\) variable has mean \(3\). Thus \(A'WA\) cannot have the fixed-direction \(\chi^2_3\) law. Selecting the direction to maximize the quadratic form has made its value larger, on average, than the corresponding average over two coordinates.
Common Pitfall and Practical Interpretation
Incorrect reasoning: “For every fixed unit vector \(a\), \(a'Wa\) has the same chi-square law, so the result still holds if I choose \(a\) to be the leading eigenvector of \(W\).” The fixed-vector theorem quantifies over vectors specified independently of the observed matrix. It does not assert that the conditional distribution remains the same after selecting a vector using \(W\). The leading-eigenvector example shows the consequence: the selected quadratic form is \(\lambda_{\max}(W)\), whose mean is strictly greater than the mean of the fixed-direction chi-square law in that example.
A second common error is to treat every scalar summary of a Wishart matrix as a single chi-square variable. For \(\operatorname{tr}(CW)\), first calculate the eigenvalues of \(\Sigma^{1/2}C\Sigma^{1/2}\). Equal positive eigenvalues give a scaled chi-square after combining the independent components; unequal eigenvalues generally give a weighted sum instead. A rank-one projection is especially simple because only one eigenvalue is nonzero, which recovers the fixed-direction result.
These distinctions are useful whenever a scalar statistic is extracted from a multivariate scatter matrix. A direction specified by the scientific question has the fixed-direction law, and an independent direction can be handled by conditioning. A direction estimated from the same scatter matrix requires a separate distributional argument; the fixed-direction theorem alone does not justify its law.
Check Your Understanding
Use the definitions and results above to answer these questions.
- If \(W\sim W_p(\nu,\Sigma)\) and \(a\ne0\) is fixed, what is the scale needed to turn \(a'Wa\) into a \(\chi^2_\nu\) variable?
- For a fixed symmetric \(C\), which matrix's eigenvalues determine the distribution of \(\operatorname{tr}(CW)\)?
- Suppose the nonzero eigenvalues of \(\Sigma^{1/2}C\Sigma^{1/2}\) are all equal to \(2\), with exactly three such eigenvalues. What is the resulting distribution of \(\operatorname{tr}(CW)\)?
- Why does the fixed-direction theorem apply to a random direction independent of \(W\), but not automatically to a direction chosen as a leading eigenvector of \(W\)?
- For \(W\sim W_2(3,I_2)\), explain why selecting a unit leading eigenvector gives a quadratic form whose expectation exceeds \(3\).