Lecture 11.7 - Expectation and Variance of Hypergeometric Distribution
Lecture 11.7 - Expectation and Variance of Hypergeometric Distribution
Expectation
18/ 31
Statistics for Data Science -1
Expectation and Variance of Hypergeometric distribution
Expectation
18/ 31
Statistics for Data Science -1
Expectation and Variance of Hypergeometric distribution
Expectation- proof
N −m m
P n−x x
E (X ) = x
x N
n
m m! N N!
Now, = , and, = =
x x!(m − x)! n n!(N − n)!
N(N − 1)! N (N − 1)! N N −1
= · = ·
n · (n − 1)!(N − n)! n (n − 1)!(N − 1− (n − 1))! n n−1
m · (m − 1)! N − m
P x!(m − x)! n − x
Hence, E (X ) = x =
x N N −1
·
n n −1
(m − 1)! (N − 1) − (m − 1)
P nm (x − 1)!(m − 1 − (x − 1))! (n − 1) − (x − 1) nm
=
x N N −1 N
n−1
19/ 31
Statistics for Data Science -1
Expectation and Variance of Hypergeometric distribution
Variance
20/ 31
Statistics for Data Science -1
Expectation and Variance of Hypergeometric distribution
Variance
20/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
N = 20, m = 4, n = 5
0.50
0.40
0.30
0.20
0.10
0.00
0 1 2 3 4
21/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
N = 20, m = 10, n = 5
0.30
0.20
0.10
0.00
0 1 2 3 4 5
22/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
N = 20, m = 16, n = 5
0.50
0.40
0.30
0.20
0.10
0.00
0 1 2 3 4 5
23/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
N = 20, m = 10, n = 10
0.30
0.20
0.10
0.00
0 2 4 6 8 10
24/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
N = 100, m = 50, n = 10
0.20
0.10
0.00
0 2 4 6 8 10
25/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
N = 500, m = 250, n = 10
0.25
0.20
0.15
0.10
0.05
0.00
0 2 4 6 8 10
26/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
Binomial versus Hypergeometric distribution
0.2
0.1
0 1 2 3 4 5
28/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
Binomial versus Hypergeometric distribution
0.1
0.1
0.0
0 5 10 15 20 25
29/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
Binomial versus Hypergeometric distribution
0.1
0.1
0.0
0 10 20 30 40 50
30/ 31
Statistics for Data Science -1
Graph of pmf of the Hypergeometric distribution
Binomial versus Hypergeometric distribution
6.0
4.0
2.0
0.0
Section summary
32/ 31