Hotelling's T² Test

Multivariate extension of the t-test for comparing mean vectors between groups.

Test Overview

What it tests:

Hotelling's T² test is the multivariate extension of the t-test, designed to compare mean vectors of multiple variables simultaneously between groups or against a hypothesized vector. This powerful test accounts for correlations between variables while controlling Type I error rates, making it essential for multivariate hypothesis testing.

Test Variants:

One-Sample T²:

Compare sample mean vector to a known or hypothesized population mean vector

Two-Sample T²:

Compare mean vectors between two independent groups across multiple variables

Paired T²:

Compare paired mean vectors (before/after or matched pairs designs)

Advantages:

Key Requirements:

Statistical Foundation

T² Statistic Formula:

The Hotelling T² statistic measures the multivariate distance between sample mean vectors and hypothesized values, accounting for the covariance structure.

Hotelling T² statistic

= sample size

= sample mean vector

= hypothesized mean vector

= sample covariance matrix

F-transformation:

The T² statistic is transformed to follow an F-distribution for hypothesis testing:

F-transformation of the T² statistic

= number of variables

Follows an F-distribution with p and (n - p) degrees of freedom.

Degrees of Freedom:

• Numerator df: p (number of variables)

• Denominator df: n - p

• Critical region: F > F₍ₐ,ₚ,ₙ₋ₚ₎

Matrix Requirements:

• S must be positive definite

• n > p for matrix inversion

• No perfect multicollinearity

Reading the Hotelling T-squared Confidence Ellipse

Interpretation Guidelines

Decision Framework:

No Difference (p ≥ 0.05):

Significant Difference (p < 0.05):

Sample Size Considerations:

Small (n < 3p)

Inadequate for reliable results - increase sample size or reduce variables

Moderate (n = 3-5p)

Acceptable but interpret cautiously - consider assumption validation

Large (n > 5p)

Optimal performance with reliable statistical properties

Practical Applications:

• Quality Control: Comparing multiple quality characteristics between batches

• Clinical Research: Testing treatment effects on multiple outcome measures

• Psychology: Comparing groups on multiple psychological scales

• Marketing: Analyzing customer segment differences across multiple attributes

Implementation Guide

Assumptions & Limitations

Critical Assumptions:

Multivariate Normality

Variables should follow a multivariate normal distribution - more critical than in univariate tests

Equal Covariance Matrices

Groups must have equal covariance structures (Box's M test can evaluate this)

Independence

Observations must be independent both within and between groups

Robustness & Alternatives:

⚠️ Sensitivity Issues:

✅ Alternative Approaches:

Example Data Layout for Hotelling's T² Test

Multiple continuous variables with group identifiers for multivariate mean comparison. Sample Size Recommendation: Minimum 10-15 observations per group with sample size increasing as number of variables increases - multivariate tests require larger samples for stable covariance matrix estimation.

This is how your spreadsheet or CSV file should be structured before you upload it. Match the column names, keep one row per observation, and leave the analysis to the platform.