Skip to content

Commit 99c4b8d

Browse files
authored
added 3 proofs
1 parent 4f96182 commit 99c4b8d

3 files changed

Lines changed: 351 additions & 0 deletions

File tree

P/beta-mgf.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2020-11-25 06:55:00
9+
10+
title: "Moment-generating function of the beta distribution"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Beta distribution"
14+
theorem: "Moment-generating function"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2020
19+
title: "Beta distribution"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2020-11-25"
22+
url: "https://en.wikipedia.org/wiki/Beta_distribution#Moment_generating_function"
23+
- authors: "Wikipedia"
24+
year: 2020
25+
title: "Confluent hypergeometric function"
26+
in: "Wikipedia, the free encyclopedia"
27+
pages: "retrieved on 2020-11-25"
28+
url: "https://en.wikipedia.org/wiki/Confluent_hypergeometric_function#Kummer's_equation"
29+
30+
proof_id: "P198"
31+
shortcut: "beta-mgf"
32+
username: "JoramSoch"
33+
---
34+
35+
36+
**Theorem:** Let $X$ be a positive [random variable](/D/rvar) following a [beta distribution](/D/gam):
37+
38+
$$ \label{eq:beta}
39+
X \sim \mathrm{Bet}(\alpha, \beta) \; .
40+
$$
41+
42+
Then, the [moment-generating function](/D/mgf) of $X$ is
43+
44+
$$ \label{eq:beta-mgf}
45+
M_X(t) = 1 + \sum_{n=1}^{\infty} \left( \prod_{m=0}^{n-1} \frac{\alpha + m}{\alpha + \beta + m} \right) \frac{t^n}{n!} \; .
46+
$$
47+
48+
49+
**Proof:** The [probability density function of the beta distribution](/P/beta-pdf) is
50+
51+
$$ \label{eq:beta-pdf}
52+
f_X(x) = \frac{1}{\mathrm{B}(\alpha, \beta)} \, x^{\alpha-1} \, (1-x)^{\beta-1}
53+
$$
54+
55+
and the [moment-generating function](/D/mgf) is defined as
56+
57+
$$ \label{eq:mgf-var}
58+
M_X(t) = \mathrm{E} \left[ e^{tX} \right] \; .
59+
$$
60+
61+
Using the [expected value for continuous random variables](/D/mean), the moment-generating function of $X$ therefore is
62+
63+
$$ \label{eq:beta-mgf-s1}
64+
\begin{split}
65+
M_X(t) &= \int_{0}^{1} \exp[tx] \cdot \frac{1}{\mathrm{B}(\alpha, \beta)} \, x^{\alpha-1} \, (1-x)^{\beta-1} \, \mathrm{d}x \\
66+
&= \frac{1}{\mathrm{B}(\alpha, \beta)} \int_{0}^{1} e^{tx} \, x^{\alpha-1} \, (1-x)^{\beta-1} \, \mathrm{d}x \; .
67+
\end{split}
68+
$$
69+
70+
With the relationship between beta function and gamma function
71+
72+
$$ \label{eq:beta-gam-fct}
73+
\mathrm{B}(\alpha, \beta) = \frac{\Gamma(\alpha) \, \Gamma(\beta)}{\Gamma(\alpha+\beta)}
74+
$$
75+
76+
and the integral representation of the confluent hypergeometric function (Kummer's function of the first kind)
77+
78+
$$ \label{eq:con-hyp-geo-fct-int}
79+
{}_1 F_1(a,b,z) = \frac{\Gamma(b)}{\Gamma(a) \, \Gamma(b-a)} \int_{0}^{1} e^{zu} \, u^{a-1} \, (1-u)^{(b-a)-1} \, \mathrm{d}u \; ,
80+
$$
81+
82+
the moment-generating function can be written as
83+
84+
$$ \label{eq:beta-mgf-s2}
85+
M_X(t) = {}_1 F_1(\alpha,\alpha+\beta,t) \; .
86+
$$
87+
88+
Note that the series equation for the confluent hypergeometric function (Kummer's function of the first kind) is
89+
90+
$$ \label{eq:con-hyp-geo-fct-ser}
91+
{}_1 F_1(a,b,z) = \sum_{n=0}^{\infty} \frac{a^{\overline{n}}}{b^{\overline{n}}} \, \frac{z^n}{n!}
92+
$$
93+
94+
where $m^{\overline{n}}$ is the rising factorial
95+
96+
$$ \label{eq:fact-rise}
97+
m^{\overline{n}} = \prod_{i=0}^{n-1} (m+i) \; ,
98+
$$
99+
100+
so that the moment-generating function can be written as
101+
102+
$$ \label{eq:beta-mgf-s3}
103+
M_X(t) = \sum_{n=0}^{\infty} \frac{\alpha^{\overline{n}}}{(\alpha+\beta)^{\overline{n}}} \, \frac{t^n}{n!} \; .
104+
$$
105+
106+
Applying the rising factorial equation \eqref{eq:fact-rise} and using $m^{\overline{0}} = x^0 = 0! = 1$, we finally have:
107+
108+
$$ \label{eq:beta-mgf-s4}
109+
M_X(t) = 1 + \sum_{n=1}^{\infty} \left( \prod_{m=0}^{n-1} \frac{\alpha + m}{\alpha + \beta + m} \right) \frac{t^n}{n!} \; .
110+
$$

P/chi2-pdf.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2020-11-25 05:56:00
9+
10+
title: "Probability density function of the chi-square distribution"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Chi-square distribution"
14+
theorem: "Probability density function"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2020
19+
title: "Proofs related to chi-squared distribution"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2020-11-25"
22+
url: "https://en.wikipedia.org/wiki/Proofs_related_to_chi-squared_distribution#Derivation_of_the_pdf_for_k_degrees_of_freedom"
23+
- authors: "Wikipedia"
24+
year: 2020
25+
title: "n-sphere"
26+
in: "Wikipedia, the free encyclopedia"
27+
pages: "retrieved on 2020-11-25"
28+
url: "https://en.wikipedia.org/wiki/N-sphere#Volume_and_surface_area"
29+
30+
proof_id: "P197"
31+
shortcut: "chi2-pdf"
32+
username: "JoramSoch"
33+
---
34+
35+
36+
**Theorem:** Let $Y$ be a [random variable](/D/rvar) following a [chi-square distribution](/D/chi2):
37+
38+
$$ \label{eq:chi2}
39+
Y \sim \chi^{2}(k) \; .
40+
$$
41+
42+
Then, the [probability density function](/D/pdf) of $X$ is
43+
44+
$$ \label{eq:chi2-pdf}
45+
f_Y(y) = \frac{1}{2^{k/2} \, \Gamma (k/2)} \, y^{k/2-1} \, e^{-y/2} \; .
46+
$$
47+
48+
49+
**Proof:** A [chi-square-distributed random variable](/D/chi2) with $k$ degrees of freedom is defined as the sum of $k$ squared [standard normal random variables](/D/snorm):
50+
51+
$$ \label{eq:chi2-def}
52+
X_1, \ldots, X_k \sim \mathcal{N}(0,1) \quad \Rightarrow \quad Y = \sum_{i=1}^{k} X_i^2 \sim \chi^{2}(k) \; .
53+
$$
54+
55+
Let $x_1, \ldots, x_k$ be values of $X_1, \ldots, X_k$ and consider $x = \left( x_1, \ldots, x_k \right)$ to be a point in $k$-dimensional space. Define
56+
57+
$$ \label{eq:y-x}
58+
y = \sum_{i=1}^{k} x_i^2
59+
$$
60+
61+
and let $f_Y(y)$ and $F_Y(y)$ be the [probability density function](/D/pdf) and [cumulative distribution function](/D/cdf) of $Y$. Because [the PDF is the first derivative of the CDF](/P/pdf-cdf), we can write:
62+
63+
$$ \label{eq:y-pdf-s0}
64+
F_Y(y) = \frac{F_Y(y)}{\mathrm{d}y} \, \mathrm{d}y = f_Y(y) \, \mathrm{d}y \; .
65+
$$
66+
67+
Then, the [cumulative distribution function](/D/cdf) of $Y$ can be expressed as
68+
69+
$$ \label{eq:y-cdf-s1}
70+
f_Y(y) \, \mathrm{d}y = \int_{V} \prod_{i=1}^{k} \left( \mathcal{N}(x_i; 0, 1) \, \mathrm{d}x_i \right)
71+
$$
72+
73+
where $\mathcal{N}(x_i; 0, 1)$ is the [probability density function](/D/pdf) of the [standard normal distribution](/D/snorm) and $V$ is the elemental shell volume at $y(x)$, which is proportional to the $(k-1)$-dimensional surface in $k$-space for which equation \eqref{eq:y-x} is fulfilled. Using the [probability density function of the normal distribution](/D/norm-pdf), equation \eqref{eq:y-cdf-s1} can be developed as follows:
74+
75+
$$ \label{eq:y-cdf-s2}
76+
\begin{split}
77+
f_Y(y) \, \mathrm{d}y &= \int_{V} \prod_{i=1}^{k} \left( \frac{1}{\sqrt{2 \pi}} \cdot \exp \left[ -\frac{1}{2} x_i^2 \right] \, \mathrm{d}x_i \right) \\
78+
&= \int_{V} \frac{\exp \left[ -\frac{1}{2} \left( x_1^2 + \ldots + x_k^2 \right) \right]}{(2 \pi)^{k/2}} \; \mathrm{d}x_1 \, \ldots \, \mathrm{d}x_k \\
79+
&= \frac{1}{(2 \pi)^{k/2}} \int_{V} \exp \left[ -\frac{y}{2} \right] \; \mathrm{d}x_1 \, \ldots \, \mathrm{d}x_k \; .
80+
\end{split}
81+
$$
82+
83+
Because $y$ is constant within the set $V$, it can be moved out of the integral:
84+
85+
$$ \label{eq:y-cdf-s3}
86+
f_Y(y) \, \mathrm{d}y = \frac{\exp \left[ -y/2 \right]}{(2 \pi)^{k/2}} \int_{V} \; \mathrm{d}x_1 \, \ldots \, \mathrm{d}x_k \; .
87+
$$
88+
89+
Now, the integral is simply the surface area of the $(k-1)$-dimensional sphere with radius $r = \sqrt{y}$, which is
90+
91+
$$ \label{eq:A}
92+
A = 2 r^{k-1} \, \frac{\pi^{k/2}}{\Gamma(k/2)} \; ,
93+
$$
94+
95+
times the infinitesimal thickness of the sphere, which is
96+
97+
$$ \label{eq:dR}
98+
\frac{\mathrm{d}r}{\mathrm{d}y} = \frac{1}{2} y^{-1/2} \quad \Leftrightarrow \quad \mathrm{d}r = \frac{\mathrm{d}y}{2 y^{1/2}} \; .
99+
$$
100+
101+
Substituting \eqref{eq:A} and \eqref{eq:dR} into \eqref{eq:y-cdf-s3}, we have:
102+
103+
$$ \label{eq:y-cdf-s4}
104+
\begin{split}
105+
f_Y(y) \, \mathrm{d}y &= \frac{\exp \left[ -y/2 \right]}{(2 \pi)^{k/2}} \cdot A \, \mathrm{d}r \\
106+
&= \frac{\exp \left[ -y/2 \right]}{(2 \pi)^{k/2}} \cdot 2 r^{k-1} \, \frac{\pi^{k/2}}{\Gamma(k/2)} \cdot \frac{\mathrm{d}y}{2 y^{1/2}} \\
107+
&= \frac{1}{2^{k/2} \, \Gamma(k/2)} \cdot \frac{2 \sqrt{y}^{k-1}}{2 \sqrt{y}} \cdot \exp \left[ -y/2 \right] \, \mathrm{d}y \\
108+
&= \frac{1}{2^{k/2} \, \Gamma(k/2)} \cdot y^{\frac{k}{2}-1} \cdot \exp \left[ -\frac{y}{2} \right] \, \mathrm{d}y \; .
109+
\end{split}
110+
$$
111+
112+
From this, we get the final result in \eqref{eq:chi2-pdf}:
113+
114+
$$ \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+
$$

P/norm-gi.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2020-11-25 04:47:00
9+
10+
title: "Gaussian integral"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Normal distribution"
14+
theorem: "Gaussian integral"
15+
16+
sources:
17+
- authors: "ProofWiki"
18+
year: 2020
19+
title: "Gaussian Integral"
20+
in: "ProofWiki"
21+
pages: "retrieved on 2020-11-25"
22+
url: "https://proofwiki.org/wiki/Gaussian_Integral"
23+
- authors: "ProofWiki"
24+
year: 2020
25+
title: "Integral to Infinity of Exponential of -t^2"
26+
in: "ProofWiki"
27+
pages: "retrieved on 2020-11-25"
28+
url: "https://proofwiki.org/wiki/Integral_to_Infinity_of_Exponential_of_-t%5E2"
29+
30+
proof_id: "P196"
31+
shortcut: "norm-gi"
32+
username: "JoramSoch"
33+
---
34+
35+
36+
**Theorem:** The definite integral of $\mathrm{exp}\left[ -x^2 \right]$ from $-\infty$ to $+\infty$ is equal to the square root of $\pi$:
37+
38+
$$ \label{eq:norm-gi}
39+
\int_{-\infty}^{+\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x = \sqrt{\pi} \; .
40+
$$
41+
42+
43+
**Proof:** Let
44+
45+
$$ \label{eq:I}
46+
I = \int_{0}^{\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x
47+
$$
48+
49+
and
50+
51+
$$ \label{eq:IP}
52+
I_P = \int_{0}^{P} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x = \int_{0}^{P} \mathrm{exp}\left[ -y^2 \right] \, \mathrm{d}y \; .
53+
$$
54+
55+
Then, we have
56+
57+
$$ \label{eq:IP-I}
58+
\lim\limits_{P \rightarrow \infty} I_P = I
59+
$$
60+
61+
and
62+
63+
$$ \label{eq:IP2-I2}
64+
\lim\limits_{P \rightarrow \infty} I_P^2 = I^2 \; .
65+
$$
66+
67+
Moreover, we can write
68+
69+
$$ \label{eq:IP2}
70+
\begin{split}
71+
I_P^2 &\overset{\eqref{eq:IP}}{=} \left( \int_{0}^{P} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x \right) \left( \int_{0}^{P} \mathrm{exp}\left[ -y^2 \right] \, \mathrm{d}y \right) \\
72+
&= \int_{0}^{P} \int_{0}^{P} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y \\
73+
&= \iint_{S_P} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y
74+
\end{split}
75+
$$
76+
77+
where $S_P$ is the square with corners $(0,0)$, $(0,P)$, $(P,P)$ and $(P,0)$. For this integral, we can write down the following inequality
78+
79+
$$ \label{eq:IP2-ineq}
80+
\iint_{C_1} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y \leq I_P^2 \leq \iint_{C_2} \mathrm{exp}\left[ - \left( x^2 + y^2 \right) \right] \, \mathrm{d}x \, \mathrm{d}y
81+
$$
82+
83+
where $C_1$ and $C_2$ are the regions in the first quadrant bounded by circles with center at $(0,0)$ and going through the points $(0,P)$ and $(P,P)$, respectively. The radii of these two circles are $r_1 = \sqrt{P^2} = P$ and $r_2 = \sqrt{2 P^2} = P \sqrt{2}$, such that we can rewrite equation \eqref{eq:IP2-ineq} using polar coordinates as
84+
85+
$$ \label{eq:IP2-ineq-PC}
86+
\int_{0}^{\frac{\pi}{2}} \int_{0}^{r_1} \mathrm{exp}\left[ -r^2 \right] \, r \, \mathrm{d}r \, \mathrm{d}\theta \leq I_P^2 \leq \int_{0}^{\frac{\pi}{2}} \int_{0}^{r_2} \mathrm{exp}\left[ -r^2 \right] \, r \, \mathrm{d}r \, \mathrm{d}\theta \; .
87+
$$
88+
89+
Solving the definite integrals yields:
90+
91+
$$ \label{eq:IP2-ineq-PC-int}
92+
\begin{split}
93+
\int_{0}^{\frac{\pi}{2}} \int_{0}^{r_1} \mathrm{exp}\left[ -r^2 \right] r \, \mathrm{d}r \, \mathrm{d}\theta &\leq I_P^2 \leq \int_{0}^{\frac{\pi}{2}} \int_{0}^{r_2} \mathrm{exp}\left[ -r^2 \right] r \, \mathrm{d}r \, \mathrm{d}\theta \\
94+
\int_{0}^{\frac{\pi}{2}} \left[ -\frac{1}{2} \mathrm{exp}\left[ -r^2 \right] \right]_{0}^{r_1} \, \mathrm{d}\theta &\leq I_P^2 \leq \int_{0}^{\frac{\pi}{2}} \left[ -\frac{1}{2} \mathrm{exp}\left[ -r^2 \right] \right]_{0}^{r_2} \, \mathrm{d}\theta \\
95+
-\frac{1}{2} \int_{0}^{\frac{\pi}{2}} \left( \mathrm{exp}\left[ -r_1^2 \right] - 1 \right) \, \mathrm{d}\theta &\leq I_P^2 \leq -\frac{1}{2} \int_{0}^{\frac{\pi}{2}} \left( \mathrm{exp}\left[ -r_2^2 \right] - 1 \right) \, \mathrm{d}\theta \\
96+
-\frac{1}{2} \left[ \left( \mathrm{exp}\left[ -r_1^2 \right] - 1 \right) \theta \right]_{0}^{\frac{\pi}{2}} &\leq I_P^2 \leq -\frac{1}{2} \left[ \left( \mathrm{exp}\left[ -r_2^2 \right] - 1 \right) \theta \right]_{0}^{\frac{\pi}{2}} \\
97+
\frac{1}{2} \left( 1 - \mathrm{exp}\left[ -r_1^2 \right] \right) \frac{\pi}{2} &\leq I_P^2 \leq \frac{1}{2} \left( 1 - \mathrm{exp}\left[ -r_2^2 \right] \right) \frac{\pi}{2} \\
98+
\frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -P^2 \right] \right) &\leq I_P^2 \leq \frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -2 P^2 \right] \right)
99+
\end{split}
100+
$$
101+
102+
Calculating the limit for $P \rightarrow \infty$, we obtain
103+
104+
$$ \label{eq:IP2-ineq-PC-int-lim}
105+
\begin{split}
106+
\lim\limits_{P \rightarrow \infty} \frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -P^2 \right] \right) \leq \lim\limits_{P \rightarrow \infty} I_P^2 &\leq \lim\limits_{P \rightarrow \infty} \frac{\pi}{4} \left( 1 - \mathrm{exp}\left[ -2 P^2 \right] \right) \\
107+
\frac{\pi}{4} \leq I^2 &\leq \frac{\pi}{4} \; ,
108+
\end{split}
109+
$$
110+
111+
such that we have a preliminary result for $I$:
112+
113+
$$ \label{eq:I-qed}
114+
I^2 = \frac{\pi}{4} \quad \Rightarrow \quad I = \frac{\sqrt{\pi}}{2} \; .
115+
$$
116+
117+
Because the integrand in \eqref{eq:norm-gi} is an even function, we can calculate the final result as follows:
118+
119+
$$ \label{eq:norm-gi-qed}
120+
\begin{split}
121+
\int_{-\infty}^{+\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x &= 2 \int_{0}^{\infty} \mathrm{exp}\left[ -x^2 \right] \, \mathrm{d}x \\
122+
&\overset{\eqref{eq:I-qed}}{=} 2 \, \frac{\sqrt{\pi}}{2} \\
123+
&= \sqrt{\pi} \; .
124+
\end{split}
125+
$$

0 commit comments

Comments
 (0)