Noncentral chi-squared distribution

From HandWiki
Short description: Noncentral generalization of the chi-squared distribution
Noncentral chi-squared
Probability density function
Chi-Squared-(nonCentral)-pdf.png
Cumulative distribution function
Chi-Squared-(nonCentral)-cdf.png
Parameters

[math]\displaystyle{ k \gt 0\, }[/math] degrees of freedom

[math]\displaystyle{ \lambda \gt 0\, }[/math] non-centrality parameter
Support [math]\displaystyle{ x \in [0, +\infty)\; }[/math]
PDF [math]\displaystyle{ \frac{1}{2}e^{-(x+\lambda)/2}\left (\frac{x}{\lambda} \right)^{k/4-1/2} I_{k/2-1}(\sqrt{\lambda x}) }[/math]
CDF [math]\displaystyle{ 1 - Q_{\frac{k}{2}} \left( \sqrt{\lambda}, \sqrt{x} \right) }[/math] with Marcum Q-function [math]\displaystyle{ Q_M(a,b) }[/math]
Mean [math]\displaystyle{ k+\lambda\, }[/math]
Variance [math]\displaystyle{ 2(k+2\lambda)\, }[/math]
Skewness [math]\displaystyle{ \frac{2^{3/2}(k+3\lambda)}{(k+2\lambda)^{3/2}} }[/math]
Kurtosis [math]\displaystyle{ \frac{12(k+4\lambda)}{(k+2\lambda)^2} }[/math]
MGF [math]\displaystyle{ \frac{\exp\left(\frac{\lambda t}{1-2t }\right)}{(1-2 t)^{k/2}} \text{ for }2t\lt 1 }[/math]
CF [math]\displaystyle{ \frac{\exp\left(\frac{i\lambda t}{1-2it}\right)}{(1-2it)^{k/2}} }[/math]

In probability theory and statistics, the noncentral chi-squared distribution (or noncentral chi-square distribution, noncentral [math]\displaystyle{ \chi^2 }[/math] distribution) is a noncentral generalization of the chi-squared distribution. It often arises in the power analysis of statistical tests in which the null distribution is (perhaps asymptotically) a chi-squared distribution; important examples of such tests are the likelihood-ratio tests.[1]

Definitions

Background

Let [math]\displaystyle{ (X_1,X_2, \ldots, X_i, \ldots,X_k) }[/math] be k independent, normally distributed random variables with means [math]\displaystyle{ \mu_i }[/math] and unit variances. Then the random variable

[math]\displaystyle{ \sum_{i=1}^k X_i^2 }[/math]

is distributed according to the noncentral chi-squared distribution. It has two parameters: [math]\displaystyle{ k }[/math] which specifies the number of degrees of freedom (i.e. the number of [math]\displaystyle{ X_i }[/math]), and [math]\displaystyle{ \lambda }[/math] which is related to the mean of the random variables [math]\displaystyle{ X_i }[/math] by:

[math]\displaystyle{ \lambda=\sum_{i=1}^k \mu_i^2. }[/math]

[math]\displaystyle{ \lambda }[/math] is sometimes called the noncentrality parameter. Note that some references define [math]\displaystyle{ \lambda }[/math] in other ways, such as half of the above sum, or its square root.

This distribution arises in multivariate statistics as a derivative of the multivariate normal distribution. While the central chi-squared distribution is the squared norm of a random vector with [math]\displaystyle{ N(0_k,I_k) }[/math] distribution (i.e., the squared distance from the origin to a point taken at random from that distribution), the non-central [math]\displaystyle{ \chi^2 }[/math] is the squared norm of a random vector with [math]\displaystyle{ N(\mu,I_k) }[/math] distribution. Here [math]\displaystyle{ 0_k }[/math] is a zero vector of length k, [math]\displaystyle{ \mu = (\mu_1, \ldots, \mu_k) }[/math] and [math]\displaystyle{ I_k }[/math] is the identity matrix of size k.

Density

The probability density function (pdf) is given by

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

where [math]\displaystyle{ Y_q }[/math] is distributed as chi-squared with [math]\displaystyle{ q }[/math] 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 [math]\displaystyle{ \lambda/2 }[/math], and the conditional distribution of Z given J = i 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 [math]\displaystyle{ \lambda }[/math].

Alternatively, the pdf can be written as

[math]\displaystyle{ 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}) }[/math]

where [math]\displaystyle{ I_\nu(y) }[/math] is a modified Bessel function of the first kind given by

[math]\displaystyle{ I_\nu(y) = (y/2)^\nu \sum_{j=0}^\infty \frac{ (y^2/4)^j}{j! \Gamma(\nu+j+1)}. }[/math]

Using the relation between Bessel functions and hypergeometric functions, the pdf can also be written as:[2]

[math]\displaystyle{ f_X(x;k,\lambda)={{\rm e}^{-\lambda/2}} _0F_1(;k/2;\lambda x/4)\frac 1 {2^{k/2} \Gamma(k/2)} {\rm e}^{-x/2} x^{k/2-1}. }[/math]

The case k = 0 (zero degrees of freedom), in which case the distribution has a discrete component at zero, is discussed by Torgersen (1972) and further by Siegel (1979).

Derivation of the pdf

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

  1. Since [math]\displaystyle{ X_1,\ldots,X_k }[/math] have unit variances, their joint distribution is spherically symmetric, up to a location shift.
  2. The spherical symmetry then implies that the distribution of [math]\displaystyle{ X=X_1^2+\cdots+X_k^2 }[/math] depends on the means only through the squared length, [math]\displaystyle{ \lambda=\mu_1^2+\cdots+\mu_k^2 }[/math]. Without loss of generality, we can therefore take [math]\displaystyle{ \mu_1=\sqrt{\lambda} }[/math] and [math]\displaystyle{ \mu_2=\cdots=\mu_k=0 }[/math].
  3. Now derive the density of [math]\displaystyle{ X=X_1^2 }[/math] (i.e. the k = 1 case). Simple transformation of random variables shows that
[math]\displaystyle{ \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} }[/math]
where [math]\displaystyle{ \phi(\cdot) }[/math] is the standard normal density.
  1. 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.
  2. Finally, for the general case. We've assumed, without loss of generality, that [math]\displaystyle{ X_2,\ldots,X_k }[/math] are standard normal, and so [math]\displaystyle{ X_2^2+\cdots+X_k^2 }[/math] has a central chi-squared distribution with (k − 1) degrees of freedom, independent of [math]\displaystyle{ X_1^2 }[/math]. Using the poisson-weighted mixture representation for [math]\displaystyle{ X_1^2 }[/math], and the fact that the sum of chi-squared random variables is also a chi-square, completes the result. The indices in the series are (1 + 2i) + (k − 1) = k + 2i as required.

Properties

Moment generating function

The moment-generating function is given by

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

Moments

The first few raw moments are:

[math]\displaystyle{ \mu'_1=k+\lambda }[/math]
[math]\displaystyle{ \mu'_2=(k+\lambda)^2 + 2(k + 2\lambda) }[/math]
[math]\displaystyle{ \mu'_3=(k+\lambda)^3 + 6(k+\lambda)(k+2\lambda)+8(k+3\lambda) }[/math]
[math]\displaystyle{ \mu'_4=(k+\lambda)^4+12(k+\lambda)^2(k+2\lambda)+4(11k^2+44k\lambda+36\lambda^2)+48(k+4\lambda). }[/math]

The first few central moments are:

[math]\displaystyle{ \mu_2=2(k+2\lambda)\, }[/math]
[math]\displaystyle{ \mu_3=8(k+3\lambda)\, }[/math]
[math]\displaystyle{ \mu_4=12(k+2\lambda)^2+48(k+4\lambda)\, }[/math]

The nth cumulant is

[math]\displaystyle{ \kappa_n=2^{n-1}(n-1)!(k+n\lambda).\, }[/math]

Hence

[math]\displaystyle{ \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}. }[/math]

Cumulative distribution function

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

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

where [math]\displaystyle{ Q(x; k)\, }[/math] is the cumulative distribution function of the central chi-squared distribution with k degrees of freedom which is given by

[math]\displaystyle{ Q(x;k)=\frac{\gamma(k/2,x/2)}{\Gamma(k/2)}\, }[/math]
and where [math]\displaystyle{ \gamma(k,z)\, }[/math] is the lower incomplete gamma function.

The Marcum Q-function [math]\displaystyle{ Q_M(a,b) }[/math] can also be used to represent the cdf.[3]

[math]\displaystyle{ P(x; k, \lambda) = 1 - Q_{\frac{k}{2}} \left( \sqrt{\lambda}, \sqrt{x} \right) }[/math]

When the degrees of freedom k is positive odd integer, we have a closed form expression for the complementary cumulative distribution function given by[4]

[math]\displaystyle{ \begin{align} P(x; 2n+1, \lambda) &= 1 - Q_{n+1/2}(\sqrt{\lambda}, \sqrt{x}) \\ &= 1 - \left[ Q(\sqrt{x}-\sqrt{\lambda}) + Q(\sqrt{x}+\sqrt{\lambda}) + e^{-(x + \lambda)/2} \sum_{m=1}^n \left(\frac{x}{\lambda}\right)^{m/2-1/4} I_{m-1/2}(\sqrt{\lambda x}) \right], \end{align} }[/math]

where n is non-negative integer, Q is the Gaussian Q-function, and I is the modified Bessel function of first kind with half-integer order. The modified Bessel function of first kind with half-integer order in itself can be represented as a finite sum in terms of hyperbolic functions.

In particular, for k = 1, we have

[math]\displaystyle{ P(x; 1, \lambda) = 1 - \left[ Q(\sqrt{x}-\sqrt{\lambda}) + Q(\sqrt{x}+\sqrt{\lambda}) \right]. }[/math]

Also, for k = 3, we have

[math]\displaystyle{ P(x; 3, \lambda) = 1 - \left[ Q(\sqrt{x}-\sqrt{\lambda}) + Q(\sqrt{x}+\sqrt{\lambda}) + \sqrt{\frac{2}{\pi}} \frac{\sinh (\sqrt{\lambda x})}{\sqrt{\lambda}} e^{-(x+\lambda)/2} \right]. }[/math]

Approximation (including for quantiles)

Abdel-Aty[5] derives (as "first approx.") a non-central Wilson–Hilferty transformation:

[math]\displaystyle{ \left(\frac{\chi'^2}{k+\lambda}\right)^{\frac 1 3} }[/math] is approximately normally distributed, [math]\displaystyle{ \sim \mathcal{N}\left(1-\frac{2}{9f}, \frac{2}{9f} \right), }[/math] i.e.,

[math]\displaystyle{ P(x; k, \lambda )\approx \Phi \left\{ \frac{\left(\frac{x}{k+\lambda}\right)^{1/3} - \left(1 - \frac{2}{9f}\right) } {\sqrt{\frac{2}{9f}} } \right\}, \text{where } \ f := \frac{(k+\lambda)^2}{k+2\lambda} = k + \frac{\lambda^2}{k+2\lambda}, }[/math]

which is quite accurate and well adapting to the noncentrality. Also, [math]\displaystyle{ f = f(k,\lambda) }[/math] becomes [math]\displaystyle{ f = k }[/math] for [math]\displaystyle{ \lambda=0 }[/math], the (central) chi-squared case.

Sankaran[6] discusses a number of closed form approximations for the cumulative distribution function. In an earlier paper,[7] he derived and states the following approximation:

[math]\displaystyle{ P(x; k, \lambda ) \approx \Phi \left\{ \frac{(\frac{x} {k + \lambda}) ^ h - (1 + h p (h - 1 - 0.5 (2 - h) m p))} {h \sqrt{2p} (1 + 0.5 m p)} \right\} }[/math]

where

[math]\displaystyle{ \Phi \lbrace \cdot \rbrace \, }[/math] denotes the cumulative distribution function of the standard normal distribution;
[math]\displaystyle{ h = 1 - \frac{2}{3} \frac{(k+ \lambda) (k+ 3 \lambda)}{(k+ 2 \lambda) ^ 2} \, ; }[/math]
[math]\displaystyle{ p = \frac{k+ 2 \lambda}{(k+ \lambda) ^ 2} ; }[/math]
[math]\displaystyle{ m = (h - 1) (1 - 3 h) \, . }[/math]

This and other approximations are discussed in a later text book.[8]

More recently, since the CDF of non-central chi-squared distribution with odd degree of freedom can be exactly computed, the CDF for even degree of freedom can be approximated by exploiting the monotonicity and log-concavity properties of Marcum-Q function as

[math]\displaystyle{ P(x; 2n, \lambda ) \approx \frac{1}{2}\left[ P(x; 2n - 1, \lambda) + P(x; 2n + 1, \lambda) \right]. }[/math]

Another approximation that also serves as an upper bound is given by

[math]\displaystyle{ P(x; 2n, \lambda ) \approx 1 - \left[ (1- P(x; 2n - 1, \lambda)) (1 - P(x; 2n + 1, \lambda)) \right]^{1/2}. }[/math]

For a given probability, these formulas are easily inverted to provide the corresponding approximation for [math]\displaystyle{ x }[/math], to compute approximate quantiles.

Related distributions

  • If [math]\displaystyle{ V }[/math] is chi-square distributed [math]\displaystyle{ V \sim \chi_k^2 }[/math] then [math]\displaystyle{ V }[/math] is also non-central chi-square distributed: [math]\displaystyle{ V \sim {\chi'}^2_k(0) }[/math]
  • A linear combination of independent noncentral chi-squared variables [math]\displaystyle{ \xi=\sum_i \lambda_i Y_i + c, \quad Y_i \sim \chi'^2(m_i,\delta_i^2) }[/math], is generalized chi-square distributed.
  • If [math]\displaystyle{ V_1 \sim {\chi'}_{k_1}^2(\lambda) }[/math] and [math]\displaystyle{ V_2 \sim {\chi'}_{k_2}^2(0) }[/math] and [math]\displaystyle{ V_1 }[/math] is independent of [math]\displaystyle{ V_2 }[/math] then a noncentral F-distributed variable is developed as [math]\displaystyle{ \frac{V_1/k_1}{V_2/k_2} \sim F'_{k_1,k_2}(\lambda) }[/math]
  • If [math]\displaystyle{ J \sim \mathrm{Poisson}\left({\frac{1}{2}\lambda}\right) }[/math], then [math]\displaystyle{ \chi_{k+2J}^2 \sim {\chi'}_k^2(\lambda) }[/math]
  • If [math]\displaystyle{ V\sim{\chi'}^2_2(\lambda) }[/math], then [math]\displaystyle{ \sqrt{V} }[/math] takes the Rice distribution with parameter [math]\displaystyle{ \sqrt{\lambda} }[/math].
  • Normal approximation:[9] if [math]\displaystyle{ V \sim {\chi'}^2_k(\lambda) }[/math], then [math]\displaystyle{ \frac{V-(k+\lambda)}{\sqrt{2(k+2\lambda)}}\to N(0,1) }[/math] in distribution as either [math]\displaystyle{ k\to\infty }[/math] or [math]\displaystyle{ \lambda\to\infty }[/math].
  • If [math]\displaystyle{ V_1 \sim {\chi'}^2_{k_1}(\lambda_1) }[/math]and [math]\displaystyle{ V_2 \sim {\chi'}^2_{k_2}(\lambda_2) }[/math], where [math]\displaystyle{ V_1, V_2 }[/math] are independent, then [math]\displaystyle{ W = (V_1+V_2) \sim {\chi'}^2_k(\lambda_1+\lambda_2) }[/math] where [math]\displaystyle{ k=k_1+k_2 }[/math].
  • In general, for a finite set of [math]\displaystyle{ V_i \sim {\chi'}^2_{k_i}(\lambda_i), i\in \left \{ 1..N \right \} }[/math], the sum of these non-central chi-square distributed random variables [math]\displaystyle{ Y = \sum_{i=1}^N V_i }[/math] has the distribution [math]\displaystyle{ Y \sim {\chi'}^2_{k_y}(\lambda_y) }[/math] where [math]\displaystyle{ k_y=\sum_{i=1}^N k_i, \lambda_y=\sum_{i=1}^N\lambda_i }[/math]. This can be seen using moment generating functions as follows: [math]\displaystyle{ M_Y(t) = M_{\sum_{i=1}^N V_i}(t) = \prod_{i=1}^N M_{V_i}(t) }[/math] by the independence of the [math]\displaystyle{ V_i }[/math] random variables. It remains to plug in the MGF for the non-central chi square distributions into the product and compute the new MGF – this is left as an exercise. Alternatively it can be seen via the interpretation in the background section above as sums of squares of independent normally distributed random variables with variances of 1 and the specified means.
  • The complex noncentral chi-squared distribution has applications in radio communication and radar systems.[citation needed] Let [math]\displaystyle{ (z_1, \ldots, z_k) }[/math] be independent scalar complex random variables with noncentral circular symmetry, means of [math]\displaystyle{ \mu_i }[/math] and unit variances: [math]\displaystyle{ \operatorname{E} \left |z_i - \mu_i \right |^2 = 1 }[/math]. Then the real random variable [math]\displaystyle{ S = \sum_{i=1}^k \left |z_i \right | ^2 }[/math] is distributed according to the complex noncentral chi-squared distribution, which is effectively a scaled (by 1/2) non-central [math]\displaystyle{ {\chi'}^2 }[/math] with twice the degree of freedom and twice the noncentrality parameter:
[math]\displaystyle{ f_S(S) = \left( \frac {S}{\lambda} \right)^{(k-1)/2} e^{ - (S + \lambda) } I_{k-1} (2 \sqrt {S\lambda} ) }[/math]
where [math]\displaystyle{ \lambda=\sum_{i=1}^k \left |\mu_i \right |^2. }[/math]

Transformations

Sankaran (1963) discusses the transformations of the form [math]\displaystyle{ z=[(X-b)/(k+\lambda)]^{1/2} }[/math]. He analyzes the expansions of the cumulants of [math]\displaystyle{ z }[/math] up to the term [math]\displaystyle{ O((k+\lambda)^{-4}) }[/math] and shows that the following choices of [math]\displaystyle{ b }[/math] produce reasonable results:

  • [math]\displaystyle{ b=(k-1)/2 }[/math] makes the second cumulant of [math]\displaystyle{ z }[/math] approximately independent of [math]\displaystyle{ \lambda }[/math]
  • [math]\displaystyle{ b=(k-1)/3 }[/math] makes the third cumulant of [math]\displaystyle{ z }[/math] approximately independent of [math]\displaystyle{ \lambda }[/math]
  • [math]\displaystyle{ b=(k-1)/4 }[/math] makes the fourth cumulant of [math]\displaystyle{ z }[/math] approximately independent of [math]\displaystyle{ \lambda }[/math]

Also, a simpler transformation [math]\displaystyle{ z_1 = (X-(k-1)/2)^{1/2} }[/math] can be used as a variance stabilizing transformation that produces a random variable with mean [math]\displaystyle{ (\lambda + (k-1)/2)^{1/2} }[/math] and variance [math]\displaystyle{ O((k+\lambda)^{-2}) }[/math].

Usability of these transformations may be hampered by the need to take the square roots of negative numbers.

Various chi and chi-squared distributions
Name Statistic
chi-squared distribution [math]\displaystyle{ \sum_1^k \left(\frac{X_i-\mu_i}{\sigma_i}\right)^2 }[/math]
noncentral chi-squared distribution [math]\displaystyle{ \sum_1^k \left(\frac{X_i}{\sigma_i}\right)^2 }[/math]
chi distribution [math]\displaystyle{ \sqrt{\sum_1^k \left(\frac{X_i-\mu_i}{\sigma_i}\right)^2} }[/math]
noncentral chi distribution [math]\displaystyle{ \sqrt{\sum_1^k \left(\frac{X_i}{\sigma_i}\right)^2} }[/math]

Occurrence and applications

Use in tolerance intervals

Two-sided normal regression tolerance intervals can be obtained based on the noncentral chi-squared distribution.[10] This enables the calculation of a statistical interval within which, with some confidence level, a specified proportion of a sampled population falls.

Notes

  1. Patnaik, P. B. (1949). "The Non-Central χ2- and F-Distribution and their Applications". Biometrika 36 (1/2): 202–232. doi:10.2307/2332542. ISSN 0006-3444. https://www.jstor.org/stable/2332542. 
  2. Muirhead (2005) Theorem 1.3.4
  3. Nuttall, Albert H. (1975): Some Integrals Involving the QM Function, IEEE Transactions on Information Theory, 21(1), 95–96, ISSN 0018-9448
  4. A. Annamalai, C. Tellambura and John Matyjas (2009). "A New Twist on the Generalized Marcum Q-Function QM(ab) with Fractional-Order M and its Applications". 2009 6th IEEE Consumer Communications and Networking Conference, 1–5, ISBN:978-1-4244-2308-8
  5. Abdel-Aty, S. (1954). Approximate Formulae for the Percentage Points and the Probability Integral of the Non-Central χ2 Distribution Biometrika 41, 538–540. doi:10.2307/2332731
  6. Sankaran, M. (1963). Approximations to the non-central chi-squared distribution Biometrika, 50(1-2), 199–204
  7. Sankaran, M. (1959). "On the non-central chi-squared distribution", Biometrika 46, 235–237
  8. Johnson et al. (1995) Continuous Univariate Distributions Section 29.8
  9. Muirhead (2005) pages 22–24 and problem 1.18.
  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. 32

References

  • Abramowitz, M. and Stegun, I. A. (1972), Handbook of Mathematical Functions, Dover.
  • Johnson, N. L., Kotz, S., Balakrishnan, N. (1995), Continuous Univariate Distributions, Volume 2 (2nd Edition), Wiley. ISBN 0-471-58494-0
  • Muirhead, R. (2005) Aspects of Multivariate Statistical Theory (2nd Edition). Wiley. ISBN 0-471-76985-1
  • Torgersen, E. N. (1972), "Supplementary notes on linear models", Preprint series: Statistical Memoirs, Dept. of Mathematics, University of Oslo, http://urn.nb.no/URN:NBN:no-58681
  • Siegel, A. F. (1979), "The noncentral chi-squared distribution with zero degrees of freedom and testing for uniformity", Biometrika, 66, 381–386
  • Press, S.J. (1966), "Linear combinations of non-central chi-squared variates", The Annals of Mathematical Statistics 37 (2): 480–487, doi:10.1214/aoms/1177699531