Noncentral t-distribution

From HandWiki
Short description: Probability distribution
Noncentral Student's t
Probability density function
File:325px
Parameters ν > 0 degrees of freedom
μ∈ℜ noncentrality parameter
Support x∈(−∞;+∞)
PDF see text
CDF see text
Mean see text
Mode see text
Variance see text
Skewness see text
Kurtosis see text

The noncentral t-distribution generalizes Student's t-distribution using a noncentrality parameter. Whereas the central probability distribution describes how a test statistic t is distributed when the difference tested is null, the noncentral distribution describes how t is distributed when the null is false. This leads to its use in statistics, especially calculating statistical power. The noncentral t-distribution is also known as the singly noncentral t-distribution, and in addition to its primary use in statistical inference, is also used in robust modeling for data.

Definitions

If Z is a standard normal random variable, and V is a chi-squared distributed random variable with ν degrees of freedom that is independent of Z, then

T=Z+μV/ν

is a noncentral t-distributed random variable with ν degrees of freedom and noncentrality parameter μ ≠ 0. Note that the noncentrality parameter may be negative.

Cumulative distribution function

The cumulative distribution function of noncentral t-distribution with ν degrees of freedom and noncentrality parameter μ can be defined using the integral[1]

Fν,μ(x)=12ν/2−1Γ(ν/2)∫0∞Φ(uxν−μ)uν−1e−12u2du,

where Φ(x) is the cumulative distribution function of the standard normal distribution. A more practical approach is to express it as[2]

Fν,μ(x)={F~ν,μ(x),if x≥0;1−F~ν,−μ(x),if x<0,

where

F~ν,μ(x)=Φ(−μ)+12∑j=0∞[pjIy(j+12,ν2)+qjIy(j+1,ν2)],
Iy(a,b) is the regularized incomplete beta function,
y=x2x2+ν,
pj=1j!exp⁡(−μ22)(μ22)j,
qj=μ2Γ(j+3/2)exp⁡(−μ22)(μ22)j,

Although this formula is more complicated, it is computationally more efficient, as each series term can be calculated from the previous term using simple arithmetic operations[2]. In statistical programming language R, the cumulative distribution function is implemented as pt. In the Python library SciPy, it is implemented as scipy.stats.nct.cdf[3].

Probability density function

The probability density function (pdf) for the noncentral t-distribution with ν > 0 degrees of freedom and noncentrality parameter μ can be expressed in several forms. A simple integral form is given by:[1]

f(x)=21−ν2νπΓ(ν/2)∫0∞uνexp⁡(−12(uxν−μ)2−12u2)du

The confluent hypergeometric function form of the density function is

f(x)=Γ(ν+12)νπΓ(ν2)(1+x2ν)−ν+12⏟StudentT(x;μ=0)exp⁡(−μ22)(Aν(x;μ)+Bν(x;μ)),

where

Aν(x;μ)=1F1(ν+12;12;μ2x22(x2+ν)),Bν(x;μ)=2μxx2+νΓ(ν2+1)Γ(ν+12)1F1(ν2+1;32;μ2x22(x2+ν)),

and where 1F1 is a confluent hypergeometric function.

An alternative integral form is[4]

f(x)=νν2exp⁡(−νμ22(x2+ν))πΓ(ν2)2ν−12(x2+ν)ν+12∫0∞yνexp⁡(−12(y−μxx2+ν)2)dy.

A third form of the density is obtained using its cumulative distribution functions, as follows.

f(x)={νx{Fν+2,μ(x1+2ν)−Fν,μ(x)},if x≠0;Γ(ν+12)πνΓ(ν2)exp⁡(−μ22),if x=0.

This is the approach implemented by the dt function in R.

Derivation

The integral form of the CDF can be derived directly from the definition of a noncentral t variable:

Fν,μ(x)=P{Z+μV/ν<x}=P{Z+μχ/ν<x},

where χ represents a chi random variable with ν degrees of freedom. Since Z and χ are independent random variables, the above probability can be quantified as the double integral of the product of their probability density functions over the region where the inequality holds:

P{Z+μχ/ν<x}=∬RfZ(z)fχ(u)dzdu=∬R(12πe−12z2)(12ν/2−1Γ(ν/2)uν−1e−12u2)dzdu,
where R={(u,z)|u>0,z+μu/ν<x}={(u,z)|u>0,z<xνu−μ}

Here, region R represents the area in the (u,z)-plane lying to the right of the line u=0, and below the line z=xνu−μ. Thus, the integral can be written with specified limits:

Fν,μ(x)=∫0∞∫−∞xνu−μ(12πe−12z2)dz(12ν/2−1Γ(ν/2)uν−1e−12u2)du

Finally, integrating with respect to z and separating the constant term yields:

Fν,μ(x)=12ν/2−1Γ(ν/2)∫0∞Φ(uxν−μ)uν−1e−12u2du.

The formula for the PDF can be found by differentiating the CDF with respect to x:

f(x)=ddxFν,μ(x)=12ν/2−1Γ(ν/2)∫0∞ddx[Φ(uxν−μ)]uν−1e−12u2du

This simplifies to the first integral form of the PDF given above:

f(x)=21−ν2νπΓ(ν/2)∫0∞uνexp⁡(−12(uxν−μ)2−12u2)du

Properties

Moments of the noncentral t-distribution

In general, the kth raw moment of the noncentral t-distribution is[5]

E[Tk]={(ν2)k2Γ(ν−k2)Γ(ν2)exp(−μ22)dkdμkexp(μ22),if ν>k;Does not exist,if ν≤k.

In particular, the mean and variance of the noncentral t-distribution are

E[T]={μν2Γ((ν−1)/2)Γ(ν/2),if ν>1;Does not exist,if ν≤1,Var[T]={ν(1+μ2)ν−2−μ2ν2(Γ((ν−1)/2)Γ(ν/2))2,if ν>2;Does not exist,if ν≤2.

An excellent approximation to ν2Γ((ν−1)/2)Γ(ν/2) is (1−34ν−1)−1, which can be used in both formulas.[6][7]

Asymmetry

The non-central t-distribution is asymmetric unless μ is zero, i.e., a central t-distribution. In addition, the asymmetry becomes smaller the larger degree of freedom. The right tail will be heavier than the left when μ > 0, and vice versa. However, the usual skewness is not generally a good measure of asymmetry for this distribution, because if the degrees of freedom is not larger than 3, the third moment does not exist at all. Even if the degrees of freedom is greater than 3, the sample estimate of the skewness is still very unstable unless the sample size is very large.


Mode

The noncentral t-distribution is always unimodal and bell shaped, but the mode is not analytically available, although for μ ≠ 0 we have[8]

νν+(5/2)<modeμ<νν+1

In particular, the mode always has the same sign as the noncentrality parameter μ. Moreover, the negative of the mode is exactly the mode for a noncentral t-distribution with the same number of degrees of freedom ν but noncentrality parameter −μ.

The mode is strictly increasing with μ (it always moves in the same direction as μ is adjusted in). In the limit, when μ → 0, the mode is approximated by

ν2Γ(ν+22)Γ(ν+32)μ;

and when μ → ∞, the mode is approximated by

νν+1μ.
  • Central t-distribution: the central t-distribution can be converted into a location/scale family. This family of distributions is used in data modeling to capture various tail behaviors. The location/scale generalization of the central t-distribution is a different distribution from the noncentral t-distribution discussed in this article. In particular, this approximation does not respect the asymmetry of the noncentral t-distribution. However, the central t-distribution can be used as an approximation to the noncentral t-distribution.[9]
  • If T is noncentral t-distributed with ν degrees of freedom and noncentrality parameter μ and F = T2, then F has a noncentral F-distribution with 1 numerator degree of freedom, ν denominator degrees of freedom, and noncentrality parameter μ2.
  • If T is noncentral t-distributed with ν degrees of freedom and noncentrality parameter μ and Z=limν→∞T, then Z has a normal distribution with mean μ and unit variance.
  • When the denominator noncentrality parameter of a doubly noncentral t-distribution is zero, then it becomes a noncentral t-distribution.

Special cases

Occurrence and applications

Use in power analysis

Suppose we have an independent and identically distributed sample X1, ..., Xn each of which is normally distributed with mean θ and variance σ2, and we are interested in testing the null hypothesis θ = 0 vs. the alternative hypothesis θ ≠ 0. We can perform a one sample t-test using the test statistic

T=X¯σ^/n=X¯−θ(σ/n)+θ(σ/n)(σ^2σ2/(n−1))/(n−1)

where X¯ is the sample mean and σ^2 is the unbiased sample variance. Since the right hand side of the second equality exactly matches the characterization of a noncentral t-distribution as described above, T has a noncentral t-distribution with n−1 degrees of freedom and noncentrality parameter nθ/σ.

If the test procedure rejects the null hypothesis whenever |T|>t1−α/2, where t1−α/2 is the upper α/2 quantile of the (central) Student's t-distribution for a pre-specified α ∈ (0, 1), then the power of this test is given by

1−Fn−1,nθ/σ(t1−α/2)+Fn−1,nθ/σ(−t1−α/2).

Similar applications of the noncentral t-distribution can be found in the power analysis of the general normal-theory linear models, which includes the above one sample t-test as a special case.

Use in tolerance intervals

One-sided normal tolerance intervals have an exact solution in terms of the sample mean and sample variance based on the noncentral t-distribution.[10] This enables the calculation of a statistical tolerance limit below which, with some confidence level, a specified proportion of a sampled population falls.

Let X be a random normal variable with unknown population mean and variance, and let a sample of size n yield sample mean x‾ and sample standard deviation s. The probability that the proportion of X values lying below limit L is at least p is given by the noncentral t-CDF:

P{P{X<L}>p}=Fν,μ(L−x‾s/n),  where ν=n−1,  μ=Φ−1(p)n

Tolerance bounds are typically expressed in the form x‾+ks, where k is referred to as its k-factor. This factor is analogous to a z-score, but uses sample statistics rather than population parameters. In this framing, the probability that the proportion of X lying below the limit x‾+ks is at least p is given by

P{P{X<x‾+ks}>p}=Fν,μ(nk),  where ν=n−1,  μ=Φ−1(p)n[11]

Thus, calculating the k-factor corresponding to a given proportion and confidence level requires using the inverse cumulative distribution function of the noncentral t-distribution, which is implemented as qt in R, and as scipy.stats.nct.ppf in SciPy.

See also

References

  1. ↑ 1.0 1.1 Amos, D. E. (1964). "Representations of the Central and Non-Central t Distributions". Biometrika 51 (3/4): 451–458. 
  2. ↑ 2.0 2.1 Lenth, Russell V (1989). "Algorithm AS 243: Cumulative Distribution Function of the Non-central t Distribution". Journal of the Royal Statistical Society, Series C 38 (1): 185–189. 
  3. ↑ "SciPy 1.0: fundamental algorithms for scientific computing in Python". Nature Methods 17 (3): 261–272. March 2020. doi:10.1038/s41592-019-0686-2. PMID 32015543. 
  4. ↑ Scharf, L. (1991). Statistical Signal Processing. Reading: Addison-Wesley. p. 177. ISBN 0-201-19038-9. 
  5. ↑ Hogben, D; Pinkham, RS; Wilk, MB (1961). "The moments of the non-central t-distribution". Biometrika 48 (3–4): 465–468. doi:10.1093/biomet/48.3-4.465. 
  6. ↑ Hedges, Larry V. (June 1981). "Distribution Theory for Glass's Estimator of Effect size and Related Estimators". Journal of Educational Statistics 6 (2): 107–128. doi:10.3102/2F10769986006002107. 
  7. ↑ Tothfalusi, Laszlo; Endrenyi, Laszlo (1 March 2016). "An Exact Procedure for the Evaluation of Reference-Scaled Average Bioequivalence". The AAPS Journal 18 (2): 476–489. doi:10.1208/s12248-016-9873-6. 
  8. ↑ van Aubel, A; Gawronski, W (2003). "Analytic properties of noncentral distributions". Applied Mathematics and Computation 141: 3–12. doi:10.1016/S0096-3003(02)00316-8. 
  9. ↑ Helena Chmura Kraemer; Minja Paik (1979). "A Central t Approximation to the Noncentral t Distribution". Technometrics 21 (3): 357–360. doi:10.1080/00401706.1979.10489781. 
  10. ↑ Derek S. Young (August 2010). "tolerance: An R Package for Estimating Tolerance Intervals". Journal of Statistical Software 36 (5): 1–39. ISSN 1548-7660. http://www.jstatsoft.org/v36/i05. Retrieved 19 February 2013. , p.23
  11. ↑ Scholz, F.-W. (1994). "Applications of the Noncentral t-Distribution". Mathematics and Engineering Analysis Library, Boeing Computer Services: 1-22.