How to use this calculator
Test a vector of population means jointly while accounting for correlations between the measured variables.
- Enter Observation rows, Null mean vector. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
One sample multivariate mean Hotelling T squared explained
Hotelling’s one-sample statistic tests a vector mean jointly while accounting for covariance among the measured variables.
How the calculation works
T²=n(x̄−μ0)ᵀS⁻¹(x̄−μ0); F=(n−p)T²/[p(n−1)]∼F(p,n−p) under the normal null.
The length of the null mean vector defines the number of variables. Build the sample covariance with denominator n−1, solve against the vector mean difference, and transform T squared to an F statistic with explicitly reported degrees of freedom.
Set up the calculation
x— Observation rows- Complete observations flattened row by row. For repeated measures each row is one subject; otherwise each row is one independent multivariate observation. Use comma-separated values in the stated order.
mu— Null mean vector- Null mean vector, one component per measured variable in matching column order. Its length determines matrix width. Use comma-separated values in the stated order.
Limits of this model
2–6 variables, more complete rows than variables, positive-definite covariance, and independent multivariate-normal observations for the exact F reference. It is not a collection of independent one-sample t tests.
Check this example
Observation rows = 2,3,3,2,4,5,5,3,6,6,7,4; Null mean vector = 3,3.
- One-sample Hotelling T²: 4
- F transformed statistic: 1.6
- F-reference p-value: 0.30864198
- Numerator degrees of freedom: 2
- Denominator degrees of freedom: 4
Six two-variable rows are compared with mean vector (3,3). Their covariance rotates and scales the joint mean discrepancy before forming T squared.
Reading the outputs
T squared is nonnegative and dimensionless. The p-value addresses the entire vector null; it does not identify which component differs.
Frequently asked questions
Can variables use different units?
Yes. Covariance scaling accounts for their units, provided numerical conditioning is adequate.
Why not test each mean separately?
The joint test incorporates covariance and targets a vector hypothesis; separate tests need their own multiplicity plan.
What if two variables are redundant?
The covariance may be singular and the calculator rejects the joint test.
How do I use the One sample multivariate mean Hotelling T squared calculator?
Enter Observation rows, Null mean vector. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of One sample multivariate mean Hotelling T squared?
Observation rows = 2,3,3,2,4,5,5,3,6,6,7,4; Null mean vector = 3,3. One-sample Hotelling T²: 4 F transformed statistic: 1.6 F-reference p-value: 0.30864198 Numerator degrees of freedom: 2 Denominator degrees of freedom: 4 Six two-variable rows are compared with mean vector (3,3). Their covariance rotates and scales the joint mean discrepancy before forming T squared.
Method reference: Statsmodels multivariate test definitions.
Read our calculation methodology.