Random Variables
Random Variables
&
PROBABILITY
HH
HT
TH
TT
So, the possible values of the random variable X are 0, 1, and 2.
Example 2: Suppose three coins are tossed. Let Y be the
random variable representing the number of tails that occur.
Find the values of the random variable Y.
Possible Value of the
Outcomes random Variable
Y (# of Tails)
HHH
HHT
HTH
https://www.google.com/search?q=tossing+three+coins&sxsrf=APq-
WBuGLvfRYCFDldKZcnojd6sW2a9Ozw:1644974756111&source=lnms&tbm=isch&sa=X&ved=2ahUKEwirjoLAiIP2AhVpjdgFHUePCQYQ_AUoAXoECAEQAw&biw=1360&bih=625&dpr=1&safe=active&s
sui=on
HTT
THH
THT
TTH
TTT
Example 3: Two balls are drawn in succession without
replacement from a box containing 5 red balls and 6 blue
balls. Let Z be the random variable representing the number
of blue balls. Find the values of the random variable Z.
Let B represent the blue balls and R represents the red balls.
1
BR
1
RB
0
RR
Examples: Examples:
Illustration: If two coins are tossed, the possible outcomes are HH, HT,
TH or TT. If X is the random variable for the number of head, construct
its probability distribution.
Possible Value of the
Outcomes random Variable
X (# of heads)
HH
HT
X 0 1 2
TH P (X)
TT
In the development of the probability function for
a discrete random variable, two conditions must be
satisfied:
a. X 2 6 8
P(X) - 0.3 0.6 0.7
b. X 1 2 3 4 5
Example 2: Tossing Three Coins
Suppose three coins are tossed. Let Y be the random
variable representing the number of heads occur. Find the
probability of each of the values of the random variable Y.
Possible Outcomes Value of the Random
Variable Y
(Number of HEADS)
HHH 3
THH 2
HTH 2
HHT 2
HTT 1
THT 1
TTH 1
TTT 0
Probability Distribution
Number of Heads 0 1 2 3
Probability (Y)
Example 3:
Box A and Box B contain 1, 2, 3, 4. Write the probability mass function
and draw the histogram of the sum when one number from each box is
taken at a time, with replacement.
A B
X 2 3 4 5 6 7 8
2 3 4 5 6 7 8
Exercise
Let X = result of rolling two dice
What is the probability of
getting a result of:
1. 2?
2. 11?
3. more than 8?
4. 2 or 7?
5. 4 to 7?