|
36 | 36 | Then, if $m > -k/2$, the [raw moment](/D/mom-raw) $\mathrm{E}(X^{m})$ exists and is equal to: |
37 | 37 |
|
38 | 38 | $$ \label{eq:chi2-momraw} |
39 | | -\mathrm{E}(X^{m}) = 2^m \frac{\Gamma\left( \frac{k}{2}+m \right)}{\Gamma\left( \frac{k}{2} \right)} \; . |
| 39 | +\mathrm{E}(X^{m}) = 2^m \, \frac{\Gamma\left( \frac{k}{2}+m \right)}{\Gamma\left( \frac{k}{2} \right)} \; . |
40 | 40 | $$ |
41 | 41 |
|
42 | 42 |
|
43 | 43 | **Proof:** Combining the [definition of the raw moment](/D/mom-raw) with the [probability density function of the chi-squared distribution](/P/chi2-pdf), we have: |
44 | 44 |
|
45 | 45 | $$ \label{eq:chi2-momraw-int} |
46 | 46 | \begin{split} |
47 | | -\mathrm{E}(X^{m}) &= \int_{0}^{\infty} x^m \frac{1}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \, x^{k/2-1} \, e^{-x/2} \, \mathrm{d}x \\ |
48 | | -&= \frac{1}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} x^{(k/2)+m-1} \, e^{-x/2} \, \mathrm{d}x \; . |
| 47 | +\mathrm{E}(X^{m}) &= \int_{0}^{\infty} x^m \frac{1}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \, x^{k/2-1} \, \exp \left[ -x/2 \right] \, \mathrm{d}x \\ |
| 48 | +&= \frac{1}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} x^{(k/2)+m-1} \, \exp \left[ -x/2 \right] \, \mathrm{d}x \; . |
49 | 49 | \end{split} |
50 | 50 | $$ |
51 | 51 |
|
52 | 52 | Now, we substitute $u = x/2$, such that $x = 2u$. As a result, we obtain: |
53 | 53 |
|
54 | 54 | $$ \label{eq:chi2-momraw-int-u} |
55 | 55 | \begin{split} |
56 | | -\mathrm{E}(X^{m}) &= \frac{1}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} 2^{(k/2)+m-1} \, u^{(k/2)+m-1} \, e^{-u} \, \mathrm{d}(2u) \\ |
57 | | -&= \frac{2^{(k/2)+m}}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} u^{(k/2)+m-1} \, e^{-u} \, \mathrm{d}u \\ |
58 | | -&= \frac{2^m}{\Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} u^{(k/2)+m-1} \, e^{-u} \, \mathrm{d}u \; . |
| 56 | +\mathrm{E}(X^{m}) &= \frac{1}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} 2^{(k/2)+m-1} \, u^{(k/2)+m-1} \, \exp[-u] \, \mathrm{d}(2u) \\ |
| 57 | +&= \frac{2^{(k/2)+m}}{2^{k/2} \Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} u^{(k/2)+m-1} \, \exp[-u] \, \mathrm{d}u \\ |
| 58 | +&= \frac{2^m}{\Gamma\left( \frac{k}{2} \right)} \int_{0}^{\infty} u^{(k/2)+m-1} \, \exp[-u] \, \mathrm{d}u \; . |
59 | 59 | \end{split} |
60 | 60 | $$ |
61 | 61 |
|
62 | 62 | With the definition of the gamma function as |
63 | 63 |
|
64 | 64 | $$ \label{eq:gam-fct} |
65 | | -\Gamma(x) = \int_{0}^{\infty} t^{x-1} \, e^{-t} \, \mathrm{d}t, \; z > 0 \; , |
| 65 | +\Gamma(x) = \int_{0}^{\infty} t^{x-1} \, e^{-t} \, \mathrm{d}t, \; x > 0 \; , |
66 | 66 | $$ |
67 | 67 |
|
68 | 68 | this leads to the desired result when $m > -k/2$. Observe that, if $m$ is a non-negative integer, then $m > -k/2$ is always true. Therefore, all [moments](/D/mom) of a [chi-squared distribution](/D/chi2) exist and the $m$-th raw moment is given by the equation above. |
0 commit comments