Skip to content

Commit 43af43a

Browse files
committed
integrated new content
Definition "chi2" and proofs "chi2-gam"/"chi2-mom" were integrated into the archive.
1 parent b245718 commit 43af43a

5 files changed

Lines changed: 113 additions & 105 deletions

File tree

D/chi-2.md renamed to D/chi2.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,39 @@ definition: "Definition"
1616
sources:
1717
- authors: "Wikipedia"
1818
year: 2020
19-
title: "Exponential distribution"
19+
title: "Chi-square distribution"
2020
in: "Wikipedia, the free encyclopedia"
2121
pages: "retrieved on 2020-10-12"
2222
url: "https://en.wikipedia.org/wiki/Chi-square_distribution#Definitions"
23-
2423
- authors: "Robert V. Hogg, Joseph W. McKean, Allen T. Craig"
2524
year: 2018
2625
title: "The χ2-Distribution"
2726
in: "Introduction to Mathematical Statistics"
2827
pages: "Pearson, Boston, 2019, p. 178, eq. 3.3.7"
2928
url: "https://www.pearson.com/store/p/introduction-to-mathematical-statistics/P100000843744"
3029

31-
32-
3330
def_id: "D100"
34-
shortcut: "chi-2"
31+
shortcut: "chi2"
3532
username: "kjpetrykowski"
3633
---
3734

3835

39-
**Definition:** Let $X_{1}, ..., X_{k}$ be [independent random variables](/D/rvar), where each of them is following standard normal distribution ($X_{i} \sim \mathcal N(0,1)$). Then, the sum of their squares,
40-
$Y\ =\sum _{i=1}^{k}X_{i}^{2},$ follows chi-square distribution with $k$ degrees of freedom
41-
$$\label{eq:chi-2} Y\ \sim \ \chi ^{2}(k)\ ; , $$
42-
where $k > 0$.
43-
$
36+
**Definition:** Let $X_{1}, ..., X_{k}$ be [independent](/D/ind) [random variables](/D/rvar) where each of them is following a [standard normal distribution](/D/snorm):
37+
38+
$$ \label{eq:snorm}
39+
X_{i} \sim \mathcal{N}(0,1) \; .
40+
$$.
4441
45-
**Definition:** Let $Y$ be a random continous variable. Then, $Y$ is said to follow a chi-square distribution with $k$ number of degress of freedom
42+
Then, the sum of their squares follows a chi-square distribution with $k$ degrees of freedom:
4643
47-
$$\label{eq:chi-2} Y\ \sim \ \chi ^{2}(k)\ ; ,$$
44+
$$\label{eq:chi2}
45+
Y = \sum_{i=1}^{k} X_{i}^{2} \sim \chi^{2}(k) \quad \text{where} \quad k > 0 \; .
46+
$$
4847

49-
if and only if its probability density function is given by
48+
A [random variables](/D/rvar) $Y$ is said said to follow a chi-square distribution with $k$ number of degress of freedom, if and only if its [probability density function](/D/pdf) is given by
5049

51-
$$ \label{eq:chi-2-pdf} \chi ^{2}(x; k) = {\frac {1}{2^{k/2}\Gamma (k/2)}}\;x^{k/2-1}e^{-x/2}\; $$
50+
$$ \label{eq:chi2-pdf}
51+
\chi^{2}(x; k) = \frac{1}{2^{k/2}\Gamma (k/2)} \, x^{k/2-1} \, e^{-x/2}
52+
$$
5253

5354
where $k > 0$ and the density is zero if $x \leq 0$.

P/chi-2-gam.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

P/chi2-gam.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Kenneth Petrykowski"
6+
affiliation: "KU Leuven"
7+
e_mail: "kenneth.petrykowski@gmail.com"
8+
date: 2020-10-12 22:15:00
9+
10+
title: "Chi-square distribution is a special case of gamma distribution"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Chi-square distribution"
14+
theorem: "Special case of gamma distribution"
15+
16+
sources:
17+
18+
proof_id: "P174"
19+
shortcut: "chi2-gam"
20+
username: "kjpetrykowski"
21+
---
22+
23+
24+
**Theorem:** The [chi-square 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}$:
25+
26+
$$ \label{eq:chi2-gam}
27+
X \sim \mathrm{Gam}\left( \frac{k}{2}, \frac{1}{2} \right) \Rightarrow X \sim \chi^{2}(k) \; .
28+
$$
29+
30+
31+
**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 paramete, is as follows:
32+
33+
$$ \label{eq:gam-pdf}
34+
\mathrm{Gam}(x; \alpha, \beta) = \frac{\beta^{\alpha}}{\Gamma(\alpha)} \, x^{\alpha-1} \, e^{-\beta x}
35+
$$
36+
37+
If we let $\alpha = k/2$ and $\beta = 1/2$, we obtain
38+
39+
$$ \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}
41+
$$\
42+
43+
which is equivalent to the [probability density function of the chi-square distribution](/P/chi2-pdf).

P/chi2-mom.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Kenneth Petrykowski"
6+
affiliation: "KU Leuven"
7+
e_mail: "kenneth.petrykowski@gmail.com"
8+
date: 2020-10-13 01:30:00
9+
10+
title: "Moments of the chi-square distribution"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Chi-square distribution"
14+
theorem: "Moments"
15+
16+
sources:
17+
- authors: "Robert V. Hogg, Joseph W. McKean, Allen T. Craig"
18+
year: 2018
19+
title: "The χ2-Distribution"
20+
in: "Introduction to Mathematical Statistics"
21+
pages: "Pearson, Boston, 2019, p. 179, eq. 3.3.8"
22+
url: "https://www.pearson.com/store/p/introduction-to-mathematical-statistics/P100000843744"
23+
24+
proof_id: "P175"
25+
shortcut: "chi2-mom"
26+
username: "kjpetrykowski"
27+
---
28+
29+
30+
**Theorem:** Let $X$ be a [random variable](/D/rvar) following a [chi-square distribution](/D/chi2):
31+
32+
$$ \label{eq:chi2}
33+
X \sim \chi^{2}(k) \; .
34+
$$
35+
36+
If $m > -k/2$, then $E(X^{m})$ exists and is equal to:
37+
38+
$$ \label{eq:chi2-mom}
39+
\mathrm{E}(X^{m}) = \frac{2^{m} \Gamma\left( \frac{k}{2}+m \right)}{\Gamma\left( \frac{k}{2} \right)} \; .
40+
$$
41+
42+
43+
**Proof:** Combining the [definition of the $m$-th raw moment](/D/momraw) with the [probability density function of the chi-square distribution](/P/chi2-pdf), we have:
44+
45+
$$ \label{eq:chi2-mom-int}
46+
\mathrm{E}(X^{m}) = \int_{0}^{\infty} \frac{1}{\Gamma\left( \frac{k}{2} \right) 2^{k/2}} \, x^{(k/2)+m-1} \, e^{-x/2} \mathrm{d}x \; .
47+
$$
48+
49+
Now define a new variable $u = x/2$. As a result, we obtain:
50+
51+
$$ \label{eq:chi-2-mom-int-u}
52+
\mathrm{E}(X^{m}) = \int_{0}^{\infty} \frac{1}{\Gamma\left( \frac{k}{2} \right) 2^{(k/2)-1}} \, 2^{(k/2)+m-1} \, u^{(k/2)+m-1} \, e^{-u} \mathrm{d}u \; .
53+
$$
54+
55+
This leads to the desired result when $m > -k/2$. Observe that, if $m$ is a nonnegative integer, then $m > -k/2$ is always true. Therefore, all [moments](/D/mom) of a [chi-square distribution](/D/chi2) exist and the $m$-th raw moment is given by the foregoing equation.

P/mom-chi-2.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)