Hotelling's T-squared distribution

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Redirect Template:Probability distribution

In statistics, particularly in hypothesis testing, the Hotelling's T-squared distribution (T2), proposed by Harold Hotelling,[1] 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.[2]

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.[1]

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):[3] 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:[1] 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.[4] The sample covariance matrix of the mean reads πšΊΜ‚π±β€Ύ=πšΊΜ‚/n.[5]

The Hotelling's t-squared statistic is then defined as:[6]

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

Template:Further

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.[7]

Template:Collapse top

Template:Math proof Template:Collapse bottom Alternatively, one can argue using density functions and characteristic functions, as follows. Template:Collapse top Template:Math proof Template:Collapse bottom

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).Template:Anchor

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

t2=nxnynx+ny(π±β€Ύβˆ’π²β€Ύ)β€²πšΊΜ‚βˆ’1(π±β€Ύβˆ’π²β€Ύ)∼T2(p,nx+nyβˆ’2)

It can be related to the F-distribution by[4]

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.[8][9]

See also

References

Template:Reflist

Template:ProbDistributions