HotellingTSquareDistributionCopy to clipboard.
✖
HotellingTSquareDistribution
represents Hotelling's distribution with dimensionality parameter p and m degrees of freedom.
Details

- The probability density for value
in Hotelling's T-square distribution is proportional to
for
.
- HotellingTSquareDistribution allows p and m to be any positive real numbers such that
.
- HotellingTSquareDistribution allows p and m to be dimensionless quantities.
- HotellingTSquareDistribution can be used with such functions as Mean, CDF, and RandomVariate.
Background & Context
- HotellingTSquareDistribution[p,m] represents a continuous statistical distribution defined over the interval
and parameterized by two positive real numbers p and m>p-1. Here, p is called a "dimensionality parameter" and m a degrees of freedom parameter. The parameter m determines the height and steepness of the probability density function (PDF) of a Hotelling
distribution. The general behavior of the PDF is determined by p and may be either monotonically decreasing with a potential singularity approaching the lower boundary of its domain (when
) or unimodal (for
). In addition, the tails of the PDF are "fat," in the sense that the PDF decreases algebraically rather than exponentially for large values of
. (This behavior can be made quantitatively precise by analyzing the SurvivalFunction of the distribution.)
- The Hotelling
distribution dates to the early 1930s work of American mathematician Harold Hotelling that generalized the Student
-distribution (StudentTDistribution) to cases involving hypothesis testing of p random variates. The Hotelling
distribution forms the basis of the Hotelling test, which is a multivariate hypothesis test for the null hypothesis of equality among two unknown vectors of normally distributed variates having unknown covariance matrices. Since its creation, the Hotelling
distribution has been used to model phenomena in agriculture, process control, principal component analysis, and quality control.
- RandomVariate can be used to give one or more machine- or arbitrary-precision (the latter via the WorkingPrecision option) pseudorandom variates from a Hotelling
distribution. Distributed[x,HotellingTSquareDistribution[p,m]], written more concisely as xHotellingTSquareDistribution[p,m], can be used to assert that a random variable x is distributed according to a Hotelling
distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
- The probability density and cumulative distribution functions may be given using PDF[HotellingTSquareDistribution[p,m],x] and CDF[HotellingTSquareDistribution[p,m],x]. The mean, median, variance, raw moments, and central moments may be computed using Mean, Median, Variance, Moment, and CentralMoment, respectively.
- DistributionFitTest can be used to test if a given dataset is consistent with a Hotelling
distribution, EstimatedDistribution to estimate a Hotelling
parametric distribution from given data, and FindDistributionParameters to fit data to a Hotelling
distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic Hotelling
distribution and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic Hotelling
distribution.
- TransformedDistribution can be used to represent a transformed Hotelling
distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higher-dimensional distributions that contain a Hotelling
distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving Hotelling
distributions.
- Hotelling's
distribution is related to a number of other distributions. As previously noted, HotellingTSquareDistribution is linked to statistical testing involving NormalDistribution and MultinormalDistribution. It was devised as a generalization of StudentTDistribution and in particular, HotellingTSquareDistribution[1,m] is proportional to StudentTDistribution[m]. Under appropriate assumptions, HotellingTSquareDistribution[p,m] is a special case of both PearsonDistribution (in the sense that its PDF is identical to that of PearsonDistribution[6,1,-((m(p-2))/(3+m-p)),2/(3+m-p),(2 m)/(3+m-p), 0]) and FRatioDistribution (in the sense that the CDF of HotellingTSquareDistribution[p,m] is precisely that of FRatioDistribution[p,1 - p + m], x (m - p + 1)/(m p)]). HotellingTSquareDistribution is also related to ChiDistribution, ChiSquareDistribution, BetaDistribution, FisherZDistribution, and LaplaceDistribution.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-enf3xk


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-oficpf


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-j1h0s8

Cumulative distribution function:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-idnmdx


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-ufwmkg


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-i7z8wa


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-3b5m60


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-4b0xzt


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-ffj7uz

Scope (7)Survey of the scope of standard use cases
Generate a sample of pseudorandom numbers from a Hotelling's T-square distribution:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-168ori
Compare its histogram to the PDF:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-pudjx8

Distribution parameters estimation:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-45b7g2
Estimate the distribution parameters from sample data:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-epi747

Compare the density histogram of the sample with the PDF of the estimated distribution:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-f8ui5o


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-wdjicf


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-tg5k8z


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-hoi7ub


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-bodyfb


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-vru36v


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-0dcb1w

Different moments with closed forms as functions of parameters:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-js043h

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-rx074o

Closed form for symbolic order:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-6xsqiv


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-pknsqa


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-zg9ct4


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-9gzmth


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-f6dgkk


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-jn4msr


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-89c4cc


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-6do22s


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-q7kmmm


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-1fwbe8

Applications (1)Sample problems that can be solved with this function
Hotelling's ‐statistic is used to test whether multivariate data has a given mean:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-b870i9
For multivariate normal data of length with mean
, the test statistic follows a HotellingTSquareDistribution[p,n-1] where
is the dimension of the data:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-b9r4cn

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-cq3k1g

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-fhlp5g

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-ek25in

Obtain the test statistic and -value for some data:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-gldtr

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-lzfqzb

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-vmr3k


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-orsbi

Alternatively, use TTest:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-ev4wh4

Properties & Relations (3)Properties of the function, and connections to other functions
Relationships to other distributions:

Hotelling's T-square distribution is a special case of FRatioDistribution:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-od1s7n


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-9lj567


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-ijpz6z

Hotelling's T-square distribution is a special case of type 6 PearsonDistribution:

https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-skz0uo


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-exw3x3


https://wolfram.com/xid/0d2rpqpacwqa99zxw06emy-whoxzk

Neat Examples (1)Surprising or curious use cases
Wolfram Research (2010), HotellingTSquareDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html (updated 2016).
Text
Wolfram Research (2010), HotellingTSquareDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html (updated 2016).
Wolfram Research (2010), HotellingTSquareDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html (updated 2016).
CMS
Wolfram Language. 2010. "HotellingTSquareDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html.
Wolfram Language. 2010. "HotellingTSquareDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html.
APA
Wolfram Language. (2010). HotellingTSquareDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html
Wolfram Language. (2010). HotellingTSquareDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html
BibTeX
@misc{reference.wolfram_2025_hotellingtsquaredistribution, author="Wolfram Research", title="{HotellingTSquareDistribution}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html}", note=[Accessed: 26-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_hotellingtsquaredistribution, organization={Wolfram Research}, title={HotellingTSquareDistribution}, year={2016}, url={https://reference.wolfram.com/language/ref/HotellingTSquareDistribution.html}, note=[Accessed: 26-March-2025
]}