Tutorials › Multivariate Statistics (Graduate) › Deriving Hotelling’s F Calibration

Inference on Mean Vectors · Tutorial 195 of 975

Deriving Hotelling's F Calibration

See why Hotelling's \(T^2\), under the Gaussian null hypothesis, rescales to an \(F\) statistic with degrees of freedom determined by the sample size and dimension.

Intermediate 11 min read

What You'll Learn

  • State the Gaussian and sample-size conditions for exact Hotelling \(F\) calibration.
  • Express Hotelling's statistic using a standard Gaussian vector and a Wishart matrix.
  • Derive the inverse-Wishart quadratic-form distribution using a Schur complement.
  • Obtain the exact scaling factor and numerator and denominator degrees of freedom.
  • Check the calibration in a computed example and in the univariate special case.
  • Identify why replacing the sample-size factor or degrees of freedom gives an incorrect result.

Why the Calibration Is Not a Chi-Square Approximation

When the covariance matrix is known, a Gaussian sample mean can be standardized using that fixed matrix. With an unknown covariance matrix, Hotelling's statistic instead uses the sample covariance, which is random. The exact null calibration must therefore account for the variability introduced by estimating covariance. Under multivariate normal sampling, the sample mean and sample covariance are independent, and the covariance estimate has a Wishart distribution. These facts lead to an exact finite-sample \(F\) distribution, not merely a large-sample approximation.

We derive that result for testing a specified mean vector. The essential step is to find the distribution of a quadratic form involving the inverse of a Wishart matrix. Its denominator degrees of freedom depend on both the Wishart degrees of freedom and the dimension of the vector.

Setup and Exact Calibration

Definition: Let \(X_1,\ldots,X_n\) be independent random vectors with distribution \(N_p(\mu,\Sigma)\), where \(\Sigma\) is positive definite. Define \( \bar X=n^{-1}\sum_{i=1}^n X_i \) and \( S=(n-1)^{-1}\sum_{i=1}^n(X_i-\bar X)(X_i-\bar X)' \). For testing \(H_0:\mu=\mu_0\), Hotelling's statistic is \( T^2=n(\bar X-\mu_0)'S^{-1}(\bar X-\mu_0) \). If \(n>p\), then \(S\) is nonsingular with probability one under this model.

The exact result below concerns the distribution under \(H_0\), so throughout the derivation we take \(\mu=\mu_0\). The formula uses the convention that \(F_{r,s}\) is the distribution of \((U/r)/(V/s)\), where \(U\) and \(V\) are independent chi-square random variables with \(r\) and \(s\) degrees of freedom.

Theorem: If \(X_1,\ldots,X_n\) are independent \(N_p(\mu_0,\Sigma)\) vectors, \(\Sigma\) is positive definite, and \(n>p\), then \( \frac{n-p}{p(n-1)}T^2\sim F_{p,n-p} \). Equivalently, \( T^2\sim \frac{p(n-1)}{n-p}F_{p,n-p} \).

The scaling constant and both degrees of freedom matter. We now derive them from the Gaussian and Wishart sampling laws rather than treating the transformation as a formula to memorize.

The Wishart Quadratic-Form Argument

Under the null, let \(A=\sum_{i=1}^n(X_i-\bar X)(X_i-\bar X)'=(n-1)S\). The Gaussian sampling laws give \(\bar X\sim N_p(\mu_0,\Sigma/n)\), \(A\sim\operatorname{Wishart}_p(\Sigma,n-1)\), and independence of \(\bar X\) and \(A\). These are the mean and covariance sampling laws used in the earlier material on sampling laws of the sample mean and covariance.

Whiten both random quantities by the symmetric positive definite matrix \(\Sigma^{-1/2}\), and put \( Z=\sqrt n\,\Sigma^{-1/2}(\bar X-\mu_0) \) and \( W=\Sigma^{-1/2}A\Sigma^{-1/2} \). Then \(Z\sim N_p(0,I_p)\), \(W\sim\operatorname{Wishart}_p(I_p,\nu)\) for \(\nu=n-1\), and \(Z\) and \(W\) are independent. Substitution into \(T^2\) gives \( T^2=(n-1)Z'W^{-1}Z \). It remains to derive the law of \(Z'W^{-1}Z\).

Lemma: Suppose \(Z\sim N_p(0,I_p)\), \(W\sim\operatorname{Wishart}_p(I_p,\nu)\), and \(Z\) and \(W\) are independent, with integer \(\nu\ge p\). Then \( Z'W^{-1}Z\sim \frac{p}{\nu-p+1}F_{p,\nu-p+1} \).

Proof. A Wishart matrix with identity scale and \(\nu\) degrees of freedom can be represented as \(W=G'G\), where \(G\) is a \(\nu\) by \(p\) matrix of independent standard normal entries. Write \(G=[g_1,G_2]\), separating its first column, and partition \(W\) conformably. The Schur complement of the \(G_2'G_2\) block is \( Q=g_1'(I-P_{G_2})g_1 \), where \(P_{G_2}=G_2(G_2'G_2)^{-1}G_2'\) is the orthogonal projection onto the columns of \(G_2\). When \(p=1\), take \(P_{G_2}=0\).

The columns of \(G_2\) have full rank with probability one. Conditional on \(G_2\), \(I-P_{G_2}\) is a projection of rank \(\nu-(p-1)=\nu-p+1\), and \(g_1\) is an independent standard Gaussian vector. In an orthonormal basis for this projection, \(Q\) is the sum of squares of \(\nu-p+1\) independent standard normal variables. Thus \(Q\sim\chi^2_{\nu-p+1}\). The block inverse formula gives \((W^{-1})_{11}=Q^{-1}\).

For any fixed unit vector \(u\), orthogonal invariance of \(W\) implies that \(u'W^{-1}u\) has the same distribution as \((W^{-1})_{11}\). Write \(Z=Ru\), where \(R^2=Z'Z\). Then \(R^2\sim\chi^2_p\). Conditional on any nonzero value of \(Z\), the distribution of \(u'W^{-1}u\) is the same, namely that of \(1/V\) for \(V\sim\chi^2_{\nu-p+1}\). This conditional distribution does not depend on \(Z\); consequently \(R^2\) and \(u'W^{-1}u\) are independent. Therefore \( Z'W^{-1}Z=R^2u'W^{-1}u \) has the distribution of \(U/V\), with independent \(U\sim\chi^2_p\) and \(V\sim\chi^2_{\nu-p+1}\). By the definition of the \(F\) distribution, \( U/V=\frac{p}{\nu-p+1}\frac{U/p}{V/(\nu-p+1)} \), which proves the lemma. \(\square\)

Deriving Hotelling's \(F\) Transformation

Apply the lemma with \(\nu=n-1\). The denominator degrees of freedom in the lemma become \(\nu-p+1=(n-1)-p+1=n-p\). Hence \( Z'W^{-1}Z\sim\frac{p}{n-p}F_{p,n-p} \). Because \(T^2=(n-1)Z'W^{-1}Z\), multiplying by \(n-p\) and dividing by \(p(n-1)\) yields the theorem's stated calibration.

This derivation also explains the degrees of freedom. The numerator \(p\) comes from the squared length of a \(p\)-dimensional standard Gaussian vector. The denominator \(n-p\) comes from the residual projection after accounting for the other \(p-1\) columns in the Wishart representation. Estimating covariance therefore changes the reference distribution from the known-covariance chi-square calibration.

Worked Example: Applying the Calibration in Two Dimensions

Suppose \(n=8\), \(p=2\), and a Gaussian sample gives \(\bar X-\mu_0=(1,2)'\) and \( S=\begin{pmatrix}4&1\\1&2\end{pmatrix} \). Find \(T^2\) and its exact null-reference transformation.

The determinant of \(S\) is \(4(2)-1(1)=7\), so \( S^{-1}=\frac17\begin{pmatrix}2&-1\\-1&4\end{pmatrix} \). Applying this inverse to the difference gives \( S^{-1}(1,2)'=\frac17(0,7)'=(0,1)' \), and thus \( (\bar X-\mu_0)'S^{-1}(\bar X-\mu_0)=(1,2)(0,1)'=2 \). Therefore \(T^2=8(2)=16\).

The transformed statistic is \( \frac{n-p}{p(n-1)}T^2=\frac{8-2}{2(7)}(16)=\frac{3}{7}(16)=\frac{48}{7} \). Under \(H_0\), this transformed statistic has an \(F_{2,6}\) distribution. The example computes the statistic and identifies its reference distribution; converting it to a tail probability is a separate calculation.

Worked Example: Checking the Degrees of Freedom at a Larger Dimension

For a one-sample test with \(p=3\) variables and \(n=12\) observations, determine the exact null transformation. Here \(\nu=n-1=11\) Wishart degrees of freedom. The inverse-Wishart quadratic-form lemma gives denominator degrees of freedom \( \nu-p+1=11-3+1=9 \), while the numerator degrees of freedom are \(p=3\).

The multiplier on \(T^2\) is \( \frac{n-p}{p(n-1)}=\frac{12-3}{3(11)}=\frac{9}{33}=\frac{3}{11} \). Thus \( (3/11)T^2\sim F_{3,9} \) under the null. Equivalently, \(T^2\) has the distribution of \((11/3)F_{3,9}\). The two expressions agree because \(3/11\) is the reciprocal of \(11/3\).

Worked Example: Recovering the Univariate \(t\) Result

Set \(p=1\). The Hotelling statistic becomes \(T^2=n(\bar X-\mu_0)^2/s^2\), where \(s^2\) is the usual sample variance. For \(n=7\), suppose \(\bar X-\mu_0=2\) and \(s^2=4\). Direct calculation gives \( T^2=7(2^2)/4=7 \).

The calibration factor is \( \frac{n-p}{p(n-1)}=\frac{7-1}{1(7-1)}=1 \), and the degrees of freedom are \(1\) and \(6\). Thus \(T^2\) itself has the \(F_{1,6}\) null distribution. This matches the univariate identity \(t_6^2\sim F_{1,6}\): the corresponding squared \(t\) statistic is \(7\), exactly the calculated \(T^2\).

Common Mistakes and Why the Result Matters

A frequent error is to use \((n-1)/n\) as the calibration multiplier, or to assign \(n-1\) denominator degrees of freedom. The sample covariance is defined with divisor \(n-1\), but the denominator degrees of freedom for the \(F\) law are \(n-p\), not \(n-1\). The distinction comes from the dimension-dependent Wishart inverse calculation; it is not a discretionary correction.

Another mistake is to treat the known-covariance chi-square result as exact when the covariance is estimated. Under the Gaussian null, the mean and covariance are independent, but independence alone does not make the covariance fixed. Its Wishart variation produces the denominator chi-square component, and therefore the finite-sample \(F\) law. The exact calibration requires all the stated conditions: independent multivariate normal observations, positive definite \(\Sigma\), the null mean, and \(n>p\). Without these conditions, this derivation does not establish the same finite-sample reference distribution.

Key takeaway: Under the one-sample Gaussian null with \(n>p\), standardization yields an independent standard Gaussian vector and identity-scale Wishart matrix. Their quadratic form gives \( \frac{n-p}{p(n-1)}T^2\sim F_{p,n-p} \).

Check Your Understanding

Work through these questions by tracing the scaling and degrees of freedom in the derivation.

  1. For \(p=4\) and \(n=15\), what are the multiplier on \(T^2\) and the two degrees of freedom of its \(F\) reference distribution?
  2. In the Wishart quadratic-form lemma, why does the Schur complement have \(\nu-p+1\), rather than \(\nu\), degrees of freedom?
  3. For which values of \(n\) and \(p\) does the theorem ensure that the sample covariance is nonsingular and the stated \(F\) transformation applies?
  4. Explain why \(Z'W^{-1}Z\) is a ratio of independent chi-square variables after the radial and directional decomposition of \(Z\).
  5. When \(p=1\), what familiar relationship between the squared \(t\) statistic and an \(F\) statistic does the calibration recover?
Clinical Biostats