Random Variables and Probability Distributions
Random Variables and Probability Distributions
AND PROBABILITY
DISTRIBUTIONS
CHAPTER 1
EXPLORING RANDOM
VARIABLES
LESSON 1
OBJECTIVES
• Example:
• Experiment: Flipping the coin twice.
• Event: Observing the number of heads
• Random Variable X = number of heads
observed
RANDOM VARIABLE (RV)
Exercise:
Experiment: Flipping a coin thrice.
Event: Observing number of tails
Random Variable Y = number of tails observed
DISCRETE RANDOM VARIABLE
0 1 ¼ = 0.25
1 2 ½ = 0.5
2 1 ¼ = 0.25
𝑓 = 4 𝑃(𝑋) = 1
DISCRETE PROBABILITY
DISTRIBUTION
• Example: Construct the probability distribution
Experiment: Flipping a coin thrice.
Event: Observing number of tails
Random Variable Y = number of tails observed
S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
Possible Outcomes Random Variable Y
HHH 0
HHT 1
HTH 1
HTT 2
THH 1
THT 2
TTH 2
TTT 3
Random Variable X = {0, 1,2, 3}
Random Probability
Frequency (f)
Variable Y P(Y)
0 1 1/8
1 3 3/8
2 3 3/8
3 1 1/8
𝑓 = 8 𝑃(𝑋) = 1
Questions:
1. What is the probability of observing exactly 1
tail?
2. P(Y=2)
3. P(Y>1)
4. P(0<Y<3)
5. What is the probability of observing at least 2
tails?
Activity 1
• Experiment: Rolling a die twice
• Event: observing the sum of dots
• Random variable X = the sum of dots observed
after the 2nd roll.
1. Construct the probability distribution
2. Find the following:
a) P(X=even)
1. Construct the probability distribution (15 pts)
2. Find the following: (5 pts. Each)
a) P(X=even)
b) P(X=odd)
c) P(X=multiple of 4)
d) P(X<6)
e) P(5≤X≤9)
f) P(X=at most 8)
COMPUTING THE MEAN OF A
DISCRETE PROBABILITY
DISTRIBUTION
LESSON 3
OBJECTIVES
𝝁 = 𝑿𝟏 • 𝑷 𝑿𝟏 + 𝑿𝟐 • 𝑷 𝑿𝟐 +. . , . +𝑿𝒏 • 𝑷 𝑿𝒏
𝝁 = σ𝑿 • 𝑷(𝑿)
Where:
𝑋1 , 𝑋2 , …, 𝑋𝑛 - values of the RV
𝑃 𝑋1 , 𝑃 𝑋2 ,…, 𝑃 𝑋𝑛 - corresponding probabilities
• Example:
Experiment: Flipping a coin thrice.
Event: Observing number of tails
Random Variable X = number of tails observed
a) Construct the probability distribution.
b) Find the mean of the probability distribution
Random Probability
Frequency (f)
Variable X P(X)
0 1 1/8
1 3 3/8
2 3 3/8
3 1 1/8
𝑓 = 8 𝑃(𝑋) = 1
RV (X) Freq (f) P(X) X • P(X)
0 1 1/8 0
1 3 3/8 3/8
2 3 3/8 6/8 or 3/4
3 1 1/8 3/8
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏
RV (X) Freq (f) P(X) X • P(X)
2 1 1/36 2/36
3 2 2/36 6/36
4 3 3/36 12/36
5 4 4/36 20/36
6 5 5/36 30/36
7 6 6/36 42/36
8 5 5/36 40/36
9 4 4/36 36/36
10 3 3/36 30/36
11 2 2/36 22/36
12 1 1/36 12/36
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏 𝝁 = 𝑿 • 𝑷(𝑿) = 𝟕
• The mean 𝝁 is 7.
• Interpretation:
In rolling the die twice, the average sum of
dots to be observed is 7.
• Example
The probabilities that a surgeon operates on 3 ,4 ,5,
6, or 7 patients in a any day are 0.15, 0.10, 0.20, 0.25,
and 0.30 respectively. Find the average number of
patients that a surgeon operates on a day
3 0.15
4 0.10
5 0.20
6 0.25
7 0.30
𝑷(𝑿) = 𝟏
RV (X) P(X) X • P(X)
3 0.15 0.45
4 0.10 0.40
5 0.20 1.00
6 0.25 1.50
7 0.30 2.10
𝑷(𝑿) = 𝟏 𝝁 = 𝑿 • 𝑷 𝑿 = 𝟓. 𝟒𝟓
• Exercise
The probabilities of a machine manufacturing 0, 1,
2, 3, 4 or 5 defective parts in one day are 0.75,
0.17, 0.04, 0.025, 0.01, and 0.005 respectively. Find
the mean of the probability distribution.
COMPUTING THE VARIANCE
OF A DISCRETE
PROBABILITY DISTRIBUTION
LESSON 4
OBJECTIVES
0 1 1/8
1 3 3/8
2 3 3/8
3 1 1/8
𝑓 = 8 𝑃(𝑋) = 1
RV (X) Freq (f) P(X) X • P(X) X−𝝁 (X − 𝝁)𝟐 (X − 𝝁)𝟐 • P(X)
0 1 1/8 0
1 3 3/8 3/8
2 3 3/8 6/8
3 1 1/8 3/8
𝒇 = 𝟖 𝑷(𝑿) = 𝟏 𝝁 = 𝟑/𝟐
RV (X) Freq (f) P(X) X • P(X) X−𝝁 (X − 𝝁)𝟐 (X − 𝝁)𝟐 • P(X)
0 1 1/8 0 -3/2
𝒇 = 𝟖 𝑷(𝑿) = 𝟏 𝝁 = 𝟑/𝟐
RV (X) Freq (f) P(X) X • P(X) X−𝝁 (X − 𝝁)𝟐 (X − 𝝁)𝟐 • P(X)
𝒇 = 𝟖 𝑷(𝑿) = 𝟏 𝝁 = 𝟑/𝟐
RV (X) Freq (f) P(X) X • P(X) X−𝝁 (X − 𝝁)𝟐 (X − 𝝁)𝟐 • P(X)
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏
RV
Freq (f) P(X) X • P(X) 𝒙−𝝁 (𝒙 − 𝝁 )𝟐 (𝒙 − 𝝁 )𝟐 ∙ 𝑷(𝒙)
(X)
2 1 1/36 2/36
3 2 2/36 6/36
4 3 3/36 12/36
5 4 4/36 20/36
6 5 5/36 30/36
7 6 6/36 42/36
8 5 5/36 40/36
9 4 4/36 36/36
10 3 3/36 30/36
11 2 2/36 22/36
12 1 1/36 12/36
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏 𝝁 = 𝑿 • 𝑷(𝑿) = 𝟕
RV
Freq (f) P(X) X • P(X) 𝒙−𝝁 (𝒙 − 𝝁 )𝟐 (𝒙 − 𝝁 )𝟐 ∙ 𝑷(𝒙)
(X)
2 1 1/36 2/36 -5
3 2 2/36 6/36 -4
4 3 3/36 12/36 -3
5 4 4/36 20/36 -2
6 5 5/36 30/36 -1
7 6 6/36 42/36 0
8 5 5/36 40/36 1
9 4 4/36 36/36 2
10 3 3/36 30/36 3
11 2 2/36 22/36 4
12 1 1/36 12/36 5
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏 𝝁 = 𝑿 • 𝑷(𝑿) = 𝟕
RV
Freq (f) P(X) X • P(X) 𝒙−𝝁 (𝒙 − 𝝁 )𝟐 (𝒙 − 𝝁 )𝟐 ∙ 𝑷(𝒙)
(X)
2 1 1/36 2/36 -5 25
3 2 2/36 6/36 -4 16
4 3 3/36 12/36 -3 9
5 4 4/36 20/36 -2 4
6 5 5/36 30/36 -1 1
7 6 6/36 42/36 0 0
8 5 5/36 40/36 1 1
9 4 4/36 36/36 2 4
10 3 3/36 30/36 3 9
11 2 2/36 22/36 4 16
12 1 1/36 12/36 5 25
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏 𝝁 = 𝑿 • 𝑷(𝑿) = 𝟕
RV
Freq (f) P(X) X • P(X) 𝒙−𝝁 (𝒙 − 𝝁 )𝟐 (𝒙 − 𝝁 )𝟐 ∙ 𝑷(𝒙)
(X)
2 1 1/36 2/36 -5 25 0.69444
3 2 2/36 6/36 -4 16 0.88889
4 3 3/36 12/36 -3 9 0.75000
5 4 4/36 20/36 -2 4 0.44444
6 5 5/36 30/36 -1 1 0.13889
7 6 6/36 42/36 0 0 0
8 5 5/36 40/36 1 1 0.13889
9 4 4/36 36/36 2 4 0.44444
10 3 3/36 30/36 3 9 0.75000
11 2 2/36 22/36 4 16 0.88889
12 1 1/36 12/36 5 25 0.69444
𝝈𝟐 = (𝒙 − 𝝁 )𝟐 ∙ 𝑷 𝒙 = 𝟓. 𝟖𝟑𝟑𝟑𝟐
𝒇 = 𝟑𝟔 𝑷(𝑿) = 𝟏 𝝁 = 𝑿 • 𝑷(𝑿) = 𝟕
• Example Problem
Defective DVDs. From past experience, a
company found that in cartons of DVDs, 90%
contain no defective DVDs, 5% contain one
defective DVD, 3% contain two defective DVDs,
and 2% contain three defective DVDs. Find the
mean, variance, and standard deviation for the
number of defective DVDs.
• Example Problem
Number of Credit Cards. A bank vice president feels
that each savings account customer has, on average,
three credit cards. The following distribution represents
the number of credit cards people own. Find the mean,
variance, and standard deviation. Is the vice president
correct?
• Activity 2
A box contains 10 balls. Two are numbered 3, one is
numbered 4, three are numbered 7, two are
numbered 8 and two are numbered 5. The balls are
mixed and one is selected at random. After a ball is
selected, its number is recorded. Then it is replaced.
If the experiment is repeated many times, construct
the probability distribution (15pts.) and find the mean
(5pts.), variance (7pts.) and standard deviation (3pts.)
of the numbers on the balls