Trisha Shetty (Editor)

Hotelling's T squared distribution

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics Hotelling's T-squared distribution is a univariate distribution proportional to the F-distribution and arises importantly as the distribution of a set of statistics which are natural generalizations of the statistics underlying Student's t-distribution. In particular, 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.

Contents

Distribution

If the vector pd1 is Gaussian multivariate-distributed with zero mean and unit covariance matrix N(p01,pIp) and pMp is a p x p matrix with unit scale matrix and m degrees of freedom with a Wishart distribution W(pIp,m), then the Quadratic form m(1dT p M−1pd1) has a Hotelling T2(p,m) distribution with dimensionality parameter p and m degrees of freedom.

If a random variable X has Hotelling's T-squared distribution, X T p , m 2 , then:

m p + 1 p m X F p , m p + 1

where F p , m p + 1 is the F-distribution with parameters p and m−p+1.

Statistic

Hotelling's t-squared statistic is a generalization of Student's t statistic that is used in multivariate hypothesis testing. The definition follows after it is motivated using a simpler problem.

Motivation

Let N p ( μ , Σ ) denote a p-variate normal distribution with location μ and known covariance Σ . Let

x 1 , , x n N p ( μ , Σ )

be n independent random variables, which may be represented as p × 1 column vectors of real numbers. Define

x ¯ = x 1 + + x n n

to be the sample mean with covariance Σ x ¯ = Σ / n . It can be shown that

( x ¯ μ ) Σ x ¯ 1 ( x ¯ μ ) χ p 2 ,

where χ p 2 is the chi-squared distribution with p degrees of freedom.

Definition

The covariance matrix Σ used above is often unknown. Here we use instead the sample covariance:

Σ ^ = 1 n 1 i = 1 n ( x i x ¯ ) ( x i x ¯ )

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 Σ ^ x ¯ = Σ ^ / n .

Hotelling's t-squared statistic is then defined as:

t 2 = ( x ¯ μ ) Σ ^ x ¯ 1 ( x ¯ μ )

Also, from the #Distribution,

t 2 T p , n 1 2 = p ( n 1 ) n p F p , n p ,

where F p , n p is the F-distribution with parameters p and n − p. In order to calculate a p-value (unrelated to the p variable here), divide the t2 statistic by the above fraction and use the F-distribution.

Two-sample statistic

If x 1 , , x n x N p ( μ , V ) and y 1 , , y n y N p ( μ , V ) , with the samples independently drawn from two independent multivariate normal distributions with the same mean and covariance, and we define

x ¯ = 1 n x i = 1 n x x i y ¯ = 1 n y i = 1 n y y i

as the sample means, and

Σ ^ x = 1 n x 1 i = 1 n ( x i x ¯ ) ( x i x ¯ ) Σ ^ y = 1 n y 1 i = 1 n ( y i y ¯ ) ( y i y ¯ )

as the respective sample covariance matrices. Then

Σ ^ = n x Σ ^ x + n y Σ ^ y n x + n y 2

is the unbiased pooled covariance matrix estimate (an extension of pooled variance).

Finally, the Hotelling's two-sample t-squared statistic is

t 2 = n x n y n x + n y ( x ¯ y ¯ ) Σ ^ 1 ( x ¯ y ¯ ) T 2 ( p , n x + n y 2 )

It can be related to the F-distribution by

n x + n y p 1 ( n x + n y 2 ) p t 2 F ( p , n x + n y 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)

n x + n y p 1 ( n x + n y 2 ) p t 2 F ( p , n x + n y 1 p ; δ ) ,

with

δ = n x n y n x + n y ν V 1 ν ,

where ν = x ¯ y ¯ 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 t 2 . If we define

d 1 = x ¯ 1 y ¯ 1 , d 2 = x ¯ 2 y ¯ 2

and

s 1 = W 11 s 2 = W 22 ρ = W 12 / ( s 1 s 2 ) = W 21 / ( s 1 s 2 )

then

t 2 = n x n y ( n x + n y ) ( 1 r 2 ) [ ( d 1 s 1 ) 2 + ( d 2 s 2 ) 2 2 ρ ( d 1 s 1 ) ( d 2 s 2 ) ]

Thus, if the differences in the two rows of the vector ( x ¯ y ¯ ) are of the same sign, in general, t 2 becomes smaller as ρ becomes more positive. If the differences are of opposite sign t 2 becomes larger as ρ becomes more positive.

A univariate special case can be found in Welch's t-test.

More robust and powerful tests than 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.

References

Hotelling's T-squared distribution Wikipedia