Random Variables
Random Variables
RANDOM EXPERIMENT
❑ an experiment whose outcomes cannot be
predicted.
Examples:
Tossing a coin
Rolling a die
Drawing a card from a standard deck of cards
Picking a ball from a box of 20 balls
What is a RANDOM VARIABLE?
Random
- occurring without definite aim, reason, or pattern
- something unpredictable or unidentified
Variable
- is a symbol (A, B, x, y, etc.) that can take on any of
a specified set of values.
What is a RANDOM VARIABLE?
A random variable (also called stochastic variable) is a
rule that assigns a numerical value or characteristic to an
outcome of an experiment.
Discrete Continuous
Random Random
Variable Variable
H HHH 0
T HHT 1
H
H 1
HTH
T
T HTT 2
H THH 1
H THT 2
T T
TTH 2
H
T TTT 3
T
SAMPLE SPACE: S = {HHH, HHT, HTH, THH, TTH, THT, HTT, TTT} RANGE SPACE: T = {0, 1, 2, 3}
Example 2:
A pair of dice is thrown, and the random
variable Y is defined such that Y gives the
sum of the two numbers that appear.
Determine the following:
A. range space
B. Y(3,2)
C. Y(4,6)
D. Y(1,3)
Example 2:
+ 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
A. Range Space =
B. Y(3,2) =
C. Y(4,6) =
D. Y(1,3) =
Example 3:
Determine the sample space of tossing a coin and a die.
Coin Die Sample Point
1 H1
2 H2
3 H3
H 4 H4
5 H5
H6
6
1 T1
2 T2
3 T3
T 4 T4
5 T5
6 T6
S = {H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}
Example 4:
Determine the sample space of an ordinary deck of playing cards.
S=
EVENT
→ is the collection of one or more outcomes considered as
a group.
→ is a subset of the sample space S.
Examples:
Getting a head when a coin is tossed
Getting an even number when a die is rolled
Getting a heart face card in a standard deck of cards
Getting a white ball from a box of 20 balls
PROBABILITY
It is the measure of certainty or uncertainty that an event will
happen. If E is an event, then the probability that E will happen
is denoted by P(E). If E is sure to happen, then P(E) = 1; however,
if E is impossible to happen, P(E) = 0. Thus, the probability of an
event could only be from 0 to 1.
Outcome
Number of
Y
(number of tails) 0 1 2 3
tails (Y)
𝟏 𝟑 𝟑 𝟏
HHH 0 P(Y)
𝟖 𝟖 𝟖 𝟖
HHT 1
HTH 1 P(Y)
THH 1 What can you observe?
0.5
HTT 2
THT 2 0.4
TTH 2
0.3
TTT 3
0.2
0.1
0 Y
0 1 2 3
Using Example 2 (When pair of dice is thrown,
such that Y gives the sum of the two numbers that appear.)
Construct the Probability Mass Function and Histogram.
EXAMPLE 2:
A pair of dice is thrown, and the random variable Y is defined such
that Y gives the sum of the two numbers that appear.
Construct the Discrete Probability Distribution for the given random
variable.
Y
(sum of two 2 3 4 5 6 7 8 9 10 11 12
numbers)
𝟏 𝟐 𝟑 𝟒 𝟓 𝟔 𝟓 𝟒 𝟑 𝟐 𝟏
P(Z)
𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔 𝟑𝟔
0.03 0.06 0.08 0.11 0.14 0.17 0.14 0.11 0.08 0.06 0.03
𝟑𝟔
Sum = =1
𝟑𝟔
Using Example 2 (When pair of dice is thrown,
such that Y gives the sum of the two numbers that appear.)
P(Z)
Z
2 3 4 5 6 7 8 9 10 11 12
Using Example 3
Matt owns an electronics kiosk in Jepo Mall. While doing inventory,
he decided to see just how many cellphone units his business is moving.
The number of mobile phones sold per day at his kiosk varies as shown
in the given probability distribution below. Find the possible values of the
given random variable X.
X 1 2 3 4 5
P(X) 0.2 0.1 n 0.4 0.2
Learning Targets:
• to distinguish a discrete from continuous random variable.
• to find the possible values of a random variable.
• to illustrate a probability distribution for a discrete random
variable and its properties.
• to construct a probability mass function and its corresponding
histogram.
• to compute probabilities to a given random variable.
Reference:
Ocampo, S. & Tresvalles, R. (2017). Probability, Statistics, and
Applications: Abiva Publishing House, Inc. page 20 Letter C nos. 1 - 3
Answer the following in your activity sheet:
Page 20 Letter C