Next: , Previous: , Up: Functions and Variables for continuous distributions   [Contents][Index]

52.2.5 Noncentral Chi-squared Random Variable

Let X1,X2,...,Xn be n independent normally distributed random variables with means μk and unit variances. Then the random variable

k=1nXk2

has a noncentral χ2 distribution. The number of degrees of freedom is n, and the noncentrality parameter is defined by

k=1nμk2
Function: pdf_noncentral_chi2 (x,n,ncp)

Returns the value at x of the density function of a noncentral χ2 random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0. To make use of this function, write first load("distrib").

For x<0, the pdf is 0, and for x0 the pdf is

f(x;n,λ)=12e(x+λ)/2(xλ)n/41/2In21(nλ)
Categories: Package distrib ·
Function: cdf_noncentral_chi2 (x,n,ncp)

Returns the value at x of the distribution function of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0. To make use of this function, write first load("distrib").

Categories: Package distrib ·
Function: quantile_noncentral_chi2 (q,n,ncp)

Returns the q-quantile of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0; in other words, this is the inverse of cdf_noncentral_chi2. Argument q must be an element of [0,1].

This function has no closed form and it is numerically computed.

Categories: Package distrib ·
Function: mean_noncentral_chi2 (n,ncp)

Returns the mean of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0.

The mean is

E[X]=n+μ

where μ is the noncentrality parameter ncp.

Categories: Package distrib ·
Function: var_noncentral_chi2 (n,ncp)

Returns the variance of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0.

The variance is

V[X]=2(n+2μ)

where μ is the noncentrality parameter ncp.

Categories: Package distrib ·
Function: std_noncentral_chi2 (n,ncp)

Returns the standard deviation of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0.

The standard deviation is

D[X]=2(n+2μ)

where μ is the noncentrality parameter ncp.

Categories: Package distrib ·

Function: skewness_noncentral_chi2 (n,ncp)

Returns the skewness coefficient of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0.

The skewness coefficient is

SK[X]=23/2(n+3μ)(n+2μ)3/2

where μ is the noncentrality parameter ncp.

Categories: Package distrib ·
Function: kurtosis_noncentral_chi2 (n,ncp)

Returns the kurtosis coefficient of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0.

The kurtosis coefficient is

KU[X]=12(n+4μ)(2+2μ)2

where μ is the noncentrality parameter ncp.

Categories: Package distrib ·
Function: random_noncentral_chi2 (n,ncp)
    random_noncentral_chi2 (n,ncp,m)

Returns a noncentral Chi-square random variate m4_noncentral_chi2(n,ncp), with n>0 and noncentrality parameter ncp>=0. Calling random_noncentral_chi2 with a third argument m, a random sample of size m will be simulated.

To make use of this function, write first load("distrib").


Next: , Previous: , Up: Functions and Variables for continuous distributions   [Contents][Index]

JavaScript license information