Statistics/Chi-squared distribution: Difference between revisions
Content added Content deleted
m (explain tasks) |
m (explain tasks) |
||
Line 37: | Line 37: | ||
: <math display="block"> F(x;\,k) = \frac{1}{\Gamma(k)} x^{(k/2)} \, \Gamma(k/2) \, e^{-x} \sum_{m=0}^\infty\frac{x^m}{\Gamma(\frac{k}{2}+m+1)}. </math> |
: <math display="block"> F(x;\,k) = \frac{1}{\Gamma(k)} x^{(k/2)} \, \Gamma(k/2) \, e^{-x} \sum_{m=0}^\infty\frac{x^m}{\Gamma(\frac{k}{2}+m+1)}. </math> |
||
In practice, this series formula is often |
In practice, this series formula is often subject to accumulated errors from rounding in the frequently used region where x and k are under 10 and near one another. You may therefore instead use a mathematics function library, if available for your programming task, to calculate gamma and incomplete gamma. |
||
;Task: |
;Task: |