Processing math: 100%
SciPy

This is documentation for an old release of SciPy (version 0.18.0). Search for this page in the documentation of the latest stable release (version 1.15.1).

Chi-squared Distribution

This is the gamma distribution with L=0.0 and S=2.0 and α=ν/2 where ν is called the degrees of freedom. If Z1Zν are all standard normal distributions, then W=kZ2k has (standard) chi-square distribution with ν degrees of freedom.

The standard form (most often used in standard form only) is x>0

f(x;α)=12Γ(ν2)(x2)ν/21ex/2F(x;α)=Γ(ν2,x2)G(q;α)=2Γ1(ν2,q)
M(t)=Γ(ν2)(12t)ν/2
μ=νμ2=2νγ1=22νγ2=12νmd=ν21

Implementation: scipy.stats.chi2