U1.T1 Session 1 - Random Variables & Probability Distribution
U1.T1 Session 1 - Random Variables & Probability Distribution
U1.T1 Session 1 - Random Variables & Probability Distribution
PROBABILITY
➢ Checkpoint
Reflect
• Why do we need to understand
Variability?
• What’s the function of random
variable in constructing
probability distribution?
• Why do we need to construct
probability distribution?
VARIABILITY
PROBABILITY
What is your
probability of
winning the jackpot
price in the lottery?
What are the
chances that you’ll
get an A+ in your
report card?
What are the
chances of your
team winning
today’s game?
VARIABILITY is
universal.
We need to understand
variability to be able to collect,
analyze, and draw conclusions
from data in a sensible way.
Concept Map
may be described by
Random Variable
Random Variable Probability Distribution
Probability Mass
Expected
Function
Variance Discrete Continuous
Value
Random Variables
Uncertain
outcome
Discrete Continuous
• Countable • Measurable
• Take only specific values • Take any value within
• Whole numbers a range
• Real numbers
Examples of Random Variables
𝐴 = the sum of the numbers that turn up when a pair of dice is tossed.
𝐵 = the distance leaped in meters by a long-jumper in a competition
𝑊 =the length of time in minutes that a scheduled airplane flight is
delayed.
𝑋 = the number of correct answers a student get in a 10-item True-False
test.
Sample Space
{𝑊𝑊𝑊, 𝑊𝑊𝐿, 𝑊𝐿𝑊, 𝐿𝑊𝑊, 𝑊𝐿𝐿, 𝐿𝑊𝐿, 𝐿𝐿𝑊, 𝐿𝐿𝐿}
Sample Point PDF
𝑊𝑊𝑊 = 3 𝑊𝐿𝐿 = 1 𝒙 0 1 2 3
𝑊𝑊𝐿 = 2 𝐿𝑊𝐿 = 1 𝑷(𝑿) 1 3 3 1
𝑊𝐿𝑊 = 2 𝐿𝐿𝑊 = 1 8 8 8 8
𝐿𝑊𝑊 = 2 𝐿𝐿𝐿 = 0
where x is the number of wins and
𝑃 𝑋 is the probability of winning X
number of times in 3 games.
Probability Mass Function
A probability distribution function of a discrete random
variable, which assigns probability to each sample point.
It is denoted by 𝑃 𝑋 = 𝑥 .
Can be expressed in tabular, graphical, or formula form.
Properties:
• The probability of each value of the discrete random variable is
between 0 and 1, inclusive.
1 2 3 4 5 6 7
2 3 4 5 6 7 8
1st Die (Rows)
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
Sum 2 3 4 5 6 7 8 9 10 11 12
No. of
sample 1 2 3 4 5 6 5 4 3 2 1
points
Solution 2
Probability Mass Function
𝑺𝒖𝒎 (𝒚) 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 5 4 3 2 1
𝑷(𝒀 = 𝒚)
36 36 36 36 36 36 36 36 36 36 36
𝟐𝟗
Your probability of wining this game is or 80.56%.
𝟑𝟔
Try this!
𝑺𝒖𝒎 (𝒚) 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 5 4 3 2 1
𝑷(𝒀 = 𝒚)
36 36 36 36 36 36 36 36 36 36 36
Using the same sample space, find the probability of the following:
1 0 1 2 3 4 5
2 1 0 1 2 3 4
1st Die (Rows)
3 2 1 0 1 2 3
4 3 2 1 0 1 2
5 4 3 2 1 0 1
6 5 4 3 2 1 0
Solution
By counting the number of sample points which correspond to each
value of the random variable 𝑌, we can compute the corresponding
probabilities. The value are summarized in the following table.
𝒚 0 1 2 3 4 5
Number of
sample 6 10 8 6 4 2
points
𝒚 0 1 2 3 4 5
6 𝟏 10 𝟓 8 𝟐 6 𝟏 4 𝟏 2 𝟏
𝑷(𝒀 = 𝒚) = = = = = =
36 𝟔 36 𝟏𝟖 36 𝟗 36 𝟔 36 𝟗 36 𝟏𝟖
Solution
𝒚 0 1 2 3 4 5
𝟏 𝟓 𝟐 𝟏 𝟏 𝟏
𝑷(𝒀)
𝟔 𝟏𝟖 𝟗 𝟔 𝟗 𝟏𝟖
𝟏
, 𝒊𝒇 𝒚 = 𝟎, 𝟑
𝟔
𝟓
, 𝒊𝒇 𝒚 = 𝟏
𝟏𝟖
𝟐
𝑷(𝒀) = , 𝒊𝒇 𝒚 = 𝟐
𝟗
𝟏
, 𝒊𝒇 𝒚 = 𝟒
𝟗
𝟏
, 𝒊𝒇 𝒚 = 𝟓
𝟏𝟖
Solution
Find the probability of randomly getting an absolute value that is (a) two, (b) at most three, and (c)
between two and five.
𝒚 0 1 2 3 4 5
𝟏 𝟓 𝟐 𝟏 𝟏 𝟏
𝑷(𝒀)
𝟔 𝟏𝟖 𝟗 𝟔 𝟗 𝟏𝟖
(a)Two
𝟐
𝑃 𝑌 = 2 = 𝟗 𝒐𝒓 𝟐𝟐. 𝟐𝟐%
• Farber, B. & Larson, R. (2012). Elementary statistics: Picturing the world (5th ed.). New York:
Prentice Education, Inc. Retrieved from:
https://www.gcsnc.com/cms/lib/NC01910393/Centricity/Domain/10320/Intro%20to%20Stati
stics%20Textbook.pdf