Noncentral chi-square distribution
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Noncentral_chi-square_distribution"
.

content
Noncentral chi-square
Probability density function
Cumulative distribution function
Parameters k > 0\, degrees of freedom

\lambda > 0\, non-centrality parameter

Support x \in [0; +\infty)\,
Probability density function (pdf) \frac{1}{2}e^{-(x+\lambda)/2}\left (\frac{x}{\lambda} \right)^{k/4-1/2}
 I_{k/2-1}(\sqrt{\lambda x})
Cumulative distribution function (cdf)  :\sum_{j=0}^\infty e^{-\lambda/2} \frac{(\lambda/2)^j}{j!} \frac{\gamma(j+k/2,x/2)}{\Gamma(j+k/2)}\,
Mean k+\lambda\,
Median
Mode
Variance 2(k+2\lambda)\,
Skewness \frac{2^{3/2}(k+3\lambda)}{(k+2\lambda)^{3/2}}
Excess kurtosis \frac{12(k+4\lambda)}{(k+2\lambda)^2}
Entropy
Moment-generating function (mgf) \frac{\exp\left(\frac{ \lambda t}{1-2t }\right)}{(1-2 t)^{k/2}} for 2t < 1
Characteristic function \frac{\exp\left(\frac{i\lambda t}{1-2it}\right)}{(1-2it)^{k/2}}

In probability theory and statistics, the noncentral chi-square or noncentral χ2 distribution is a generalization of the chi-square distribution. If Xi are k independent, normally distributed random variables with means μi and variances \sigma_i^2, then the random variable

\sum_{i=1}^k \left(\frac{X_i}{\sigma_i}\right)^2

is distributed according to the noncentral chi-square distribution. The noncentral chi-square distribution has two parameters: k which specifies the number of degrees of freedom (i.e. the number of Xi), and λ which is related to the mean of the random variables Xi by:

\lambda=\sum_{i=1}^k \left(\frac{\mu_i}{\sigma_i}\right)^2.

Note that some references define λ as one half of the above sum.

Contents

Properties

The probability density function is given by


f_X(x; k,\lambda) = \sum_{i=0}^\infty \frac{e^{-\lambda/2} (\lambda/2)^i}{i!} f_{Y_{k+2i}}(x),

where Yq is distributed as chi-square with q degrees of freedom.

From this representation, the noncentral chi-squared distribution is seen to be a Poisson-weighted mixture of central chi-squared distributions. Suppose that a random variable J has a Poisson distribution with mean λ / 2, and the conditional distribution of Z given J = j is chi-squared with k+2i degrees of freedom. Then the unconditional distribution of Z is non-central chi-squared with k degrees of freedom, and non-centrality parameter λ.

Alternatively, the pdf can be written as

f_X(x;k,\lambda)=\frac{1}{2} e^{-(x+\lambda)/2} \left (\frac{x}{\lambda}\right)^{k/4-1/2} I_{k/2-1}(\sqrt{\lambda x})

where Iν(z) is a modified Bessel function of the first kind given by

 I_a(y) := (y/2)^a \sum_{j=0}^\infty \frac{ (y^2/4)^j}{j! \Gamma(a+j+1)}

The moment generating function is given by

M(t;k,\lambda)=\frac{\exp\left(\frac{ \lambda t}{1-2t }\right)}{(1-2 t)^{k/2}}.

The first few raw moments are:

\mu^'_1=k+\lambda
\mu^'_2=(k+\lambda)^2 + 2(k + 2\lambda)
\mu^'_3=(k+\lambda)^3 + 6(k+\lambda)(k+2\lambda)+8(k+3\lambda)
\mu^'_4=(k+\lambda)^4+12(k+\lambda)^2(k+2\lambda)+4(11k^2+44k\lambda+36\lambda^2)+48(k+4\lambda)

The first few central moments are:

\mu_2=2(k+2\lambda)\,
\mu_3=8(k+3\lambda)\,
\mu_4=12(k+2\lambda)^2+48(k+4\lambda)\,

The nth cumulant is

K_n=2^{n-1}(n-1)!(k+n\lambda).\,

Hence

\mu^'_n = 2^{n-1}(n-1)!(k+n\lambda)+\sum_{j=1}^{n-1} \frac{(n-1)!2^{j-1}}{(n-j)!}(k+j\lambda )\mu^'_{n-j}.

Again using the relation between the central and noncentral chi-square distributions, the cumulative distribution function (cdf) can be written as

P(x; k, \lambda ) = \sum_{j=0}^\infty e^{-\lambda/2} \frac{(\lambda/2)^j}{j!} Q(x; k+2j)

where Q(x;k) is the cumulative distribution function of the central chi-squared distribution which is given by

Q(x;k)=\frac{\gamma(k/2,x/2)}{\Gamma(k/2)}\,

where γ(k,z) is the lower incomplete Gamma function.

Derivation of the pdf

The derivation of the probability density function is most easily done by performing the following steps:

  1. First, assume without loss of generality that \sigma_1=\ldots=\sigma_k=1. Then the joint distribution of X_1,\ldots,X_k is spherically symmetric, up to a location shift.
  2. The spherical symmetry then implies that the distribution of X=X_1^2+\ldots+X_k^2 depends on the means only through the squared length, \lambda=\mu_1^2+\ldots+\mu_k^2. Without loss of generality, we can therefore take \mu_1=\sqrt{\lambda} and \mu_2=\dots=\mu_k=0.
  3. Now derive the density of X=X_1^2 (i.e. k=1 case). Simple transformation of random variables shows that :\begin{align}f_X(x,1,\lambda) &= \frac{1}{2\sqrt{x}}\left( \phi(\sqrt{x}-\sqrt{\lambda}) + \phi(\sqrt{x}+\sqrt{\lambda}) \right )\\ &= \frac{1}{\sqrt{2\pi x}} e^{-(x+\lambda)/2} \cosh(\sqrt{\lambda x}),\\ \end{align}
    where \phi(\cdot) is the standard normal density.
  4. Expand the cosh term in a Taylor series. This gives the Poisson-weighted mixture representation of the density, still for k=1. The indices on the chi-squared random variables in the series above are 1+2i in this case.
  5. Finally, for the general case. We've assumed, wlog, that X_2,\ldots,X_k are standard normal, and so X_2^2+\ldots+X_k^2 has a central chi-squared distribution with (k-1) degrees of freedom, independent of X_1^2. Using the poisson-weighted mixture representation for X_1^2, and the fact that the sum of chi-squared random variables is also chi-squared, completes the result. The indices in the series are (1+2i)+(k-1) = k+2i as required.

Related distributions

  • If V is chi-square distributed V \sim \chi_k^2 then V is also non-central chi-square distributed: V \sim {\chi'}^2_k(0)
  • If J \sim Poisson(\frac{\lambda}{2}), then \chi_{k+2J}^2 \sim {\chi'}_k^2(\lambda)
Various chi and chi-square distributions
Name Statistic
chi-square distribution \sum_1^k \left(\frac{X_i-\mu_i}{\sigma_i}\right)^2
noncentral chi-square distribution \sum_1^k \left(\frac{X_i}{\sigma_i}\right)^2
chi distribution \sqrt{\sum_1^k \left(\frac{X_i-\mu_i}{\sigma_i}\right)^2}
noncentral chi distribution \sqrt{\sum_1^k \left(\frac{X_i}{\sigma_i}\right)^2}

Software and online calculator

Many statistical software packages and libraries include functions for computing noncentral chisquare densities and probabilities. The table below gives commands for the following example problems:

  1. Density fX(x;k,λ) with x=5.0, k=3, λ = 1.5
  2. Cumulative probability P(x;k,λ) with x=5.0, k=3, λ = 1.5
  3. Quantile: Find x in P(x;k,λ) = q with k=3, λ = 1.5, q=0.5
  4. Critical noncentral parameter: Find λ in P(x;k,λ) = q with x=5.0,k=3, and q=0.5
  5. Random numbers: Generate 100 random observations from the distribution with k=3, λ=1.5
Software Density Cumulative Prob. Quantile Noncentral parameter Random numbers
Matlab ncx2pdf(5.0,3,1.5) ncx2cdf(5.0,3,1.5) ncx2inv(.5,3,1.5) fsolve(@(L)(ncx2cdf(5.0,3,L)-.5), 1) ncx2rnd(3,1.5,100,1)
R dchisq(5.0,3,1.5) pchisq(5.0,3,1.5) qchisq(.5,3,1.5) require(MBESS);

conf.limits.nc.chisq( 5,NULL,3,0,.5)

rchisq(100,3,1.5)
SAS PROBCHI(5.0,3,1.5) CDF('CHISQUARE',5.0,3,1.5) CINV(.5,3,1.5) CNONCT(5.0,3,.55)  ?
Stattab 1 NA 5.0 3 1.5 ? .  ? 3 1.5 0.5 .  ? NA
Correct Answer 0.097257 0.649285 3.668745 2.898530 Varies

Note: Any software that produces the answers 0.101384, 0.490071, 5.09848 for the first three problems is including a factor of 0.5 in the definition of the noncentrality parameter. This is standard in statistics texts (e.g. 2), but apparently not among programmers who don't read before writing their code.

These parameters can also be calculated online.

References

  1. ^ MD Anderson Cancer Center [1]
  2. ^ R. Christensen, Plane Answers to Complex Questions (3rd edition, 2002), Springer, NY, p.424.
  • Abramowitz, M. and Stegun, I.A. (1972), Handbook of Mathematical Functions, Dover. Section 26.4.25.
  • Johnson, N. L. and Kotz, S., (1970), Continuous Univariate Distributions, vol. 2, Houghton-Mifflin.
© jGames.co.uk 2007 (some content from Wikipedia under GDL ) !-- ValueClick Media 468x60 and 728x90 Banner CODE for jgames.co.uk -->
Your Ad Here