In statistics, particularly in hypothesis testing, the Hotelling's T-squared distribution (T2), proposed by Harold Hotelling, is a multivariate probability distribution that is tightly related to the F-distribution and is most notable for arising as the distribution of a set of sample statistics that are natural generalizations of the statistics underlying the Student's t-distribution. The Hotelling's t-squared statistic (t2) is a generalization of Student's t-statistic that is used in multivariate hypothesis testing.
Motivation The distribution arises in multivariate statistics in undertaking tests of the differences between the (multivariate) means of different populations, where tests for univariate problems would make use of a t-test. The distribution is named for Harold Hotelling, who developed it as a generalization of Student's t-distribution.
Definition If the vector d is Gaussian multivariate-distributed with zero mean and unit covariance matrix N(𝟎p,𝐈p,p) and M is a p×p random matrix with a Wishart distribution W(𝐈p,p,m) with unit scale matrix and m degrees of freedom, and d and M are independent of each other, then the quadratic form X has a Hotelling distribution (with parameters p and m): X=mdTM−1d∼T2(p,m). It can be shown that if a random variable X has Hotelling's T-squared distribution, X∼Tp,m2, then: m−p+1pmX∼Fp,m−p+1 where Fp,m−p+1 is the F-distribution with parameters p and m − p + 1.
Hotelling t-squared statistic Let 𝜮̂ be the sample covariance: 𝜮̂=1n−1∑i=1n(𝐱i−𝐱‾)(𝐱i−𝐱‾)′ where we denote transpose by an apostrophe. It can be shown that 𝜮̂ is a positive (semi) definite matrix and (n−1)𝜮̂ follows a p-variate Wishart distribution with n − 1 degrees of freedom. The sample covariance matrix of the mean reads 𝜮̂𝐱‾=𝜮̂/n. The Hotelling's t-squared statistic is then defined as: t2=(𝐱‾−𝝁)′𝜮̂𝐱‾−1(𝐱‾−𝝁)=n(𝐱‾−𝝁)′𝜮̂−1(𝐱‾−𝝁), which is proportional to the Mahalanobis distance between the sample mean and 𝝁. Because of this, one should expect the statistic to assume low values if 𝐱‾≈𝝁, and high values if they are different. From the distribution, t2∼Tp,n−12=p(n−1)n−pFp,n−p, where Fp,n−p is the F-distribution with parameters p and n − p. In order to calculate a p-value (unrelated to p variable here), note that the distribution of t2 equivalently implies that n−pp(n−1)t2∼Fp,n−p. Then, use the quantity on the left hand side to evaluate the p-value corresponding to the sample, which comes from the F-distribution. A confidence region may also be determined using similar logic.
Motivation
Let 𝒩p(𝝁,𝜮) denote a p-variate normal distribution with location 𝝁 and known covariance 𝜮. Let 𝐱1,…,𝐱n∼𝒩p(𝝁,𝜮) be n independent identically distributed (iid) random variables, which may be represented as p×1 column vectors of real numbers. Define 𝐱‾=𝐱1+⋯+𝐱nn to be the sample mean with covariance 𝜮𝐱‾=𝜮/n. It can be shown that (𝐱‾−𝝁)′𝜮𝐱‾−1(𝐱‾−𝝁)∼χp2, where χp2 is the chi-squared distribution with p degrees of freedom.
Alternatively, one can argue using density functions and characteristic functions, as follows.
Two-sample statistic If 𝐱1,…,𝐱nx∼Np(𝝁,𝜮) and 𝐲1,…,𝐲ny∼Np(𝝁,𝜮), with the samples independently drawn from two independent multivariate normal distributions with the same mean and covariance, and we define 𝐱‾=1nx∑i=1nx𝐱i𝐲‾=1ny∑i=1ny𝐲i as the sample means, and 𝜮̂𝐱=1nx−1∑i=1nx(𝐱i−𝐱‾)(𝐱i−𝐱‾)′𝜮̂𝐲=1ny−1∑i=1ny(𝐲i−𝐲‾)(𝐲i−𝐲‾)′ as the respective sample covariance matrices. Then 𝜮̂=(nx−1)𝜮̂𝐱+(ny−1)𝜮̂𝐲nx+ny−2 is the unbiased pooled covariance matrix estimate (an extension of pooled variance). Finally, the Hotelling's two-sample t-squared statistic is t2=nxnynx+ny(𝐱‾−𝐲‾)′𝜮̂−1(𝐱‾−𝐲‾)∼T2(p,nx+ny−2)
Related concepts It can be related to the F-distribution by nx+ny−p−1(nx+ny−2)pt2∼F(p,nx+ny−1−p). The non-null distribution of this statistic is the noncentral F-distribution (the ratio of a non-central Chi-squared random variable and an independent central Chi-squared random variable) nx+ny−p−1(nx+ny−2)pt2∼F(p,nx+ny−1−p;δ), with δ=nxnynx+ny𝒅′𝜮−1𝒅, where 𝒅=𝐱‾−𝐲‾ is the difference vector between the population means. In the two-variable case, the formula simplifies nicely allowing appreciation of how the correlation, ρ, between the variables affects t2. If we define d1=x‾1−y‾1,d2=x‾2−y‾2 and s1=Σ11s2=Σ22ρ=Σ12/(s1s2)=Σ21/(s1s2) then t2=nxny(nx+ny)(1−ρ2)[(d1s1)2+(d2s2)2−2ρ(d1s1)(d2s2)] Thus, if the differences in the two rows of the vector 𝐝=𝐱‾−𝐲‾ are of the same sign, in general, t2 becomes smaller as ρ becomes more positive. If the differences are of opposite sign t2 becomes larger as ρ becomes more positive. A univariate special case can be found in Welch's t-test. More robust and powerful tests than the Hotelling's two-sample test have been proposed in the literature, see for example the interpoint distance based tests which can be applied also when the number of variables is comparable with, or even larger than, the number of subjects.
See also Student's t-test in univariate statistics Student's t-distribution in univariate probability theory Multivariate Student distribution F-distribution (commonly tabulated or available in software libraries, and hence used for testing the T-squared statistic using the relationship given above) Wilks's lambda distribution (in multivariate statistics, Wilks's Λ is to Hotelling's T2 as Snedecor's F is to Student's t in univariate statistics)
References
External links Prokhorov, A.V. (2001) [1994], T2-distribution "Hotelling T2-distribution", Encyclopedia of Mathematics, EMS Press


