2. A B C D E F G H I J K
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
At the end of this lesson, the learner should be able to:
β’ correctly construct a probability mass function of a given discrete
random variable;
β’ accurately graph values and probabilities of a discrete random variable
in a histogram; and
β’ accurately illustrate discrete random variables in real-life situations.
Objectives β Unit 2 Lesson 1: Probability Mass Function of a
Discrete Random Variable
4. Properties of Probability Mass Function of a Discrete Random Variable
1. π(π₯) = π(π = π₯)
2. 0 β€ π(π₯) β€ 1
3. The sum of the probabilities, π π₯π , is equal to 1.
Probability Mass Function of a Discrete Random
Variable
PMF β is a function which describes the probability associated with the random
variable π. This function is named π π πππ π = π₯ to avoid confusion. π π =
π₯ corresponds to the probability that the random variable π take the value π₯.
5. Example 1: A coin is flipped three times. Let π represent the number of tails that
appear in flipping a coin.
Probability Mass Function of a Discrete Random Variable
C
O
I
N
Head
Head Head
Tale
Tale Head
Tale
Tale
Head Head
Tale
Tale Head
Tale
HHH 0
HHT 1
HTH 1
HTT 2
THH 1
THT 2
TTH 2
TTT 3
X = 0, 1, 2, 3
6. π 0 1 2 3
π(π = π₯) 1
8
3
8
3
8
1
8
Example 1.1: A coin is flipped three times. Let π represent the number of tails that
appear in flipping a coin. Create a table to represent the probability mass
function of this event.
Probability Mass Function of a Discrete Random Variable
HHH 0
HHT 1
HTH 1
HTT 2
THH 1
THT 2
TTH 2
TTT 3
7. π 0 1 2 3
π(π = π₯) 1
8
3
8
3
8
1
8
Example 1.2: A coin is flipped three times. Let π represent the number of tails that
appear in flipping a coin. Find the probability mass function of
π.
Probability Mass Function of a Discrete Random Variable
Therefore, π π = 0 =
1
8
, π π = 1 =
3
8
, π π = 2 =
3
8
and π π = 3 =
1
8
.
8. Example 2: A coin and a die are thrown once, at the same time given that for the
coin the head is represented by number 1 while the tail is represented by
number 2. If R is the random variable that represents the sum of the
results, what are the possible values of R?
Probability Mass Function of a Discrete Random Variable
1 1
1 2
1 3
1 4
1 5
1 6
2
3
4
5
6
7
2 1
2 2
2 3
2 4
2 5
2 6
3
4
5
6
7
8
R= 2, 3, 4, 5,
6, 7 & 8
9. Example 2.1: A coin and a die are thrown once, at the same time given that for the
coin the head is represented by number 1 while the tail is represented
by number 2. If R is the random variable that represents the sum of the
results, create a table to represent the probability mass function of this
event.
Probability Mass Function of a Discrete Random Variable
1 1
1 2
1 3
1 4
1 5
1 6
2
3
4
5
6
7
2 1
2 2
2 3
2 4
2 5
2 6
3
4
5
6
7
8
R = 2, 3, 4, 5, 6, 7 & 8
πΉ π π π π π π π
π·(πΉ = π) π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
10. Example 2.2: A coin and a die are thrown once, at the same time given that for the
coin the head is represented by number 1 while the tail is represented
by number 2. If R is the random variable that represents the sum of the
results, find the probability mass function of R.
Probability Mass Function of a Discrete Random Variable
πΉ π π π π π π π
π·(πΉ = π) π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
Therefore, π π = 2 =
1
12
, π π = 3 =
2
12
, π π = 4 =
2
12
, π π = 5 =
2
12
,
π π = 6 =
2
12
, π π = 7 =
2
12
and π π = 8 =
1
12
.
12. The possible values of the
discrete random variable are
on the horizontal axis while
its probabilities are on the
vertical axis. The total area
under a histogram is 1.
HISTOGRAM - a graph of a probability mass function. This is a graph that
displays the data by using vertical bars of various heights to
represent the probability of a certain random variable.
X
P(X)
13. π 0 1 2 3
π(π = π₯) 1
8
3
8
3
8
1
8
Example 3: A coin is flipped three times. Let π represent the number of tails that
appear in flipping a coin. Find the probability mass function using
histogram.
Probability Mass Function of a Discrete Random Variable
14. Example 4: A coin and a die are thrown once, at the same time given that for the
coin the head is represented by number 1 while the tail is represented by
number 2. If R is the random variable that represents the sum of the
results, Find the probability mass function using histogram.
Probability Mass Function of a Discrete Random Variable
πΉ π π π π π π π
π·(πΉ = π) π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
π
ππ
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
0.18
2 3 4 5 6 7 8
R
15. Example 5: Two coins are tossed. Let π be the number of heads that occur. Construct the
probability distribution for the random variable π and its corresponding histogram.
HH 2
HT 1
TH 1
TT 0
S = 0, 1, 2
C
O
I
N
Head
Head
Tale
Tale
Head
Tale πΊ π π π
π·(πΊ = π) π
π
π
π
π
π
17. Example 6: A certain university has a lab with six computers reserved for students specializing in a
certain subject. Assume that X represents the number of these computers that are in use at a
particular time of a day. The probability distribution of X is given below. Find the probability that at
least 3 computers are in use at a particular time of the day.
π 0 1 2 3 4 5 6
π(π = π₯) 0.10 0.10 0.15 0.25 0.25 0.10 0.05
Solution:
π π β₯ 3 = π π = 3 + π π = 4 + π π = 5 + π(π = 6)
π π β₯ 3 = 0.25 + 0.25 + 0.10 + 0.05
π· πΏ β₯ π = π. ππ
Thus, there is 65% chance are at least 3
computers are in use if we visit it in a particular
time of day.
18.
19.
20.
21. TRY IT!
Toss a pair of dice. Winnings are equal to the difference of the
numbers on the two dice. Let M denote the winnings after
playing the game once.
a) Find the possible values of M.
b) Find the probability mass function of M.
c) Construct its corresponding histogram.
22. 1 1
1 2
1 3
1 4
1 5
1 6
4 1
4 2
4 3
4 4
4 5
4 6
2 1
2 2
2 3
2 4
2 5
2 6
5 1
5 2
5 3
5 4
5 5
5 6
3 1
3 2
3 3
3 4
3 5
3 6
6 1
6 2
6 3
6 4
6 5
6 6
Thus, the possible
values of M are
0, -1, -2, -3, -4, -5,
1, 2, 3, 4 & 5.
0
-1
-2
-3
-4
-5
3
2
1
0
-1
-2
1
0
-1
-2
-3
-4
4
3
2
1
0
-1
2
1
0
-1
-2
-3
5
4
3
2
1
0
Toss a pair of dice.
Winnings are equal to
the difference of the
numbers on the two
dice. Let M denote the
winnings after playing
the game once.
a) Find the possible
values of M.
23. Toss a pair of dice. Winnings are equal to the difference of the numbers on the
two dice. Let M denote the winnings after playing the game once.
b) Find the probability mass
function of M. Thus, the possible values of M are
0, -1, -2, -3, -4, -5, 1, 2, 3, 4 & 5.
-5 1
-4 2
-3 3
-2 4
2 4
3 3
4 2
5 1
π΄ -5 -4 -3 -2 -1 0 1 2 3 4 5
π·(π΄) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
-1 5
0 6
1 5
25. A B C D E F G H I J K
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Check your To Doβs on your Quipper Account, answer the
assignment entitled Probability Mass Function of a Discrete
Random Variable.
Online Quiz: