Skip to content

Commit dabbf2e

Browse files
authored
corrected 2 proofs
1 parent 7076182 commit dabbf2e

2 files changed

Lines changed: 71 additions & 17 deletions

File tree

P/gam-sgam.md

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,53 @@ Y = b X \sim \mathrm{Gam}(a,1) \; .
3434
$$
3535

3636

37-
**Proof:** Rearranging to get $X$ in terms of $Y$, we have
37+
**Proof:** Note that $Y$ is a function of $X$
38+
39+
$$ \label{eq:Y-X}
40+
Y = g(X) = b X
41+
$$
42+
43+
with the inverse function
3844

3945
$$ \label{eq:X-Y}
40-
X = \frac{1}{b} Y \; .
46+
X = g^{-1}(Y) = \frac{1}{b} Y \; .
47+
$$
48+
49+
Because $b$ is positive, $g(X)$ is strictly increasing and we can calculate the [cumulative distribution function of a strictly increasing function](/P/cdf-sifct) as
50+
51+
$$ \label{eq:cdf-sifct}
52+
F_Y(y) = \left\{
53+
\begin{array}{rl}
54+
0 \; , & \text{if} \; y < \mathrm{min}(\mathcal{Y}) \\
55+
F_X(g^{-1}(y)) \; , & \text{if} \; y \in \mathcal{Y} \\
56+
1 \; , & \text{if} \; y > \mathrm{max}(\mathcal{Y}) \; .
57+
\end{array}
58+
\right.
4159
$$
4260

4361
The [cumulative distribution function of the gamma-distributed](/P/gam-cdf) $X$ is
4462

4563
$$ \label{eq:gam-cdf}
46-
F_X(t) = \int_{-\infty}^{t} \frac{b^a}{\Gamma(a)} x^{a-1} \exp[-b x] \, \mathrm{d}x \; .
64+
F_X(x) = \int_{-\infty}^{x} \frac{b^a}{\Gamma(a)} t^{a-1} \exp[-b t] \, \mathrm{d}t \; .
4765
$$
4866

49-
Substituting \eqref{eq:X-Y} into \eqref{eq:gam-cdf}, we obtain
67+
Applying \eqref{eq:cdf-sifct} to \eqref{eq:gam-cdf}, we have:
5068

51-
$$ \label{eq:sgam-cdf}
69+
\begin{equation} \label{eq:Y-cdf-s1}
5270
\begin{split}
53-
F_Z(t) &= \int_{-\infty}^{t} \frac{b^a}{\Gamma(a)} \left(\frac{1}{b} y\right)^{a-1} \exp\left[-b \left(\frac{1}{b} y\right)\right] \, \mathrm{d}\left(\frac{1}{b} y\right) \\
54-
&= \int_{-\infty}^{t} \frac{b^a}{b} \left(\frac{1}{b}\right)^{a-1} \cdot \frac{1}{\Gamma(a)} y^{a-1} \exp[-y] \, \mathrm{d}y \\
55-
&= \int_{-\infty}^{t} \frac{1}{\Gamma(a)} y^{a-1} \exp[-y] \, \mathrm{d}y
71+
F_Y(y) &\overset{\eqref{eq:cdf-sifct}}{=} F_X(g^{-1}(y)) \\
72+
&\overset{\eqref{eq:gam-cdf}}{=} \int_{-\infty}^{y/b} \frac{b^a}{\Gamma(a)} t^{a-1} \exp[-b t] \, \mathrm{d}t \; .
5673
\end{split}
57-
$$
74+
\end{equation}
75+
76+
Substituting $s = b t$, such that $t = s/b$, we obtain
77+
78+
\begin{equation} \label{eq:Z-cdf-s2}
79+
\begin{split}
80+
F_Y(y) &= \int_{-b \infty}^{b (y/b)} \frac{b^a}{\Gamma(a)} \left(\frac{s}{b}\right)^{a-1} \exp\left[-b \left(\frac{s}{b}\right)\right] \, \mathrm{d}\left(\frac{s}{b}\right) \\
81+
&= \int_{-\infty}^{y} \frac{b^a}{\Gamma(a)} \, \frac{1}{b^{a-1} \, b} \, s^{a-1} \exp[-s] \, \mathrm{d}s \\
82+
&= \int_{-\infty}^{y} \frac{1}{\Gamma(a)} s^{a-1} \exp[-s] \, \mathrm{d}s
83+
\end{split}
84+
\end{equation}
5885

5986
which is the [cumulative distribution function](/D/cdf) of the [standard gamma distribution](/D/sgam).

P/norm-snorm.md

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,52 @@ Z = \frac{X-\mu}{\sigma} \sim \mathcal{N}(0, 1) \; .
3434
$$
3535

3636

37-
**Proof:** Rearranging to get $X$ in terms of $Z$, we have
37+
**Proof:** Note that $Z$ is a function of $X$
38+
39+
$$ \label{eq:Z-X}
40+
Z = g(X) = \frac{X-\mu}{\sigma}
41+
$$
42+
43+
with the inverse function
3844

3945
$$ \label{eq:X-Z}
40-
X = \sigma Z + \mu \; .
46+
X = g^{-1}(Z) = \sigma Z + \mu \; .
47+
$$
48+
49+
Because $\sigma$ is positive, $g(X)$ is strictly increasing and we can calculate the [cumulative distribution function of a strictly increasing function](/P/cdf-sifct) as
50+
51+
$$ \label{eq:cdf-sifct}
52+
F_Y(y) = \left\{
53+
\begin{array}{rl}
54+
0 \; , & \text{if} \; y < \mathrm{min}(\mathcal{Y}) \\
55+
F_X(g^{-1}(y)) \; , & \text{if} \; y \in \mathcal{Y} \\
56+
1 \; , & \text{if} \; y > \mathrm{max}(\mathcal{Y}) \; .
57+
\end{array}
58+
\right.
4159
$$
4260

4361
The [cumulative distribution function of the normally distributed](/P/norm-cdf) $X$ is
4462

4563
$$ \label{eq:norm-cdf}
46-
F_X(t) = \int_{-\infty}^{t} \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{x-\mu}{\sigma} \right)^2 \right] \, \mathrm{d}x \; .
64+
F_X(x) = \int_{-\infty}^{x} \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{t-\mu}{\sigma} \right)^2 \right] \, \mathrm{d}t \; .
65+
$$
66+
67+
Applying \eqref{eq:cdf-sifct} to \eqref{eq:norm-cdf}, we have:
68+
69+
$$ \label{eq:Z-cdf-s1}
70+
\begin{split}
71+
F_Z(z) &\overset{\eqref{eq:cdf-sifct}}{=} F_X(g^{-1}(z)) \\
72+
&\overset{\eqref{eq:norm-cdf}}{=} \int_{-\infty}^{\sigma z + \mu} \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{t-\mu}{\sigma} \right)^2 \right] \, \mathrm{d}t \; .
73+
\end{split}
4774
$$
4875

49-
Substituting \eqref{eq:X-Z} into \eqref{eq:norm-cdf}, we obtain
76+
Substituting $s = (t - \mu)/\sigma$, such that $t = \sigma s + \mu$, we obtain
5077

51-
$$ \label{eq:snorm-cdf}
78+
$$ \label{eq:Z-cdf-s2}
5279
\begin{split}
53-
F_Z(t) &= \int_{-\infty}^{t} \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{(\sigma z + \mu)-\mu}{\sigma} \right)^2 \right] \, \mathrm{d}(\sigma z + \mu) \\
54-
&= \int_{-\infty}^{t} \frac{\sigma}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} z^2 \right] \, \mathrm{d}z \\
55-
&= \int_{-\infty}^{t} \frac{1}{\sqrt{2 \pi}} \cdot \exp \left[ -\frac{1}{2} z^2 \right] \, \mathrm{d}z
80+
F_Z(z) &= \int_{(-\infty - \mu)/\sigma}^{([\sigma z + \mu] - \mu)/\sigma} \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{(\sigma s + \mu)-\mu}{\sigma} \right)^2 \right] \, \mathrm{d}(\sigma s + \mu) \\
81+
&= \int_{-\infty}^{z} \frac{\sigma}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} s^2 \right] \, \mathrm{d}s \\
82+
&= \int_{-\infty}^{z} \frac{1}{\sqrt{2 \pi}} \cdot \exp \left[ -\frac{1}{2} s^2 \right] \, \mathrm{d}s
5683
\end{split}
5784
$$
5885

0 commit comments

Comments
 (0)