fbpx
Wikipedia

Hotelling's T-squared 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]

Hotelling's T2 distribution
Probability density function
Cumulative distribution function
Parameters p - dimension of the random variables
m - related to the sample size
Support if
otherwise.

Motivation Edit

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 Edit

If the vector   is Gaussian multivariate-distributed with zero mean and unit covariance matrix   and   is a   matrix with unit scale matrix and m degrees of freedom with a Wishart distribution  , then the quadratic form   has a Hotelling distribution (with parameters   and  ):[3]

 

Furthermore, if a random variable X has Hotelling's T-squared distribution,  , then:[1]

 

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

Hotelling t-squared statistic Edit

Let   be the sample covariance:

 

where we denote transpose by an apostrophe. It can be shown that   is a positive (semi) definite matrix and   follows a p-variate Wishart distribution with n−1 degrees of freedom.[4] The sample covariance matrix of the mean reads  .

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

 

which is proportional to the 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,

 

where   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   equivalently implies that

 

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 Edit

Let   denote a p-variate normal distribution with location   and known covariance  . Let

 

be n independent identically distributed (iid) random variables, which may be represented as   column vectors of real numbers. Define

 

to be the sample mean with covariance  . It can be shown that

 

where   is the chi-squared distribution with p degrees of freedom.[6]

Proof
Proof

To show this use the fact that   and derive the characteristic function of the random variable  . As usual, let   denote the determinant of the argument, as in  .

By definition of characteristic function, we have:[7]

 

There are two exponentials inside the integral, so by multiplying the exponentials we add the exponents together, obtaining:

 

Now take the term   off the integral, and multiply everything by an identity  , bringing one of them inside the integral:

 

But the term inside the integral is precisely the probability density function of a multivariate normal distribution with covariance matrix   and mean  , so when integrating over all  , it must yield   per the probability axioms.[clarification needed] We thus end up with:

 

where   is an identity matrix of dimension  . Finally, calculating the determinant, we obtain:

 

which is the characteristic function for a chi-square distribution with   degrees of freedom.  

Two-sample statistic Edit

If   and  , with the samples independently drawn from two independent multivariate normal distributions with the same mean and covariance, and we define

 

as the sample means, and

 
 

as the respective sample covariance matrices. Then

 

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

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

 

Related concepts Edit

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

 

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)

 

with

 

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  . If we define

 

and

 

then

 

Thus, if the differences in the two rows of the vector   are of the same sign, in general,   becomes smaller as   becomes more positive. If the differences are of opposite sign   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.[8][9]

See also Edit

References Edit

  1. ^ a b c Hotelling, H. (1931). "The generalization of Student's ratio". Annals of Mathematical Statistics. 2 (3): 360–378. doi:10.1214/aoms/1177732979.
  2. ^ Johnson, R.A.; Wichern, D.W. (2002). Applied multivariate statistical analysis. Vol. 5. Prentice hall.
  3. ^ Eric W. Weisstein, MathWorld
  4. ^ a b Mardia, K. V.; Kent, J. T.; Bibby, J. M. (1979). Multivariate Analysis. Academic Press. ISBN 978-0-12-471250-8.
  5. ^ "6.5.4.3. Hotelling's T squared".
  6. ^ End of chapter 4.2 of Johnson, R.A. & Wichern, D.W. (2002)
  7. ^ Billingsley, P. (1995). "26. Characteristic Functions". Probability and measure (3rd ed.). Wiley. ISBN 978-0-471-00710-4.
  8. ^ Marozzi, M. (2016). "Multivariate tests based on interpoint distances with application to magnetic resonance imaging". Statistical Methods in Medical Research. 25 (6): 2593–2610. doi:10.1177/0962280214529104. PMID 24740998.
  9. ^ Marozzi, M. (2015). "Multivariate multidistance tests for high-dimensional low sample size case-control studies". Statistics in Medicine. 34 (9): 1511–1526. doi:10.1002/sim.6418. PMID 25630579.

External links Edit

hotelling, squared, distribution, multivariate, testing, redirects, here, other, uses, multivariate, testing, disambiguation, statistics, particularly, hypothesis, testing, proposed, harold, hotelling, multivariate, probability, distribution, that, tightly, re. Multivariate testing redirects here For other uses see Multivariate testing disambiguation 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 Hotelling s T2 distributionProbability density functionCumulative distribution functionParametersp dimension of the random variables m related to the sample sizeSupportx 0 displaystyle x in 0 infty if p 1 displaystyle p 1 x 0 displaystyle x in 0 infty otherwise Contents 1 Motivation 2 Definition 3 Hotelling t squared statistic 3 1 Motivation 4 Two sample statistic 4 1 Related concepts 5 See also 6 References 7 External linksMotivation EditThe 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 EditIf the vector d displaystyle d nbsp is Gaussian multivariate distributed with zero mean and unit covariance matrix N 0 p I p p displaystyle N mathbf 0 p mathbf I p p nbsp and M displaystyle M nbsp is a p p displaystyle p times p nbsp matrix with unit scale matrix and m degrees of freedom with a Wishart distribution W I p p m displaystyle W mathbf I p p m nbsp then the quadratic form X displaystyle X nbsp has a Hotelling distribution with parameters p displaystyle p nbsp and m displaystyle m nbsp 3 X m d T M 1 d T 2 p m displaystyle X md T M 1 d sim T 2 p m nbsp Furthermore if a random variable X has Hotelling s T squared distribution X T p m 2 displaystyle X sim T p m 2 nbsp then 1 m p 1 p m X F p m p 1 displaystyle frac m p 1 pm X sim F p m p 1 nbsp where F p m p 1 displaystyle F p m p 1 nbsp is the F distribution with parameters p and m p 1 Hotelling t squared statistic EditLet S displaystyle hat mathbf Sigma nbsp be the sample covariance S 1 n 1 i 1 n x i x x i x displaystyle hat mathbf Sigma frac 1 n 1 sum i 1 n mathbf x i overline mathbf x mathbf x i overline mathbf x nbsp where we denote transpose by an apostrophe It can be shown that S displaystyle hat mathbf Sigma nbsp is a positive semi definite matrix and n 1 S displaystyle n 1 hat mathbf Sigma nbsp follows a p variate Wishart distribution with n 1 degrees of freedom 4 The sample covariance matrix of the mean reads S x S n displaystyle hat mathbf Sigma overline mathbf x hat mathbf Sigma n nbsp The Hotelling s t squared statistic is then defined as 5 t 2 x m S x 1 x m displaystyle t 2 overline mathbf x boldsymbol mu hat mathbf Sigma overline mathbf x 1 overline mathbf x boldsymbol mathbf mu nbsp which is proportional to the distance between the sample mean and m displaystyle boldsymbol mu nbsp Because of this one should expect the statistic to assume low values if x m displaystyle overline mathbf x approx boldsymbol mu nbsp and high values if they are different From the distribution t 2 T p n 1 2 p n 1 n p F p n p displaystyle t 2 sim T p n 1 2 frac p n 1 n p F p n p nbsp where F p n p displaystyle F p n p nbsp 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 t 2 displaystyle t 2 nbsp equivalently implies that n p p n 1 t 2 F p n p displaystyle frac n p p n 1 t 2 sim F p n p nbsp 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 Edit Further information Multivariate normal distribution Interval Let N p m S displaystyle mathcal N p boldsymbol mu mathbf Sigma nbsp denote a p variate normal distribution with location m displaystyle boldsymbol mu nbsp and known covariance S displaystyle mathbf Sigma nbsp Let x 1 x n N p m S displaystyle mathbf x 1 dots mathbf x n sim mathcal N p boldsymbol mu mathbf Sigma nbsp be n independent identically distributed iid random variables which may be represented as p 1 displaystyle p times 1 nbsp column vectors of real numbers Define x x 1 x n n displaystyle overline mathbf x frac mathbf x 1 cdots mathbf x n n nbsp to be the sample mean with covariance S x S n displaystyle mathbf Sigma overline mathbf x mathbf Sigma n nbsp It can be shown that x m S x 1 x m x p 2 displaystyle overline mathbf x boldsymbol mu mathbf Sigma overline mathbf x 1 overline mathbf x boldsymbol mathbf mu sim chi p 2 nbsp where x p 2 displaystyle chi p 2 nbsp is the chi squared distribution with p degrees of freedom 6 ProofProof To show this use the fact that x N p m S n displaystyle overline mathbf x sim mathcal N p boldsymbol mu mathbf Sigma n nbsp and derive the characteristic function of the random variable y x m S x 1 x m x m S n 1 x m displaystyle mathbf y bar mathbf x boldsymbol mu mathbf Sigma bar mathbf x 1 bar mathbf x boldsymbol mathbf mu bar mathbf x boldsymbol mu mathbf Sigma n 1 bar mathbf x boldsymbol mathbf mu nbsp As usual let displaystyle cdot nbsp denote the determinant of the argument as in S displaystyle boldsymbol Sigma nbsp By definition of characteristic function we have 7 f y 8 E e i 8 y E e i 8 x m S n 1 x m e i 8 x m n S 1 x m 2 p p 2 S n 1 2 e 1 2 x m n S 1 x m d x 1 d x p displaystyle begin aligned varphi mathbf y theta amp operatorname E e i theta mathbf y 5pt amp operatorname E e i theta overline mathbf x boldsymbol mu mathbf Sigma n 1 overline mathbf x boldsymbol mathbf mu 5pt amp int e i theta overline mathbf x boldsymbol mu n mathbf Sigma 1 overline mathbf x boldsymbol mathbf mu 2 pi p 2 boldsymbol Sigma n 1 2 e 1 2 overline mathbf x boldsymbol mu n boldsymbol Sigma 1 overline mathbf x boldsymbol mu dx 1 cdots dx p end aligned nbsp There are two exponentials inside the integral so by multiplying the exponentials we add the exponents together obtaining 2 p p 2 S n 1 2 e 1 2 x m n S 1 2 i 8 S 1 x m d x 1 d x p displaystyle begin aligned amp int 2 pi p 2 boldsymbol Sigma n 1 2 e 1 2 overline mathbf x boldsymbol mu n boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 overline mathbf x boldsymbol mu dx 1 cdots dx p end aligned nbsp Now take the term S n 1 2 displaystyle boldsymbol Sigma n 1 2 nbsp off the integral and multiply everything by an identity I S 1 2 i 8 S 1 1 n 1 2 S 1 2 i 8 S 1 1 n 1 2 displaystyle I boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 n 1 2 cdot boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 n 1 2 nbsp bringing one of them inside the integral S 1 2 i 8 S 1 1 n 1 2 S n 1 2 2 p p 2 S 1 2 i 8 S 1 1 n 1 2 e 1 2 n x m S 1 2 i 8 S 1 x m d x 1 d x p displaystyle begin aligned amp boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 n 1 2 boldsymbol Sigma n 1 2 int 2 pi p 2 boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 n 1 2 e 1 2 n overline mathbf x boldsymbol mu boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 overline mathbf x boldsymbol mu dx 1 cdots dx p end aligned nbsp But the term inside the integral is precisely the probability density function of a multivariate normal distribution with covariance matrix S 1 2 i 8 S 1 1 n n S 1 2 i 8 S 1 1 displaystyle boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 n left n boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 right 1 nbsp and mean m displaystyle mu nbsp so when integrating over all x 1 x p displaystyle x 1 dots x p nbsp it must yield 1 displaystyle 1 nbsp per the probability axioms clarification needed We thus end up with S 1 2 i 8 S 1 1 1 n 1 2 S n 1 2 S 1 2 i 8 S 1 1 1 n n S 1 1 2 S 1 2 i 8 S 1 S 1 1 2 I p 2 i 8 I p 1 2 displaystyle begin aligned amp left boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 cdot frac 1 n right 1 2 boldsymbol Sigma n 1 2 amp left boldsymbol Sigma 1 2i theta boldsymbol Sigma 1 1 cdot frac 1 cancel n cdot cancel n cdot boldsymbol Sigma 1 right 1 2 amp left left cancel boldsymbol Sigma 1 2i theta cancel boldsymbol Sigma 1 cancel boldsymbol Sigma right 1 right 1 2 amp mathbf I p 2i theta mathbf I p 1 2 end aligned nbsp where I p displaystyle I p nbsp is an identity matrix of dimension p displaystyle p nbsp Finally calculating the determinant we obtain 1 2 i 8 p 2 displaystyle begin aligned amp 1 2i theta p 2 end aligned nbsp which is the characteristic function for a chi square distribution with p displaystyle p nbsp degrees of freedom displaystyle blacksquare nbsp Two sample statistic EditIf x 1 x n x N p m S displaystyle mathbf x 1 dots mathbf x n x sim N p boldsymbol mu mathbf Sigma nbsp and y 1 y n y N p m S displaystyle mathbf y 1 dots mathbf y n y sim N p boldsymbol mu mathbf Sigma nbsp 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 displaystyle overline mathbf x frac 1 n x sum i 1 n x mathbf x i qquad overline mathbf y frac 1 n y sum i 1 n y mathbf y i nbsp as the sample means and S x 1 n x 1 i 1 n x x i x x i x displaystyle hat mathbf Sigma mathbf x frac 1 n x 1 sum i 1 n x mathbf x i overline mathbf x mathbf x i overline mathbf x nbsp S y 1 n y 1 i 1 n y y i y y i y displaystyle hat mathbf Sigma mathbf y frac 1 n y 1 sum i 1 n y mathbf y i overline mathbf y mathbf y i overline mathbf y nbsp as the respective sample covariance matrices Then S n x 1 S x n y 1 S y n x n y 2 displaystyle hat mathbf Sigma frac n x 1 hat mathbf Sigma mathbf x n y 1 hat mathbf Sigma mathbf y n x n y 2 nbsp 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 S 1 x y T 2 p n x n y 2 displaystyle t 2 frac n x n y n x n y overline mathbf x overline mathbf y hat mathbf Sigma 1 overline mathbf x overline mathbf y sim T 2 p n x n y 2 nbsp Related concepts Edit It can be related to the F distribution by 4 n x n y p 1 n x n y 2 p t 2 F p n x n y 1 p displaystyle frac n x n y p 1 n x n y 2 p t 2 sim F p n x n y 1 p nbsp 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 d displaystyle frac n x n y p 1 n x n y 2 p t 2 sim F p n x n y 1 p delta nbsp with d n x n y n x n y d S 1 d displaystyle delta frac n x n y n x n y boldsymbol d mathbf Sigma 1 boldsymbol d nbsp where d x y displaystyle boldsymbol d mathbf overline x overline y nbsp is the difference vector between the population means In the two variable case the formula simplifies nicely allowing appreciation of how the correlation r displaystyle rho nbsp between the variables affects t 2 displaystyle t 2 nbsp If we define d 1 x 1 y 1 d 2 x 2 y 2 displaystyle d 1 overline x 1 overline y 1 qquad d 2 overline x 2 overline y 2 nbsp and s 1 S 11 s 2 S 22 r S 12 s 1 s 2 S 21 s 1 s 2 displaystyle s 1 sqrt Sigma 11 qquad s 2 sqrt Sigma 22 qquad rho Sigma 12 s 1 s 2 Sigma 21 s 1 s 2 nbsp 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 r d 1 s 1 d 2 s 2 displaystyle t 2 frac n x n y n x n y 1 r 2 left left frac d 1 s 1 right 2 left frac d 2 s 2 right 2 2 rho left frac d 1 s 1 right left frac d 2 s 2 right right nbsp Thus if the differences in the two rows of the vector d x y displaystyle mathbf d overline mathbf x overline mathbf y nbsp are of the same sign in general t 2 displaystyle t 2 nbsp becomes smaller as r displaystyle rho nbsp becomes more positive If the differences are of opposite sign t 2 displaystyle t 2 nbsp becomes larger as r displaystyle rho nbsp 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 8 9 See also EditStudent 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 L is to Hotelling s T2 as Snedecor s F is to Student s t in univariate statistics References Edit a b c Hotelling H 1931 The generalization of Student s ratio Annals of Mathematical Statistics 2 3 360 378 doi 10 1214 aoms 1177732979 Johnson R A Wichern D W 2002 Applied multivariate statistical analysis Vol 5 Prentice hall Eric W Weisstein MathWorld a b Mardia K V Kent J T Bibby J M 1979 Multivariate Analysis Academic Press ISBN 978 0 12 471250 8 6 5 4 3 Hotelling s T squared End of chapter 4 2 of Johnson R A amp Wichern D W 2002 Billingsley P 1995 26 Characteristic Functions Probability and measure 3rd ed Wiley ISBN 978 0 471 00710 4 Marozzi M 2016 Multivariate tests based on interpoint distances with application to magnetic resonance imaging Statistical Methods in Medical Research 25 6 2593 2610 doi 10 1177 0962280214529104 PMID 24740998 Marozzi M 2015 Multivariate multidistance tests for high dimensional low sample size case control studies Statistics in Medicine 34 9 1511 1526 doi 10 1002 sim 6418 PMID 25630579 External links EditProkhorov A V 2001 1994 T2 distribution Hotelling T2 distribution Encyclopedia of Mathematics EMS Press Retrieved from https en wikipedia org w index php title Hotelling 27s T squared distribution amp oldid 1090713067 Pooled covariance matrix, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.