Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Probability density f at x = 2
0.172252
ν = 3, λ = 1
x Probability density f
0 0
0.2 0.10121143
0.4 0.13381672
0.6 0.15315904
0.8 0.165206
1 0.17247566
1.2 0.1763617
1.4 0.17774925
1.6 0.17724876
1.8 0.17530452
2 0.17225201
2.2 0.16835122
2.4 0.16380739
2.6 0.15878474
2.8 0.15341592
3 0.14780871
3.2 0.14205106
3.4 0.13621485
3.6 0.13035878
3.8 0.12453071
4 0.11876944
4.2 0.11310625
4.4 0.10756608
4.6 0.10216859
4.8 0.09692892
5 0.09185846
5.2 0.08696543
5.4 0.08225536
5.6 0.07773156
5.8 0.07339542
6 0.06924682
6.2 0.06528429
6.4 0.06150532
6.6 0.05790652
6.8 0.05448379
7 0.05123249
7.2 0.04814754
7.4 0.04522352
7.6 0.04245479
7.8 0.03983554
8 0.03735987
8.2 0.03502185
8.4 0.03281554
8.6 0.03073508
8.8 0.02877465
9 0.02692857
9.2 0.02519127
9.4 0.02355732
9.6 0.02202148
9.8 0.02057864
10 0.01922389
10.2 0.0179525
10.4 0.01675992
10.6 0.01564179
10.8 0.01459393
11 0.01361235
11.2 0.01269324
11.4 0.01183297
11.6 0.01102809
11.8 0.01027531
12 0.00957151
12.2 0.00891374
12.4 0.0082992
12.6 0.00772523
12.8 0.00718933
13 0.00668912
13.2 0.00622237
13.4 0.00578697
13.6 0.00538093
13.8 0.00500237
14 0.00464952
14.2 0.00432073
14.4 0.00401444
14.6 0.00372916
14.8 0.00346354
15 0.00321626
15.2 0.00298612
15.4 0.00277198
15.6 0.00257277
15.8 0.00238748
16 0.00221518
16.2 0.00205499
16.4 0.0019061
16.6 0.00176772
16.8 0.00163914
17 0.0015197
17.2 0.00140876
17.4 0.00130573
17.6 0.00121007
17.8 0.00112127
18 0.00103884
18.2 0.00096235
18.4 0.00089137
18.6 0.00082552
18.8 0.00076445
19 0.0007078
19.2 0.00065527
19.4 0.00060657
19.6 0.00056142
19.8 0.00051957
20 0.00048079

What is the noncentral chi-squared distribution?

The noncentral chi-squared distribution generalizes the ordinary (central) chi-squared distribution by adding a noncentrality parameter lambda. It describes the sum of squares of independent normal variables that have nonzero means. It is widely used in statistical power analysis, signal detection, and hypothesis testing. This calculator is pure mathematics and applies universally — there are no country-specific rules.

Family of noncentral chi-squared density curves shifting right as noncentrality increases
Noncentral chi-squared density curves shift right and flatten as the noncentrality lambda grows.

How to use this calculator

Choose which quantity to output: the probability density f, the lower cumulative probability P, or the upper cumulative probability Q. Enter the degrees of freedom nu (must be greater than 0), the noncentrality lambda (must be at least 0), and a reference x value. Set an x initial value, a step increment, and the number of rows to generate a table of (x, value) pairs over a range.

The formula explained

The noncentral chi-squared is a Poisson(lambda/2)-weighted mixture of central chi-squared distributions. The weight for term j is \(w_j = e^{-\lambda/2}\,(\lambda/2)^j / j!\). The density is the sum of \(w_j\) times the central chi-squared density with \(\nu+2j\) degrees of freedom:

$$f(x;\nu,\lambda)=\sum_{j=0}^{\infty}\frac{e^{-\lambda/2}\left(\lambda/2\right)^{j}}{j!}\,\frac{x^{\,k/2-1}e^{-x/2}}{2^{k/2}\,\Gamma\!\left(k/2\right)}\quad\text{where}\;\; k=\nu+2j$$

The lower cumulative probability is the same mixture applied to the central chi-squared CDF, which uses the regularized lower incomplete gamma function:

$$F(x;\nu,\lambda)=\sum_{j=0}^{\infty}\frac{e^{-\lambda/2}\left(\lambda/2\right)^{j}}{j!}\,P\!\left(\frac{\nu+2j}{2},\;\frac{x}{2}\right)$$

The upper cumulative probability is simply \(Q = 1 - P\).

Advertisement
Density curve split by a vertical line into left lower-cumulative P area and right upper-cumulative Q area
Lower cumulative P is the left area and upper cumulative Q is the right area at a point x.

Worked example

For \(\nu = 3\), \(\lambda = 1\), \(x = 2\): the Poisson(0.5) weights are 0.6065, 0.3033, 0.0758, 0.0126, 0.0016. The central chi-squared CDFs at \(x=2\) for 3,5,7,9,11 dof are 0.4276, 0.1511, 0.0387, 0.0074, 0.0011. The weighted sum gives \(P \approx 0.3082\), so \(Q \approx 0.6918\). The density \(f\) at the same point is approximately 0.173.

FAQ

What happens when lambda = 0? The distribution reduces exactly to the central chi-squared distribution with \(\nu\) degrees of freedom, because only the \(j=0\) term survives with weight 1.

Can nu be non-integer? Yes. The gamma function handles any \(\nu\) greater than 0, so fractional degrees of freedom are valid.

Why is the density 0 at x = 0? For \(\nu\) of 2 or more the density is 0 at the origin; for \(\nu\) below 2 it diverges, so the calculator returns 0 at \(x = 0\) as a practical limit.

Last updated: