Skip to content

Commit b245718

Browse files
authored
Merge pull request #93 from kjpetrykowski/master
added [chi-2, chi-2-gam, mom-chi-2]
2 parents 1102526 + 44eb686 commit b245718

3 files changed

Lines changed: 144 additions & 0 deletions

File tree

D/chi-2.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: definition
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:20:00
9+
10+
title: "Chi-square distribution"
11+
chapter: "Probability Distributions"
12+
section: "Univariate continuous distributions"
13+
topic: "Chi-square distribution"
14+
definition: "Definition"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2020
19+
title: "Exponential distribution"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2020-10-12"
22+
url: "https://en.wikipedia.org/wiki/Chi-square_distribution#Definitions"
23+
24+
- authors: "Robert V. Hogg, Joseph W. McKean, Allen T. Craig"
25+
year: 2018
26+
title: "The χ2-Distribution"
27+
in: "Introduction to Mathematical Statistics"
28+
pages: "Pearson, Boston, 2019, p. 178, eq. 3.3.7"
29+
url: "https://www.pearson.com/store/p/introduction-to-mathematical-statistics/P100000843744"
30+
31+
32+
33+
def_id: "D100"
34+
shortcut: "chi-2"
35+
username: "kjpetrykowski"
36+
---
37+
38+
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+
$
44+
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
46+
47+
$$\label{eq:chi-2} Y\ \sim \ \chi ^{2}(k)\ ; ,$$
48+
49+
if and only if its probability density function is given by
50+
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}\; $$
52+
53+
where $k > 0$ and the density is zero if $x \leq 0$.

P/chi-2-gam.md

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

P/mom-chi-2.md

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

0 commit comments

Comments
 (0)