Jump to content

Hotelling's T-squared distribution

From Wikipedia, the free encyclopedia
Hotelling's T2 distribution
Probability density function
Cumulative distribution function
Parameters p - dimension of the random variables
m - related to the sample size
Support x∈(0,+∞) if p=1
x∈[0,+∞) otherwise.

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

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

[edit]

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

[edit]

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]

Alternatively, one can argue using density functions and characteristic functions, as follows.

Two-sample statistic

[edit]

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)

[edit]

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

See also

[edit]

References

[edit]
  1. 1 2 3 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. 1 2 Mardia, K. V.; Kent, J. T.; Bibby, J. M. (1979). Multivariate Analysis. Academic Press. ISBN 978-0-12-471250-8.
  5. ↑ Fogelmark, Karl; Lomholt, Michael; Irbäck, Anders; Ambjörnsson, Tobias (3 May 2018). "Fitting a function to time-dependent ensemble averaged data". Scientific Reports. 8 (1): 6984. arXiv:1805.03057. Bibcode:2018NatSR...8.6984F. doi:10.1038/s41598-018-24983-y. PMC 5934400. PMID 29725108.
  6. ↑ "6.5.4.3. Hotelling's T squared".
  7. ↑ End of chapter 4.2 of Johnson, R.A. & Wichern, D.W. (2002)
  8. ↑ Billingsley, P. (1995). "26. Characteristic Functions". Probability and measure (3rd ed.). Wiley. ISBN 978-0-471-00710-4.
  9. ↑ 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.
  10. ↑ 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.
[edit]