Tutorial 3: Discrete Random
Variables 1
Yihan Zhang and Baoxiang Wang
Spring 2017
1
Discrete Random Variable
Random Variable π
Sample Space
Ξ©
π₯
Real Number Line
β’ A random variable is discrete if its range is finite or countably infinite.
β’ Each discrete random variable has an associated probability mass
function (PMF).
toss a coin Head
Tail
1
1
Probability
2
2
2
Example 1: Discrete random variables
Experiment
Random Variable Possible Values
Making 100 sales call
# sales
0,1,β¦,100
Inspect 70 radios
# defective
0,1,β¦,70
Answer 20 questions
# correct
0,1,β¦,20
Count cars at toll
between 11:00-1:00
# cars arriving
0,1,2,β¦β¦
3
Example 2: Soccer Game
β’ 2 games this weekend
β’ 0.4 probability----not losing the first game
β’ 0.7 probability----not losing the second game
β’ equally likely to win or tie
β’ independent
β’ 2 points for a win, 1 for a tie and 0 for a loss.
β’ Find the PMF of the number of points that the team earns in this
weekend.
4
Example 2: Soccer Game
π1
2
1
0
P
0.2
0.2
0.6
2
0.35
0.07
0.07
0.21
1
0.35
0.07
0.07
0.21
0
0.3
0.06
0.06
0.18
π2
πΏ = πΏπ + πΏπ
π
4
3
2
1
0
0.07
0.14
0.34
0.27
0.18
5
Compare: Continuous r.v. and PDFs
β’ A random variable π is called continuous if there is a function ππ β₯ 0,
called the probability density function of π, or PDF, s.t.
π(π β π΅) =
for every subset π΅ β β.
β’ In particular, when π΅ = [π, π],
ππ π₯ ππ₯
π΅
π
π(π β€ π β€ π) =
ππ π₯ ππ₯
π
is the area under the graph of PDF.
6
Continuous r.v. and PDFs
β’ A random variable π is called continuous if there is a function ππ β₯ 0,
called the probability density function of π, or PDF, s.t.
π(π β π΅) =
for every subset π΅ β β.
ππ π₯ ππ₯
π΅
7
Typical Discrete Random Variables
β’ We review typical variables, and understand them using
examples
β’ Binomial Random Variable
β’ Poisson Random Variable
β’ Poisson Limit Theorem
8
The Binomial Random Variable
β’ We refer to π as a binomial random variable with parameters π and π
.
β’ For π = 0,1, β¦ , π
β’ ππ (π) =
π
π
ππ 1 β π
πβπ
β’ Mean: ππ, Mode: π + 1 π , variance:ππ(1 β π)
β’ Notice that
π
π
=
π
πβπ
, so π΅ππ π π, π = π΅ππ π β π π, 1 β π .
9
Example 3: Thinking Challenge
β’ You are taking a multiple choice test with 20 questions. Each question
has 4 choices. The total score is 100 and each question has full score
5.
β’ (a) Clueless on question 1, you decide to guess. What is the chance
you will get it right?
1
4
β’ (b) If you guessed all 20 questions, what is the probability that you
get a score of exact 60?
12
8
20 1
3
12 4
4
10
Example 3: Thinking Challenge
β’ You are taking a multiple choice test with 20 questions. Each question
has 4 choices. The total score is 100 and each question has full score
5.
β’ (c) If you guessed all 20 questions, what is the probability that you get
a score no less than 80?
20
π=16
20
π
β’ What is the result? Estimate?
1
4
π
3
4
20βπ
11
The Poisson Random Variable
β’ A Poisson random variable π takes nonnegative integer values.
β’ The PMF
β’ ππ π =
π
π
π βπ οΌπ
π!
= 0, 1, 2, β¦ ,
β’ Mean:π, Mode:[π], variance:π
12
Poisson Limit Theorem
β’ If π β β, π β 0 such that ππ β π, then
π
π π
π
π΅ππ π π, π =
π (1 β π)πβπ β π βπ
= πππ(π|π)
π
π!
β’
π 1 20βπ
1 π 3 20βπ
3
20
= 4π=0 π
4
4
4
4
π
3
15
4
4
β15
πππ
π
20
×
=
π
β 8.5664
π=0
π=0
4
π!
20
20
π=16 π
β’β
× 10β4
β’ very small!!
13
Example 4: Birthday
β’ You go to a party with other 500 guests.
β’ What is the probability that exactly one other guest has the same
birthday as you?
β’ (exclude birthdays on Feb 29.)
500
1
β’ By Poisson approximation, β
1
365
1
364
365
500
πππ(1| )
365
499
=π
β
500
365
500
365
β 0.3481.
14
Example 5: Phone calls
β’ The number of calls coming per minute is a Poisson random variable
with mean 3.
β’ (a) Find the probability that no calls come in a given 1 minute period.
π = πππ 0 3 = π β3
β’ (b) Find the probability that at least two calls will arrive in a given two
minute period. (Assume independency.)
β’ π π1 + π2 β₯ 2
= 1 β π π1 + π2 < 2
= 1 β π π1 = π2 = 0 β π π1 = 0, π2 = 1 β π π1 = 1, π2 = 0
= 1 β π β3 π β3 β π β3 π β3 3 β π β3 3π β3 = 1 β 7π β6
15
Example 6: Chess match
β’ Alice and Bob play a chess match
β’ the first player to win a game wins the match
β’ 0.4, the probability of Alice won
β’ 0.3, the probability of Bob won
β’ 0.3, the probability of a draw
β’ independent
β’ (a) What is the probability that Alice wins the match?
π = 0.4 + 0.3 × 0.4 +
0.32
1
4
× 0.4 + β― = 0.4 ×
=
1 β 0.3 7
16
Example 6: Chess match
β’ Alice and Bob play a chess match
β’ the first player to win a game wins the match
β’ 0.4, the probability of Alice won
β’ 0.3, the probability of Bob won
β’ 0.3, the probability of a draw
β’ independent
β’ (b) What is the PMF of the duration of the match?
π π = 1 = 0.7, P X = 2 = 0.3 × 0.7, π π = 3 = 0.32 × 0.7
β’ So π follows geometric distribution with π = 0.7 on positive integers
{1,2,3, β¦ }.
17
Example 7: Functions of random variables
β’ Let π be a random variable that takes value from 0 to 9 with equal
probability 1/10.
β’ (a) Find the PMF of the random variable π = π πππ(3).
X
0,3,6,9
1,4,7
2,5,8
Y
0
1
2
P
4
= 2/5
10
3/10
3/10
18
Example 7: Functions of random variables
β’ Let π be a random variable that takes value from 0 to 9 with equal
probability 1/10.
β’ (b) Find the PMF of the random variable π = 5 πππ(π + 1).
X
0
1
2
3
4
5
6
7
8
9
Y
0
1
2
1
0
5
5
5
5
5
Y
P
0
1
2
= 1/5
10
2
2
= 1/5
10
5
1/10
5
= 1/2
10
19
© Copyright 2025 Paperzz