Hotelling's \( T^2 \)
The multivariate generalization of the Student's \( t \)-test: how to test hypotheses about mean vectors when you have correlated variables.
Why Go Multivariate?
In many real-world problems we measure several variables simultaneously on each subject: blood pressure and heart rate, test scores across subjects, chemical concentrations in a sample. Running separate univariate \( t \)-tests for each variable inflates the Type I error rate and ignores the correlation structure among variables.
From \( t \) to \( T^2 \)
The Key Ingredients
The \( T^2 \) Statistic
Geometric Intuition
\( T^2 \) measures the squared Mahalanobis distance from the sample mean \( \bar{\mathbf{x}} \) to the hypothesized mean \( \boldsymbol{\mu}_0 \). The ellipse represents a contour of constant \( T^2 \): if \( \bar{\mathbf{x}} \) falls outside the critical ellipse, we reject \( H_0 \).
The \( F \)-Transformation
Under \( H_0 \), \( T^2 \) does not follow a standard distribution directly. We transform it into an \( F \)-statistic for critical value lookup:
Required Assumptions
\( T^2 \) vs. Multiple \( t \)-tests
| Hotelling's \( T^2 \) | Separate \( t \)-tests | |
|---|---|---|
| Variables tested | All \( p \) simultaneously | One at a time |
| Correlation | Fully accounted for | Ignored |
| Type I error | Controlled at \( \alpha \) | Inflated: \( 1 - (1-\alpha)^p \) |
| Power | Higher when variables correlated | May miss multivariate signal |
| Output | Single \( F \)-statistic | \( p \) separate \( p \)-values |
Step-by-Step Procedure
Example 1: \( p = 2 \) Variables
A sample of \( n = 20 \) patients has mean blood pressure and cholesterol: \( \bar{\mathbf{x}} = \begin{pmatrix} 130 \\ 210 \end{pmatrix} \). Test against the healthy standard \( \boldsymbol{\mu}_0 = \begin{pmatrix} 120 \\ 200 \end{pmatrix} \) with:
Example 1: Decision
We compare to \( F_{0.05,\;2,\;18} = 3.55 \).
Example 2: Two-Sample \( T^2 \)
Hotelling's \( T^2 \) extends to two independent samples. Given groups with sizes \( n_1, n_2 \) and means \( \bar{\mathbf{x}}_1, \bar{\mathbf{x}}_2 \), and a pooled covariance \( \mathbf{S}_p \):
Example 3: Paired \( T^2 \)
For paired multivariate data (e.g., before/after treatment on \( p \) variables), compute the difference vectors \( \mathbf{d}_i = \mathbf{x}_{i,\text{after}} - \mathbf{x}_{i,\text{before}} \), then apply the one-sample \( T^2 \) to the differences:
Common Mistakes
Summary: Three Variants
| One-Sample | Two-Sample | Paired | |
|---|---|---|---|
| Hypothesis | \( \boldsymbol{\mu} = \boldsymbol{\mu}_0 \) | \( \boldsymbol{\mu}_1 = \boldsymbol{\mu}_2 \) | \( \boldsymbol{\mu}_d = \mathbf{0} \) |
| Data input | \( \bar{\mathbf{x}},\;\mathbf{S} \) | \( \bar{\mathbf{x}}_1, \bar{\mathbf{x}}_2,\;\mathbf{S}_p \) | \( \bar{\mathbf{d}},\;\mathbf{S}_d \) |
| \( F \) df | \( p,\;n-p \) | \( p,\;n_1\!+\!n_2\!-\!p\!-\!1 \) | \( p,\;n-p \) |
| Assumes | MVN, \( \mathbf{S} \) invertible | MVN, equal \( \boldsymbol{\Sigma} \) | MVN of differences |
Question 1 of 5
When \( p = 1 \), Hotelling's \( T^2 \) reduces to which of the following?
Question 2 of 5
What role does \( \mathbf{S}^{-1} \) play in the \( T^2 \) statistic?
Question 3 of 5
You have \( p = 4 \) variables and \( n = 25 \) observations. After computing \( T^2 = 18.5 \), what is the corresponding \( F \)-statistic?
Question 4 of 5
Why is it problematic to run separate univariate \( t \)-tests instead of Hotelling's \( T^2 \)?
Question 5 of 5
For the two-sample Hotelling's \( T^2 \) test, which additional assumption is required beyond those of the one-sample test?