Skip to content

Commit 901c592

Browse files
authored
added 5 proofs
1 parent 7efcbbc commit 901c592

5 files changed

Lines changed: 357 additions & 0 deletions

File tree

P/bin-pgf.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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: 2022-10-11 09:25:00
9+
10+
title: "Probability-generating function of the binomial distribution"
11+
chapter: "Probability Distributions"
12+
section: "Univariate discrete distributions"
13+
topic: "Binomial distribution"
14+
theorem: "Probability-generating function"
15+
16+
sources:
17+
- authors: "ProofWiki"
18+
year: 2022
19+
title: "Probability Generating Function of Binomial Distribution"
20+
in: "ProofWiki"
21+
pages: "retrieved on 2022-10-11"
22+
url: "https://proofwiki.org/wiki/Probability_Generating_Function_of_Binomial_Distribution"
23+
24+
proof_id: "P363"
25+
shortcut: "bin-pgf"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** Let $X$ be a [random variable](/D/rvar) following a [binomial distribution](/D/bin):
31+
32+
$$ \label{eq:bin}
33+
X \sim \mathrm{Bin}(n,p) \; .
34+
$$
35+
36+
Then, the [probability-generating function](/D/pgf) of $X$ is
37+
38+
$$ \label{eq:bin-pgf}
39+
G_X(z) = (q + pz)^n
40+
$$
41+
42+
where $q = 1-p$.
43+
44+
45+
**Proof:** The [probability-generating function](/D/pgf) of $X$ is defined as
46+
47+
$$ \label{eq:pgf}
48+
G_X(z) = \sum_{x=0}^{\infty} f_X(x) \, z^x
49+
$$
50+
51+
With the [probability mass function of the binomial distribution](/P/bin-pmf)
52+
53+
$$ \label{eq:bin-pmf}
54+
f_X(x) = {n \choose x} \, p^x \, (1-p)^{n-x} \; ,
55+
$$
56+
57+
we obtain:
58+
59+
$$ \label{eq:pgf-zero-s1}
60+
\begin{split}
61+
G_X(z) &= \sum_{x=0}^{n} {n \choose x} \, p^x \, (1-p)^{n-x} \, z^x \\
62+
&= \sum_{x=0}^{n} {n \choose x} \, (pz)^x \, (1-p)^{n-x} \; .
63+
\end{split}
64+
$$
65+
66+
According to the binomial theorem
67+
68+
$$ \label{eq:bin-th}
69+
(x+y)^n = \sum_{k=0}^{n} {n \choose k} \, x^{n-k} \, y^k \; ,
70+
$$
71+
72+
the sum in equation \eqref{eq:pgf-zero-s1} equals
73+
74+
$$ \label{eq:pgf-zero-s2}
75+
G_X(z) = \left( (1-p) + (pz) \right)^n
76+
$$
77+
78+
which is equivalent to the result in \eqref{eq:bin-pgf}.

P/mean-prodsqr.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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: 2022-10-11 01:39:00
9+
10+
title: "Square of expectation of product is less than or equal to product of expectation of squares"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Expected value"
14+
theorem: "Squared expectation of product"
15+
16+
sources:
17+
- authors: "ProofWiki"
18+
year: 2022
19+
title: "Square of Expectation of Product is Less Than or Equal to Product of Expectation of Squares"
20+
in: "ProofWiki"
21+
pages: "retrieved on 2022-10-11"
22+
url: "https://proofwiki.org/wiki/Square_of_Expectation_of_Product_is_Less_Than_or_Equal_to_Product_of_Expectation_of_Squares"
23+
24+
proof_id: "P359"
25+
shortcut: "mean-prodsqr"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** Let $X$ and $Y$ be two [random variables](/D/rvar) with [expected values](/D/mean) $\mathrm{E}(X)$ and $\mathrm{E}(Y)$ and let $\mathrm{E}(XY)$ exist and be finite. Then, the square of the expectation of the product of $X$ and $Y$ is less than or equal to the product of the expectation of the squares of $X$ and $Y$:
31+
32+
$$ \label{eq:EXY2-EX2-EY2}
33+
\left[ \mathrm{E}(XY) \right]^2 \leq \mathrm{E}\left( X^2 \right) \mathrm{E}\left( Y^2 \right) \; .
34+
$$
35+
36+
37+
**Proof:** Note that $Y^2$ is a non-negative [random variable](/D/rvar) whose [expected value is also non-negative](/P/mean-nonneg):
38+
39+
$$ \label{eq:mean-Y2-nonneg}
40+
\mathrm{E}\left( Y^2 \right) \geq 0 \; .
41+
$$
42+
43+
1) First, consider the case that $\mathrm{E}\left( Y^2 \right) > 0$. Define a new random variable Z as
44+
45+
$$ \label{eq:Z}
46+
Z = X - Y \, \frac{\mathrm{E}(XY)}{\mathrm{E}\left( Y^2 \right)} \; .
47+
$$
48+
49+
Once again, because $Z^2$ is always non-negative, we have the expected value:
50+
51+
$$ \label{eq:mean-Z2-nonneg}
52+
\mathrm{E}\left( Z^2 \right) \geq 0 \; .
53+
$$
54+
55+
Thus, using the [linearity of the expected value](/P/mean-lin), we have
56+
57+
$$ \label{eq:mean-prodsqr-v1}
58+
\begin{split}
59+
0 &\leq \mathrm{E}\left( Z^2 \right) \\
60+
&\leq \mathrm{E}\left( \left( X - Y \, \frac{\mathrm{E}(XY)}{\mathrm{E}\left( Y^2 \right)} \right)^2 \right) \\
61+
&\leq \mathrm{E}\left( X^2 - 2 X Y \, \frac{\mathrm{E}(XY)}{\mathrm{E}\left( Y^2 \right)} + Y^2 \, \frac{\left[ \mathrm{E}(XY) \right]^2}{\left[ \mathrm{E}\left( Y^2 \right) \right]^2} \right) \\
62+
&\leq \mathrm{E}\left( X^2 \right) - 2 \, \mathrm{E}(XY) \, \frac{\mathrm{E}(XY)}{\mathrm{E}\left( Y^2 \right)} + \mathrm{E}\left( Y^2 \right) \, \frac{\left[ \mathrm{E}(XY) \right]^2}{\left[ \mathrm{E}\left( Y^2 \right) \right]^2} \\
63+
&\leq \mathrm{E}\left( X^2 \right) - 2 \, \frac{\left[ \mathrm{E}(XY) \right]^2}{\mathrm{E}\left( Y^2 \right)} + \frac{\left[ \mathrm{E}(XY) \right]^2}{\mathrm{E}\left( Y^2 \right)} \\
64+
&\leq \mathrm{E}\left( X^2 \right) - \frac{\left[ \mathrm{E}(XY) \right]^2}{\mathrm{E}\left( Y^2 \right)} \; , \\
65+
\end{split}
66+
$$
67+
68+
giving
69+
70+
$$ \label{eq:EXY2-EX2-EY2-qed-v1}
71+
\left[ \mathrm{E}(XY) \right]^2 \leq \mathrm{E}\left( X^2 \right) \mathrm{E}\left( Y^2 \right)
72+
$$
73+
74+
as required.
75+
76+
2) Next, consider the case that $\mathrm{E}\left( Y^2 \right) = 0$. In this case, $Y$ [must be a constant](/D/const) with [mean](/D/mean) $\mathrm{E}(Y) = 0$ and [variance](/D/var) $\mathrm{Var}(Y) = 0$, thus we have
77+
78+
$$ \label{eq:Pr-Y-0}
79+
\mathrm{Pr}(Y = 0) = 1 \; .
80+
$$
81+
82+
This implies
83+
84+
$$ \label{eq:Pr-XY-0}
85+
\mathrm{Pr}(XY = 0) = 1 \; ,
86+
$$
87+
88+
such that
89+
90+
$$ \label{eq:EXY}
91+
\mathrm{E}(XY) = 0 \; .
92+
$$
93+
94+
Thus, we can write
95+
96+
$$ \label{eq:mean-prodsqr-v2}
97+
0 = \left[ \mathrm{E}(XY) \right]^2 = \mathrm{E}\left( X^2 \right) \mathrm{E}\left( Y^2 \right) = 0 \; ,
98+
$$
99+
100+
giving
101+
102+
$$ \label{eq:EXY2-EX2-EY2-qed-v2}
103+
\left[ \mathrm{E}(XY) \right]^2 \leq \mathrm{E}\left( X^2 \right) \mathrm{E}\left( Y^2 \right)
104+
$$
105+
106+
as required.

P/pgf-mean.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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: 2022-10-11 02:01:00
9+
10+
title: "Probability-generating function is expectation of function of random variable"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Probability functions"
14+
theorem: "Probability-generating function in terms of expected value"
15+
16+
sources:
17+
- authors: "ProofWiki"
18+
year: 2022
19+
title: "Probability Generating Function as Expectation"
20+
in: "ProofWiki"
21+
pages: "retrieved on 2022-10-11"
22+
url: "https://proofwiki.org/wiki/Probability_Generating_Function_as_Expectation"
23+
24+
proof_id: "P360"
25+
shortcut: "pgf-mean"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** Let $X$ be a [discrete](/D/rvar-disc) [random variable](/D/rvar) whose set of possible values $\mathcal{X}$ is a subset of the natural numbers $\mathbb{N}$. Then, the [probability-generating function](/D/pgf) of $X$ can be expressed in terms of an [expected value](/D/mean) of a function of $X$
31+
32+
$$ \label{eq:pgf-mean}
33+
G_X(z) = \mathrm{E}\left[ z^X \right]
34+
$$
35+
36+
where $z \in \mathbb{C}$.
37+
38+
39+
**Proof:** The [law of the unconscious statistician](/P/mean-lotus) states that
40+
41+
$$ \label{eq:mean-lotus}
42+
\mathrm{E}[g(X)] = \sum_{x \in \mathcal{X}} g(x) f_X(x)
43+
$$
44+
45+
where $f_X(x)$ is the [probability mass function](/D/pmf) of $X$. Here, we have $g(X) = z^X$, such that
46+
47+
$$ \label{eq:E-zX-s1}
48+
\mathrm{E}\left[ z^X \right] = \sum_{x \in \mathcal{X}} z^x f_X(x) \; .
49+
$$
50+
51+
By the definition of $X$, this is equal to
52+
53+
$$ \label{eq:E-zX-s2}
54+
\mathrm{E}\left[ z^X \right] = \sum_{x=0}^{\infty} f_X(x) \, z^x \; .
55+
$$
56+
57+
The right-hand side is equal to the [probability-generating function](/D/pgf) of $X$:
58+
59+
$$ \label{eq:pgf-mean-qed}
60+
\mathrm{E}\left[ z^X \right] = G_X(z) \; .
61+
$$

P/pgf-one.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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: 2022-10-11 08:17:00
9+
10+
title: "Value of the probability-generating function for argument one"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Probability functions"
14+
theorem: "Probability-generating function of one"
15+
16+
sources:
17+
- authors: "ProofWiki"
18+
year: 2022
19+
title: "Probability Generating Function of One"
20+
in: "ProofWiki"
21+
pages: "retrieved on 2022-10-11"
22+
url: "https://proofwiki.org/wiki/Probability_Generating_Function_of_One"
23+
24+
proof_id: "P362"
25+
shortcut: "pgf-one"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** Let $X$ be a [random variable](/D/rvar) with [probability-generating function](/D/pgf) $G_X(z)$ and set of possible values $\mathcal{X}$. Then, the value of the probability-generating function at one is equal to one:
31+
32+
$$ \label{eq:pgf-one}
33+
G_X(1) = 1 \; .
34+
$$
35+
36+
37+
**Proof:** The [probability-generating function](/D/pgf) of $X$ is defined as
38+
39+
$$ \label{eq:pgf}
40+
G_X(z) = \sum_{x=0}^{\infty} f_X(x) \, z^x
41+
$$
42+
43+
where $f_X(x)$ is the [probability mass function](/D/pmf) of $X$. Setting $z = 1$, we obtain:
44+
45+
$$ \label{eq:pgf-zero-s1}
46+
\begin{split}
47+
G_X(1) &= \sum_{x=0}^{\infty} f_X(x) \cdot 1^x \\
48+
&= \sum_{x=0}^{\infty} f_X(x) \cdot 1 \\
49+
&= \sum_{x=0}^{\infty} f_X(x) \; .
50+
\end{split}
51+
$$
52+
53+
Because the [probability mass function](/D/pmf) sums up to one, this becomes:
54+
55+
$$ \label{eq:pgf-zero-s2}
56+
\begin{split}
57+
G_X(1) &= \sum_{x \in \mathcal{X}} f_X(x) \\
58+
&= 1 \; .
59+
\end{split}
60+
$$

P/pgf-zero.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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: 2022-10-11 08:06:00
9+
10+
title: "Value of the probability-generating function for argument zero"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Probability functions"
14+
theorem: "Probability-generating function of zero"
15+
16+
sources:
17+
- authors: "ProofWiki"
18+
year: 2022
19+
title: "Probability Generating Function of Zero"
20+
in: "ProofWiki"
21+
pages: "retrieved on 2022-10-11"
22+
url: "https://proofwiki.org/wiki/Probability_Generating_Function_of_Zero"
23+
24+
proof_id: "P361"
25+
shortcut: "pgf-zero"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** Let $X$ be a [random variable](/D/rvar) with [probability-generating function](/D/pgf) $G_X(z)$ and [probability mass function](/D/pmf) $f_X(x)$. Then, the value of the probability-generating function at zero is equal to the value of the probability mass function at zero:
31+
32+
$$ \label{eq:pgf-zero}
33+
G_X(0) = f_X(0) \; .
34+
$$
35+
36+
37+
**Proof:** The [probability-generating function](/D/pgf) of $X$ is defined as
38+
39+
$$ \label{eq:pgf}
40+
G_X(z) = \sum_{x=0}^{\infty} f_X(x) \, z^x
41+
$$
42+
43+
where $f_X(x)$ is the [probability mass function](/D/pmf) of $X$. Setting $z = 0$, we obtain:
44+
45+
$$ \label{eq:pgf-zero-qed}
46+
\begin{split}
47+
G_X(0) &= \sum_{x=0}^{\infty} f_X(x) \cdot 0^x \\
48+
&= f_X(0) + 0^1 \cdot f_X(1) + 0^2 \cdot f_X(2) + \ldots \\
49+
&= f_X(0) + 0 + 0 + \ldots \\
50+
&= f_X(0) \; .
51+
\end{split}
52+
$$

0 commit comments

Comments
 (0)