Professional Documents
Culture Documents
ProbStat2019 03 Discrete
ProbStat2019 03 Discrete
Statistics
Discrete Probability Distributions
Ling-Chieh Kung
Introduction
Basic concepts
Road map
I Random variables.
I Basic concepts.
I Expectations and variances.
I Binomial distributions.
I Hypergeometric distributions.
I Poisson distributions.
Basic concepts
Random variables
Basic concepts
Basic concepts
Basic concepts
Basic concepts
Basic concepts
Basic concepts
Basic concepts
Basic concepts
Parameters of a distribution
Descriptive measures
I The variance of X is
X
σ 2 ≡ Var(X) ≡ E (X − µ)2 = (xi − µ)2 Pr(xi ).
i∈S
√
I The standard deviation of X is σ ≡ σ2 .
I The variance of X is
X
Var(X) ≡ (xi − µ)2 Pr(xi )
i∈S
1h i
(−2.5)2 + (−1.5)2 + · · · + 2.52 ≈ 2.92.
=
6
√
I The standard deviation of X is 2.92 ≈ 1.71.
Proof. Omitted.
I If one earns 5x by rolling x, the expected value of variance of the
earning of rolling a dice are 17.5 and 72.92.
Proposition 2
Let {Xi }i=1,...,n be a set of random variables, then
" n # n
X X
E Xi = E[Xi ].
i=1 i=1
Proposition 3
Let {Xi }i=1,...,n be a set of independent RVs, then
" n # n
Y Y
E Xi = E[Xi ].
i=1 i=1
Proof. Homework!
Proposition 4
Let {Xi }i=1,...,n be a set of independent random variables, then
n
! n
X X
Var Xi = Var(Xi ).
i=1 i=1
= E[X1 + X2 − µ1 + µ2 ]2
h i
= E (X1 − µ1 )2 + (X2 − µ2 )2 + 2(X1 − µ1 )(X2 − µ2 )
h i
= Var(X1 ) + Var(X2 ) + 2E (X1 − µ1 )(X2 − µ2 ) .
Summary
I Two definitions:
I E[X].
h i2
I Var(X) = E X − E[X] .
I Four fundamental properties:
I E[a + bX] = a + bE[X] and Var[a + bX] = b2 Var[X].
I E[X1 + · · · + Xn ] = E[X1 ] + · · · + E[Xn ].
I E[X1 × · · · × Xn ] = E[X1 ] × · · · × E[Xn ] if independent.
I Var(X1 + · · · + Xn ) = Var(X1 ) + · · · + Var(Xn ) if independent.
Bernoulli distributions
Road map
I Random variables.
I Binomial distributions.
I Bernoulli distributions.
I Binomial distributions.
I Hypergeometric distributions.
I Poisson distributions.
Bernoulli distributions
Bernoulli trials
Bernoulli distributions
Bernoulli distributions
I So in a Bernoulli trial, the outcome is binary.
I Typically they are labeled as 0 and 1.
I In some cases, 0 means a failure and 1 means a success.
I Let the probability of observing 1 be p. This defines the
Bernoulli distribution:
Bernoulli distributions
Bernoulli distributions
Bernoulli distributions
Bernoulli distributions
Bernoulli distributions
I Jacob Bernoulli (1654 – 1705) was one of the many prominent Swiss
mathematicians in the Bernoulli family.
I He is best known for the work Ars Conjectandi (The Art of
Conjecture), published eight years after his death.
I He discovered the value of e by solving the limit
n
1
lim 1 + .
n→∞ n
I He provided the first rigorous proof for the Law of Large Numbers
(for the special case of binary variables).
Binomial distributions
Binomial distributions
I Note that these are ten mutually exclusive events. What we want is a
union probability of the union of these ten events.
I By the special law of addition, the union probability is the sum of the
probabilities of these ten events.
I So what is the probability of each event?
Binomial distributions
Pr(X1 = 1, X2 = 1, X3 = 0, X4 = 0, X5 = 0)
= Pr(X1 = 1)(X2 = 1)(X3 = 0)(X4 = 0)(X5 = 0)
= p · p · (1 − p)(1 − p)(1 − p) = p2 (1 − p)3
Binomial distributions
Binomial distributions
I The product of these three yields the desired probability, as shown in the
next page.
Binomial distributions
Binomial distributions
Pn
I The variable i=1 Xi follows the Binomial distribution.
Binomial distributions
Binomial distributions
An example
I Suppose a machine producing chips has a 6% defective rate. A
company purchased twenty of these chips.
I Let X be the number of defectives, then X ∼ Bi(20, 0.06).
1. The probability that none is defective is
!
20
Pr(X = 0) = 0.060 0.9420 ,
0
Binomial distributions
Other applications
I Suppose when one consumer passes our apple store, the probability
that she or he will buy at least one apple is 2%. If 100 consumers
passes our apple store per day:
I How many apples may we sell in expectation?
I Facing the trade off between lost sales and leftover inventory, how many
apples should we prepare to maximize our profit?
I Among all candidates we have interviewed, 20% are outstanding. If we
randomly hire ten people, what is the probability that at least three of
them are outstanding?
Binomial distributions
Be careful!
Binomial distributions
Binomial distributions
Proposition 6
Let X ∼ Bi(n, p), then
I Any intuition?
I Hint. Consider the underlying Bernoulli sequence.
Binomial distributions
I ProofP
of Proposition 6. We can express the binomial random variable as
X= n i=1 Xi , where Xi ∼ Ber(p). Now, according to Proposition 2, we have
" n # n n
X X X
E[X] = E Xi = E[Xi ] = p = np.
i=1 i=1 i=1
Binomial distributions
Proposition 7
Let X1 ∼ Bi(n1 , p1 ) and X2 ∼ Bi(n2 , p2 ). Suppose X1 and X2 are
independent and p1 = p2 , then then
X1 + X2 ∼ Bi(n1 + n2 , p).
Road map
I Random variables.
I Binomial distributions.
I Hypergeometric distributions.
I Poisson distributions.
Hypergeometric distributions
Hypergeometric distributions
Proof. Homework!
I Similar to those of a binomial random variable?
A
I In general, let N = p, one can show that
A N −A
x n−x n x
N
→ p (1 − p)1−x as N → ∞.
n
x
Relationships
Bi(n, p)
Pn 1
i=1 ;
indep. 6
A
p= N
Ber(p) P
n
PP
PP N →0
Pn PP
i=1 ; dep.
PP
q
P
HG(N, A, n)
Poisson distributions
Road map
I Random variables.
I Binomial distributions.
I Hypergeometric distributions.
I Poisson distributions.
Poisson distributions
Poisson distributions
Poisson distributions
Poisson distributions
Poisson distributions
? ?
? ? ? ? ?
One hour
? ?
? ? ? ? ?
Poisson distributions
n
X
X= Xi
i=1
λ
and X ∼ Bi(n, p = n ). Note that Xi ∈ {0, 1}.
Poisson distributions
!
λ n x
Pr x|n, p = = p (1 − p)n−x
n x
x n−x
n(n − 1) · · · (n − x + 1) λ λ
= 1−
x! n n
x −x n
λ n n−1 n−x+1 λ λ
= ··· 1− 1− .
x! n n n n n
| {z }
→1 as n→∞!
x n
λ λ λ
I So lim Pr xn, p = = lim 1 − .
n→∞ n x! n→∞ n
Poisson distributions
Poisson distributions
λx e−λ
Pr(x|λ) =
x!
for x ∈ S = N ∪ {0}.
I It “extends the binomial distribution to infinity.”
Poisson distributions
Poisson distributions
I Poisson distributions are skewed to the right.
Poisson distributions
Poisson distributions
Poisson distributions
Relationships
Poisson distributions
Proposition 9
Let X ∼ Poi(λ), then
E[X] = Var(X) = λ.
Poisson distributions
Poisson distributions
An example: questions
Poisson distributions
An example: answers
Poisson distributions
An example: answers
I Continued from the previous page:
2. The probability of at least three accidents in a week is
2
X
Pr(X ≥ 3) = 1 − Pr(X = i)
i=0
0 −3
31 e−3 32 e−3
3 e
=1− + +
0! 1! 2!
≈ 1 − (0.05 + 0.149 + 0.224) = 0.577.
37 e−3
Pr(X = 7) = ≈ 0.022.
7!
It is thus highly possible that λ is larger than we thought.
Summary
Summary
Summary
I Statistical software.
I The probability tables.
I Study the textbook by yourself.