03 Discrete Prob Dist
03 Discrete Prob Dist
February 2025
Plan
The binomial distribution
The Geometric and Negative Binomial Distributions
The Hypergeometric Distribution
The Poisson Distribution
2
Examples of some discrete random variables
3
Examples of some discrete random variables
X2 = number of tosses needed to observe the head for the first time
What is the probability to observe the head at 5th toss for the first time?
P (X2 = 5) =?
X3 = number of tosses needed to observe the head for the third time
What is the probability to observe the head at 7th toss for the third time?
P (X3 = 7) =?
4
Examples of some discrete random variables
Suppose a box has 80 balls of which 60 are red. A sample of 10 balls are
drawn from the box without replacement.
X4 = number of red balls in the selected 10 balls
What is the probability that 3 of the 10 balls are red?
P (X4 = 3) =?
5
Examples of some discrete random variables
6
Introduction
7
Introduction
8
The Binomial Distribution
9
Bernoulli Random Variables
10
Bernoulli Random Variables
Let X is the number of success in one binary trial, the probability mass
function of X follows a Bernoulli distribution with parameter p, and the
corresponding probability mass function
x 1−x
P (X = x) = p (1 − p) , x = 0, 1
1 1−1
P (X = 1) = p (1 − p) = p
P (X = 0) =?
11
Bernoulli Random Variables
E(X) = ∑ xP (X = x)
x=0
= 1 × P (X = 1) + 0 × P (X = 0) = p
12
Experiment with tossing three coins
HHT 2 2
p (1 − p) 1 3p(1 − p)
2
3p(1 − p)
2
HTH 2 2
p (1 − p) 2 2
3p (1 − p)
2
3p (1 − p)
THH 2 2
p (1 − p) 3 p
3 3
p (1 − p)
0
HTT 1 p(1 − p)
2
THT 1 p(1 − p)
2
TTH 1 p(1 − p)
2
TTT 0 (1 − p)
3
13
Experiment with tossing three coins
1 3p(1 − p)
2
3p(1 − p)
2 3
( ) p(1 − p)
1
2
n n!
( ) =
2 2
3p (1 − p)
2
3p (1 − p)
3 2
( ) p (1 − p)
2
x x! (n−x)!
3 p
3 3
p (1 − p)
0 3 3
( ) p (1 − p)
3
0
3 3! 3×2×1
( ) = = = 3
2 2!(3−2)! (2×1)(1)
0! = 1
15
Binomial distribution
n x n−x
P (X = x) = ( ) p (1 − p) , x = 0, 1, 2, … , n
x
It can be shown
n
n
x n−x
∑ ( ) p (1 − p) = 1
x
x=0
16
Binomial distribution
μ = E(X) = ∑ x P (X = x) = np
x
2 2 2
σ = V (X) = E(X ) − μ = np(1 − p)
17
The shape of binomial distribution depends on the value of p, binomial
distribution is symmetric for p = 0.5 and skewed for p ≠ 0.5
18
Binomial distribution
P (X ≥ 7) = P (X = 7) + P (X = 8)
8 7 1
8 8 0
= ( )(0.5) (0.5) + ( )(0.5) (0.5)
7 8
19
Binomial distribution
P (X ≥ 7) = P (X = 7) + P (X = 8)
8 7 1
8 8 0
= ( )(0.75) (0.75) + ( )(0.75) (0.75)
7 8
20
Example 17 (Milk Container Contents)
21
Example 17 (Milk Container Contents)
22
Example 17 (Milk Container Contents)
The variance
V ar(X) = np(1 − p)
= (20)(0.261)(1 − 0.261)
= 3.86
23
Example 17 (Milk Container Contents)
20! 7 13
= 0.261 (1 − 0.261) = 0.125
7!(20 − 7)!
24
Example 17 (Milk Container Contents)
What is the probability that a box contains no more than three underweight
containers?
P (X ≤ 3) = P (X = 0) + P (X = 1) + P (X = 2) + P (X = 3)
20 0 20
20 1 19
= ( ) 0.261 (1 − 0.261) + ( ) 0.261 (1 − 0.261)
0 1
20 2 18
20 3 17
+ ( ) 0.261 (1 − 0.261) + ( ) 0.261 (1 − 0.261)
2 3
= 0.1935
25
Homework 3A
(a) P (X = 3) ,
(b) P (X ≤ 2) ,
(c) E(X)
(d) V ar(X)
26
Homework 3A
3.1.4
An archer hits a bull's-eye with a probability of 0.09, and the results of different
attempts can be taken to be independent of each other.
If the archer shoots nine arrows, calculate the probability that:
(a) Exactly two arrows score bull's-eyes.
(b) At least two arrows score bull's-eyes.
(c) What is the expected number of bull's-eyes scored?
27
Homework 3A
3.1.9
A company receives 60% of its orders over the Internet. Within a collection of
18 independently placed orders, what is the probability that
(a) between eight and ten of the orders are received over the Internet?
(b) no more than four of the orders are received over the Internet?
28
The Geometric and Negative Binomial
Distributions
29
The Geometric Distribution
x = 1, 2, 3, …
30
The Geometric Distribution
Expected value
1
E(X) = ∑ P (X = x)x =
p
x
Variance
1 − p
V ar(X) =
2
p
31
Negative binomial distribution
32
Negative binomial distribution
33
Negative binomial distribution
This probability mass function deals with the fact that the rth success
occurs on the xth trial, so there are (x − 1) success in (r − 1) trials, and
corresponding probability can be obtained using the mass function of
binomial distribution
34
Negative binomial distribution
r(1 − p)
V ar(X) =
2
p
35
Example 25 (Telephone Ticket Sales)
36
Example 25 (Telephone Ticket Sales)
37
Example 25 (Telephone Ticket Sales)
4
= (0.9) (0.1)
= 0.06561
38
Example 25 (Telephone Ticket Sales)
The probability that 15 or more calls are needed to reach the salesman
P (X ≥ 15) = 1 − P (X ≤ 14)
x
= 1 − (1 − p)
14
= 1 − (1 − .9) = .229
39
Example 12 (Personnel Recruitment)
Suppose that a company wishes to hire three new workers and that each
applicant interviewed has a probability of 0.6 of being found acceptable.
What is the distribution of the total number of applicants that the company
needs to interview?
40
Example 12 (Personnel Recruitment)
What is the distribution of the total number of applicants that the company
needs to interview?
An applicant could be either a "success" or a "failure", and the probability of
success p = 0.6
The random variable X is defined as the number of success needed to
select three new workers, where the probability of selecting a single worker
is 0.6
X follows a negative binomial distribution with parameters r = 3 and
p = 0.6
41
Example 12 (Personnel Recruitment)
42
Example 12 (Personnel Recruitment)
5 3 3
= ( ) (0.4) (0.6) = 0.138
2
43
Example 12 (Personnel Recruitment)
2 0 3
3 1 3
= ( ) (0.4) (0.6) + ( ) (0.4) (0.6)
2 2
4 5
2 3 3 3
+ ( ) (0.4) (0.6) + ( ) (0.4) (0.6)
2 2
44
Hoework 3B
3.2.1
45
Hoework 3B
3.2.9
A company receives 60% of its orders over the Internet. Within a certain
period of time:
(a) What is the probability that the fifth order received is the first Internet
order?
(b) What is the probability that the eighth order received is the fourth
Internet order?
46
Hoework 3B
3.2.5 An archer hits a bull's-eye with a probability of 0.09, and the results of
different attempts can be taken to be independent of each other.
If the archer shoots a series of arrows, what is the probability that the first
bull's-eye is scored with the fourth arrow?
What is the probability that the third bull's-eye is scored with the tenth
arrow?
What is the expected number of arrows shot before the first bull's-eye is
scored?
What is the expected number of arrows shot before the third bull's-eye is
scored? 47
The Hypergeometric Distribution
48
The Hypergeometric Distribution
49
The Hypergeometric Distribution
50
The Hypergeometric Distribution
51
The Hypergeometric Distribution
52
The Hypergeometric Distribution
53
Example 17 (Milk Container Contents)
Suppose that milk is shipped to retail outlets in boxes that hold 16 milk
containers.
One particular box, which happens to contain 6 underweight containers, is
opened for inspection, and 5 containers are chosen at random.
What is the distribution of the number of underweight milk containers in the
sample chosen by the inspector?
54
Example 17 (Milk Container Contents)
55
Homework 3C
3.3.1
3.3.2
3.3.3
A box contains 17 balls of which 10 are red and 7 are blue. A sample of 5
balls is chosen at random and placed in a jar.
Calculate the probability that: (a) The jar contains exactly 3 red balls, (b) The
jar contains exactly 1 red ball, (c) The jar contains more blueballs than red
balls.
57
The Poisson Distribution
58
The Poisson distribution
E(X) = V ar(X) = λ
60
The Poisson distribution
61
Example 3 (Software errors)
62
Example 3 (Software errors)
63
Example 3 (Software errors)
What is the probability that there are three or more errors in the
software?
P (X ≥ 3) = 1 − P (X < 3)
= 1 − P (X = 0) − P (X = 1) − P (X = 2)
−3
= 1 − e [1 + 3 + 9/2]
= 1 − 0.0498(17/2) = 0.5767
64
Homework 3D
3.4.1
If X ∼ P o(3.2) , calculate:
P (X = 1)
P (X ≤ 3)
P (X = 0 | X ≤ 3)
65
Homework 3D
3.4.4
The number of cracks in a ceramic tile has a Poisson distribution with a mean
of λ = 2.4.
What is the probability that a tile has no cracks?
What is the probability that a tile has four or more cracks?
66
Homework 3D
3.4.8
67
Practice problems
3.8.1
68
Practice problems
3.8.4
69
Practice problems
3.8.9
70
Practice problems
3.8.10
71