Professional Documents
Culture Documents
Module 1 Random Variables (Corrected August 22 2022)
Module 1 Random Variables (Corrected August 22 2022)
Module 1 Random Variables (Corrected August 22 2022)
capital letter X.
Discrete and Continuous Variables
Definition of Random Variables
According to Triola (2018), there are two types of random variables which are:
1. Discrete random variable which has a collection of values that are finite or
countable. For example, the number of cars at a given parking space or the
number of coins in the world.
2. Continuous random variables which has infinitely many values that are
uncountable. Bluman (2019) states that this type of variables are gathered
from data that are measured rather than counted. Examples of such
variables are a person’s height and weight, temperature, and time.
Discrete Random Variables
For this module, we will only focus on Discrete Random Variables. For example,
𝐿 = 1,2,3, or 0
These values are assigned to each outcome depending on the number of head.
Discrete Random Variables
𝐿 0 = 𝑇𝑇𝑇
𝐿 3 = 𝐻𝐻𝐻
Next, we define 𝑅𝐿 to be the range of 𝐿 or basically the set containing all the possible
𝑅𝐿 = 0,1,2,3
Discrete Random Variables
For your short mental exercise, determine the range of the following:
1. Suppose I roll a 20-sided die 50 times. Let 𝑈 = number of 20s that I roll.
2. Suppose I pick a random student from a class of 40 with 1 male and a picked
student cannot be picked again. Let 𝑄 = number of picks I take until I select a
male.
3. Suppose you randomly pick n integers from 50 to 120 allowing for similar pickings
(that is, an integer can be chosen an infinite number of times) and 𝐺 = number of
primes I pick.
Discrete Random Variables
0,1,2, … , 50
2. Since there is a possibility to get a male on the first try, we know we start with 1.
However, this will not end until a male is picked, hence there is also a possibility to
Suppose we have a discrete random variable 𝐿. Then, we know that 𝐿 has a countable
range. This implies that the elements could be listed in the way:
𝑅𝐿 = 𝑙1 , 𝑙2 , 𝑙3 , …
Usually, one is interested in knowing the probability of a certain outcome in the range
of the random variable. That is, we want to know 𝑃 𝐿 = 𝑙𝑘 . We define 𝐴 as the set of
𝐴 0 = 𝑇𝑇𝑇
the function
𝑃𝐿 𝑙𝑘 = 𝑃 𝐿 = 𝑙𝑘 , for 𝑘 = 1,2,3, …
Citing the previous example, the notation 𝑃𝐿 1 means the probability of 𝐿 = 1 or the
variables.
Probability Mass Function (PMF)
Sample Problem:
Solution: Recall that 𝑆 means sample space of the random event. Thus
𝑅𝑂 = 0,1,2,3 .
1
𝑃𝑂 0 =
8
3
𝑃𝑂 1 =
8
3
𝑃𝑂 2 =
8
1
𝑃𝑂 3 =
8
Probability Mass Function (PMF)
Sample Problem 2:
Suppose we roll a dice twice. Let 𝑂 = sum equal to 8. Find
𝑆, 𝑅𝑂 , and 𝑃𝑂 𝑜𝑘 .
Probability Mass Function (PMF)
Solution:
Supposing we roll a dice twice, we know there are 36 possible combinations. Such
combinations are shown in the table below:
Sum 1 2 3 4 5 6
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12
Probability Mass Function (PMF)
Hence, we have
𝑆 = 2,3,3,4,4,4,5,5,5,5, … , 12
The range could be tricky since we’re not counting for heads or tails this
time but for exact events. Hence, only two things could happen; the sum
could be 8 or it could be another integer. This means that
𝑅𝑂 = sum of 8, sum of other integer
For brevity, let us simply denote 𝑎 = sum of 8, 𝑏 = not a sum of 8 so we have
𝑅𝑂 = 𝑎, 𝑏
Probability Mass Function (PMF)
Then we have:
5
𝑃𝑂 𝑎 =
36
31
𝑃𝑂 𝑏 =
36
Notice that in the previous table, there are only 5 outcomes where the
sum is 8. All the remaining 31 outcomes are complements of the event.
End of 1st Meet Assignment
Sample Problem 2:
Suppose we have the random event of throwing a dice twice. We let
𝑈 = the sum of the die being a prime number. Find 𝑆, 𝑅𝑈 , 𝑃𝑈 𝑢𝑘 .
Probability Mass Function (PMF)
Solution:
𝑆 = 1 + 1, 1 + 2, 1 + 3, 1 + 4, … , 6 + 6
To see 𝑆 more clearly, we again have the table:
Sum 1 2 3 4 5 6
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12
Probability Mass Function (PMF)
15 5
𝑃𝑈 𝑝 = =
36 12
Hence
21 7
𝑃𝑈 𝑐 = =
36 12
Probability Mass Function (PMF)
Pishro-Nik (retrived, 2022) states that we could extend PMS to all real-
𝑃 𝐿 = 𝑙𝑘 if 𝑙𝑘 ∈ 𝑅𝐿
𝑃𝐿 𝑙𝑘 ቊ
0 if 𝑙𝑘 ∉ 𝑅𝐿
least 3 heads?
Mean, Standard Deviation, and Variance of PMF
𝜇𝐿 = 𝐿𝑝 𝐿
for all 𝐿
𝜎𝐿2 = [ 𝐿 − 𝜇 2 𝑝 𝐿 ]
for all 𝐿
1 3 3 1
𝑃𝐽 0 = , 𝑃𝐽 1 = , 𝑃𝐽 2 = , 𝑃𝐽 3 =
8 8 8 8
1 3 3 1 3 3 3 3
𝜇𝐽 = 𝐽𝑝 𝐽 = 0 +1 +2 +3 =0+ + + =
8 8 8 8 8 4 8 2
for all 𝐽
This implies that there is an expected value of 1.5 tails in every throw.
Mean, Standard Deviation, and Variance of PMF
2 2 2 2
2 2
3 1 3 3 3 3 3 1
𝜎𝐽 = [ 𝐽 − 𝜇 𝑝 𝐽 ] = 0 − + 1− + 2− + 3−
2 8 2 8 2 8 2 8
for all 𝐽
9 1 1 3 1 3 9 1
= + + + = 0.75
4 8 4 8 4 8 4 8
● Pishro-Nik, H. (retrieved, July 2022). Introduction to Probability, Statistics, and Random Processes. Link