Skip to content

Commit 83f7775

Browse files
committed
replaced function notation
In all definitions and proofs on the "chi-squared distribution", equation parts like "e^x" are replaced by "\exp[x]" or "\exp \left[ x \right]" throughout.
1 parent 09498bb commit 83f7775

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

D/chi2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $$
4848
The [probability density function of the chi-squared distribution](/P/chi2-pdf) with $k$ degrees of freedom is
4949

5050
$$ \label{eq:chi2-pdf}
51-
\chi^{2}(x; k) = \frac{1}{2^{k/2}\Gamma (k/2)} \, x^{k/2-1} \, e^{-x/2}
51+
\chi^{2}(x; k) = \frac{1}{2^{k/2} \, \Gamma (k/2)} \, x^{k/2-1} \, \exp \left[ -x/2 \right]
5252
$$
5353

54-
where $k > 0$ and the density is zero if $x \leq 0$.
54+
where $k > 0$ and the density is zero, if $x \leq 0$.

P/chi2-gam.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ username: "kjpetrykowski"
2121
---
2222

2323

24-
**Theorem:** The [chi-squared distribution](/D/chi2) with $k$ degrees of freedom is a special case of the [gamma distribution](/D/gam) with shape $\frac{k}{2}$ and rate $\frac{1}{2}$:
24+
**Theorem:** The [chi-squared distribution](/D/chi2) with $k$ degrees of freedom is a special case of the [gamma distribution](/D/gam) with shape $k/2$ and rate $1/2$:
2525

2626
$$ \label{eq:chi2-gam}
2727
X \sim \mathrm{Gam}\left( \frac{k}{2}, \frac{1}{2} \right) \quad \Rightarrow \quad X \sim \chi^{2}(k) \; .
@@ -31,13 +31,13 @@ $$
3131
**Proof:** The [probability density function of the gamma distribution](/P/gam-pdf) for $x > 0$, where $\alpha$ is the shape parameter and $\beta$ is the rate parameter, is as follows:
3232

3333
$$ \label{eq:gam-pdf}
34-
\mathrm{Gam}(x; \alpha, \beta) = \frac{\beta^{\alpha}}{\Gamma(\alpha)} \, x^{\alpha-1} \, e^{-\beta x}
34+
\mathrm{Gam}(x; \alpha, \beta) = \frac{\beta^{\alpha}}{\Gamma(\alpha)} \, x^{\alpha-1} \, \exp \left[ -\beta x \right]
3535
$$
3636

3737
If we let $\alpha = k/2$ and $\beta = 1/2$, we obtain
3838

3939
$$ \label{eq:gam-pdf-chi2}
40-
\mathrm{Gam}\left(x; \frac{k}{2}, \frac{1}{2}\right) = \frac{x^{k/2-1} \, e^{-x/2}}{\Gamma(k/2) 2^{k/2}} = \frac{1}{2^{k/2} \Gamma(k/2)} \, x^{k/2-1} \, e^{-x/2}
40+
\mathrm{Gam}\left(x; \frac{k}{2}, \frac{1}{2}\right) = \frac{x^{k/2-1} \, \exp \left[ -x/2 \right]}{\Gamma(k/2) \, 2^{k/2}} = \frac{1}{2^{k/2} \, \Gamma(k/2)} \, x^{k/2-1} \, \exp \left[ -x/2 \right]
4141
$$
4242

4343
which is equivalent to the [probability density function of the chi-squared distribution](/P/chi2-pdf).

P/chi2-momraw.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,33 @@ $$
3636
Then, if $m > -k/2$, the [raw moment](/D/mom-raw) $\mathrm{E}(X^{m})$ exists and is equal to:
3737

3838
$$ \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)} \; .
4040
$$
4141

4242

4343
**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:
4444

4545
$$ \label{eq:chi2-momraw-int}
4646
\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 \; .
4949
\end{split}
5050
$$
5151

5252
Now, we substitute $u = x/2$, such that $x = 2u$. As a result, we obtain:
5353

5454
$$ \label{eq:chi2-momraw-int-u}
5555
\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 \; .
5959
\end{split}
6060
$$
6161

6262
With the definition of the gamma function as
6363

6464
$$ \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 \; ,
6666
$$
6767

6868
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.

P/chi2-pdf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $$
4242
Then, the [probability density function](/D/pdf) of $Y$ is
4343

4444
$$ \label{eq:chi2-pdf}
45-
f_Y(y) = \frac{1}{2^{k/2} \, \Gamma (k/2)} \, y^{k/2-1} \, e^{-y/2} \; .
45+
f_Y(y) = \frac{1}{2^{k/2} \, \Gamma (k/2)} \, y^{k/2-1} \, \exp \left[ -y/2 \right] \; .
4646
$$
4747

4848

@@ -112,5 +112,5 @@ $$
112112
From this, we get the final result in \eqref{eq:chi2-pdf}:
113113

114114
$$ \label{eq:y-cdf-s5}
115-
f_Y(y) = \frac{1}{2^{k/2} \, \Gamma (k/2)} \, y^{k/2-1} \, e^{-y/2} \; .
116-
$$
115+
f_Y(y) = \frac{1}{2^{k/2} \, \Gamma (k/2)} \, y^{k/2-1} \, \exp \left[ -y/2 \right] \; .
116+
$$

0 commit comments

Comments
 (0)