Lably
Skip to content

Noncentral t-distribution

Probability distribution

  • 6 min read
  • 4 chapters

Related on Lably

Through Probability distribution, Power (statistics) and Statistical inference

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

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

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

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:

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

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,
whereR={(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

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics