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
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, 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
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.
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
νν+(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μ.
… excerpt ends here. Continue reading the full article.

