Workbook.discrete random variables.solutions
Workbook.discrete random variables.solutions
DISCRETE PROBABILITY
X 1 2 3 4 5
Solution:
First, we need to find the P(X = 5), which we’ll do by subtracting all the
other probabilities from 1.
P(X = 5) = 1 − 0.95
P(X = 5) = 0.05
P(X ≥ 3) = 0.40
1
2. Let B be a discrete random variable with the following probability
distribution. Find μB and σB.
B 0 5 10 15
Solution:
We’ll weight each value of B by the probability that the value occurs, P(B),
in order to find the expected value μB.
μB = 8
σB2 = 26
2
σB2 = 26
σB ≈ 5.099
3. The table shows the distribution of size of households in the U.S. for
2016. Suppose we select a household of size at least 2 at random. What is
the probability that this household has a size of at least 4?
Size of 1 2 3 4 5 6 7+
household
P(size) 0.28 0.34 ? 0.13 0.06 0.02 0.01
Solution:
P(X = 3) = 0.154
3
P = (at least 2) = 1 − P(X = 1)
Then the probability that the household size is at least 4, given that the
household size is at least 2, is
P(size at least 4)
P(at least 4, given at least 2) =
P(size at least 2)
0.225
P(at least 4, given at least 2) = ≈ 0.313
0.719
Solution:
If we draw two cards, we can find the probability that either both are red
P(R = 2), that one is red P(R = 1), or that neither are red P(R = 0).
52 ( 51 ) 102
26 25 25
P(R = 0) = =
52 ( 51 ) 102
26 25 25
P(R = 2) = =
4
Then the probability that one card is red is
25 25
P(R = 1) = 1 − −
102 102
102 25 25
P(R = 1) = − −
102 102 102
52 26
P(R = 1) = =
102 51
R 0 1 2
5. A local restaurant features a wheel we can spin before paying the bill.
The wheel is split into 8 equal size pieces. One of the sections gives us a
$10 discount on the bill, two sections give a $5 discount, three sections give
a $2 discount, and the rest of the sections give no discount. Find the
expected value for the discount given by the wheel.
Solution:
Let X be the amount of the discount. Then the expected value, or mean of
the discount is
5
(8) (8) (8) (8)
1 2 3 2
∑
E(X ) = XP(X ) = 10 +5 +2 +0
E(X ) = $3.25
6. John stops at the local gas station and decides to buy lottery tickets.
Each ticket has a 20 % chance of being a winner. He will buy a lottery ticket
and check to see if it’s a winner. If it’s a winner, he’ll collect his money and
be done. If it’s not a winner, he’ll buy another. He’ll repeat this until he gets
a winning ticket. But if he hasn’t won by his fifth ticket, he won’t buy any
more tickets. Let L be the number of lottery tickets John will buy, then find
E(L).
Solution:
We could find the probability of winning on each of the first four tickets.
P(L = 1) = 0.2
6
But the question tells us that John will never buy more than five tickets.
Because he’s guaranteed to buy one, two, three, four, or five tickets, the
probability that he’s going to purchase one of those numbers of tickets
must be 100 % . So the probability that he purchases five tickets is actually
P(L = 5) = 1 − P(L ≤ 4)
P(L = 5) = 1 − 0.5904
P(L = 5) = 0.4096
Then the expected value for the number of tickets he’ll buy, L, is
E(L) = 3.3616
7
TRANSFORMING RANDOM VARIABLES
∘ 9∘
F= C + 32
5
Solution:
We’ll plug 27∘C into the conversion formula to get the corresponding value
in Fahrenheit.
9 9 243
μ∘F = μ∘C + 32 = (27) + 32 = + 32 = 80.6∘
5 5 5
2. Let Z be a random variable with σZ2 = 49. Let W = (1/2)Z − 10. Find σW.
Solution:
We’ve been given the variance of Z, so we need to use it first to find the
standard deviation of Z.
8
σZ2 = 49
σZ = 7
1
W= Z − 10
2
we need to multiply by 1/2, but we don’t need to shift by 10. So we can say
that the standard deviation σW is
1
σW = σZ
2
1
σW = (7)
2
7
σW =
2
9
If a donor commits to matching equally the students’ donations, create a
new five-number summary of the total amount raised, including the
donor’s contribution.
Solution:
The donor is essentially scaling the data set, because she’s doubling the
students’ donations. And we know that scaling a data set scales all the
values in the five-number summary.
10
Solution:
Let N be the number of items sold and S be the amount of money the club
gets to keep. Then we could write an equation for the amount of money
they keep as
1
S= (1.25)(N )
2
1 1
μS = (1.25)(μN ) = (1.25)(323) ≈ 201.88
2 2
Using σN = 30, we can find the standard deviation of S in the same way.
1 1
σS = (1.25)(σN ) = (1.25)(30) = 18.75
2 2
220 − 201.88
z= = 0.9664 ≈ 0.97
18.75
Since we’re looking at 0.97 standard deviations above the mean, we get
0.8340 from the z-table, which tells us that the probability that the club
takes home more than $220 is 1 − 0.8340 = 0.166 ≈ 17 % . They have an
approximately 17 % chance of taking home more than $220.
11
5. The average length of a full-term new born baby is 20 inches with
variance 0.81 inches. What are the mean and standard deviation of the
length of a full-term new born, expressed in centimeters? Use
1 in = 2.54 cm.
Solution:
μlength in cm = 2.54μlength in in
μlength in cm = 2.54(20)
μlength in cm = 50.8 cm
We’ll use the same conversion formula to convert the standard deviation.
σlength in cm = 2.54σlength in in
σlength in cm = 2.286 cm
6. The weights of full-term new born babies are normally distributed with
μ = 120 ounces and σ = 20 ounces. Describe the shape, center, and spread
12
for the weights of full-term new born babies as measured in pounds. Use
1 pound = 16 ounces.
Solution:
1
μweight in pounds = μ
16 weight in ounces
1
μweight in pounds = (120)
16
1
σweight in pounds = σ
16 weight in ounces
1
σweight in pounds = (20)
16
13
COMBINATIONS OF RANDOM VARIABLES
1. X and Y are independent random variables with E(X ) = 48, E(Y ) = 54,
SD(X ) = 3 and SD(Y ) = 5. Find E(X − Y ) and SD(X − Y ).
Solution:
To find the expected value of the difference, we find the difference of the
expected values.
2. A and B are independent random variables with E(A) = 6.5, E(B) = 4.4,
SD(A) = 1.6, and SD(B) = 2.1. Find E(4A + 2B) and SD(4A + 2B).
Solution:
14
The expected value of the sum of variables is the sum of the expected
values.
Then we’ll find the standard deviation of the combination. When we scale
a variable by some constant k, its standard deviation gets scaled by k as
well. So the standard deviations of 4A and 2B are
SD(A) = 1.6
SD(4A) = 4(1.6)
SD(4A) = 6.4
and
SD(B) = 2.1
SD(2B) = 2(2.1)
SD(2B) = 4.2
SD 2(4A) = 6.42
SD 2(4A) = 40.96
and
SD 2(2B) = 4.22
SD 2(2B) = 17.64
15
The variance of a combination is the sum of the variances, so
Solution:
We have to assume that the questions are independent. Then we can say
that the mean finishing time is
16
such that the standard deviation of the finishing time is
4. Let M represent the height of a male over 21 years of age and let W
represent the height of a female over 21 years of age. Let D represent the
difference between their heights (D = M − W). Let E(M ) = 70 inches, σM = 2.8
inches, E(W ) = 64.5 inches and σW = 2.4 inches.
What is the mean and standard deviation of the difference between the
two heights?
Solution:
To find the mean of the difference, we’ll find the difference of the means.
We’ll find variance in order to get standard deviation. The variances are
σM2 = 2.82 = 7.84 and σW2 = 2.42 = 5.76. Therefore, the standard deviation of
the difference is
17
of the legs are normally distributed with the given means and standard
deviations.
What percent of the competitors finish the Ironman in under 710 minutes?
Solution:
Let T be the total time to complete all three legs of the Ironman. Then the
mean finishing time is
Assuming the legs are independent random variables, then we can find the
sum of the variances to get the variance of the sum.
18
710 − 755
z= ≈ − 1.01
44.42
X $0 $500
Suppose we buy one of these scratch-off tickets every day for a week (7
days). Find the expected value and standard deviation of our total
winnings.
Solution:
Find the standard deviation of the winnings by taking the sum of the
variances, weighted by the associated probabilities.
19
SD(X ) = (0 − 0.5)2(0.999) + (500 − 0.5)2(0.001) = 249.75 ≈ 15.80
Let W be the amount the state pays us for 7 lottery tickets. The expected
value of the total winnings for 7 lottery tickets is therefore
E(W ) = 7(0.5) = $3.50. The standard deviation of the total winnings is
SD(W ) = 7(15.80)2
SD(W ) = 1,747.48
SD(W ) ≈ $41.80
These are the mean and standard deviation of total winnings. They don’t
account for the price we paid for the scratch-off tickets. If we want to
account for the cost of the tickets in order to calculate profit, instead of
just winnings, then we’d use the probability distribution
X -$1 $499
20
PERMUTATIONS AND COMBINATIONS
(7)
12
Solution:
(k)
n n!
= nCk =
k!(n − k)!
Plug in n = 12 and k = 7.
( 7 ) 12 7 7! ⋅ 5!
12 12! 12 ⋅ 11 ⋅ 10 ⋅ 9 ⋅ 8 ⋅ 7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1
= C = =
7⋅6⋅5⋅4⋅3⋅2⋅1⋅5⋅4⋅3⋅2⋅1
(7)
12 12 ⋅ 11 ⋅ 10 ⋅ 9 ⋅ 8
=
5⋅4⋅3⋅2
(7)
12
= 792
2. Calculate 10 P3.
21
Solution:
n!
n Pk =
(n − k)!
Plug in n = 10 and k = 3.
10! 10!
10 P3 = =
(10 − 3)! 7!
10 ⋅ 9 ⋅ 8 ⋅ 7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1
10 P3 =
7⋅6⋅5⋅4⋅3⋅2⋅1
10 P3 = 10 ⋅ 9 ⋅ 8
10 P3 = 720
Solution:
5! 5! 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1
5P2 = = = = 5 ⋅ 4 = 20
(5 − 2)! 3! 3⋅2⋅1
5! 5! 5⋅4⋅3⋅2⋅1 5⋅4
5C2 = = = = = 10
2!(5 − 2)! 2! ⋅ 3! 2 ⋅ 1 ⋅ 3 ⋅ 2 ⋅ 1 2
22
The difference between 5P2 and 5C2 is
5P2 −5 C2 = 20 − 10 = 10
4. The high school girls’ basketball team has 8 players, 5 of whom are
seniors. They need to figure out which senior will be captain and which
senior will be co-captain. To make it fair, they choose two players out of a
hat. The first drawn will be captain and the second will be co-captain. How
many different captain/co-captain pairs are possible?
Solution:
Since the order matters, we have to calculate the permutations. There are
5 seniors we can choose from, and 2 spots to put them in.
n! 5! 5! 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1
n Pk = = = = = 5 ⋅ 4 = 20
(n − k)! (5 − 2)! 3! 3⋅2⋅1
5. How many different ways can the letters in the word “SUCCESS” be
rearranged?
Solution:
23
Since the order matters, we have to calculate the permutations. There are
7 letters we can choose from, and 7 spots to put them in.
n! 7! 7! 7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1
n Pk = = = = = 5,040
(n − k)! (7 − 7)! 0! 1
But since the letter S repeats three times in the word and the letter C
repeats twice, the actual number of unique rearrangements will be less
than 5,040. We have to divide by 3! for the S and by 2! for the C.
6. Mrs. B’s kindergarten class has 14 students and Mr. G’s kindergarten
class has 16 students. Three students will be selected at random from each
of these classrooms to ride on a float in the school parade coming up next
week. How many different groups of 6 can be chosen to ride the float?
Solution:
24
BINOMIAL RANDOM VARIABLES
1. We toss a fair coin 15 times and record the number of tails. Is this
experiment modeled by a binomial random variable? If it isn’t, explain why.
If it is, determine its parameters n and p and express the binomial random
variable as X ∼ B(n, p).
Solution:
Solution:
25
80 4
p= = ≈ 0.09
900 45
Solution:
We’re being asked to find the probability that we get exactly 4 successes
in 12 trials, if the probability of success is p = 0.08.
(4)
12
P(X = 4) = (0.08)4(1 − 0.08)8
P(X = 4) ≈ 0.0104
26
Y 0 1 2 3 4 5 6 7 8 9 10
P(Y)
Solution:
With n = 10, p = 1/6, and k = 0, 1, 2, 3, . . . 10, find P(Y = k) for each value of k
using
(k)
n
P(k successes in n trials) = p k(1 − p)n−k
Y 0 1 2 3 4 5 6 7 8 9 10
27
Solution:
Solution:
(3)
8
P(X = 3) = (0.3)3(1 − 0.3)5
P(X = 3) ≈ 0.2541
28
POISSON DISTRIBUTIONS
Solution:
λ xe −λ
P(x) =
x!
1012e −10
P(12) =
12!
P(12) ≈ 0.0948
29
2. A student is able to solve 6 practice problems per hour, on average.
Find the probability that she can solve at least 4 in the next hour.
Solution:
The probability that the student solves at least 4 practice problems is the
probability that she doesn’t solve either 0, 1, 2, or 3 practice problems. So
the probability we need to find is
e −6 6e −6 36e −6 216e −6
P(X ≥ 4) = 1 − − − −
1 1 2 6
1 6 18 36
P(X ≥ 4) = 1 − − − − 6
e 6 e 6 e 6 e
1
P(X ≥ 4) = 1 − (1 + 6 + 18 + 36)
e 6
61
P(X ≥ 4) = 1 −
e6
P(X ≥ 4) ≈ 0.8488
30
So the probability the student will solve at least 4 homework problems is
approximately 0.8488 or 84.88 % .
Solution:
The probability that the student solves at most 3 practice problems is the
probability that she solves either 0, 1, 2, or 3 practice problems. So the
probability we need to find is
e −5 5e −5 25e −5 125e −5
P(X ≤ 3) = + + +
1 1 2 6
1 5 25 125
P(X ≤ 3) = 5 + 5 + 5 + 5
e e 2e 6e
( 6 )
1 25 125
P(X ≤ 3) = 1 + 5 + +
e 5 2
31
e (6 6 )
1 36 75 125
P(X ≤ 3) = 5 + +
6
118
P(X ≤ 3) = 5
3e
P(X ≤ 3) ≈ 0.2650
Solution:
λ xe −λ
P(x) =
x!
5060e −50
P(60) =
60!
32
P(60) ≈ 0.0201
Solution:
The probability that the baker bakes more than 5 cakes is the probability
that he doesn’t bake either 0, 1, 2, 3, 4, or 5 cakes. So the probability we
need to find is
33
1,000e −10 10,000e −10 100,000e −10
− − −
6 24 120
( 3 )
1 500 1,250 2,500
P(X > 5) = 1 − 1 + 10 + 50 + + +
e 10 3 3
4,433
P(X > 5) = 1 −
3e 10
So the probability the baker will bake more than 5 cakes is approximately
0.9329 or 93.29 % .
Solution:
The probability that the baker frosts fewer than 5 cakes is the probability
that he frosts either 0, 1, 2, 3, or 4 cakes. So the probability we need to find
is
34
P(X < 5) = P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3) + P(X = 4)
e −2 2e −2 4e −2 8e −2 16e −2
P(X < 5) = + + + +
1 1 2 6 24
1 2 2 4 2
P(X < 5) = 2 + 2 + 2 + 2 + 2
e e e 3e 3e
e2 ( 3 3)
1 4 2
P(X < 5) = 1 + 2 + 2 + +
7
P(X < 5) =
e2
So the probability the baker will frost fewer than 5 cakes is approximately
0.9473 or 94.73 % .
35
“AT LEAST” AND “AT MOST,” AND MEAN, VARIANCE, AND STANDARD
DEVIATION
Solution:
Since we’re running n = 15 trials, and we want to find the probability that
we get the first success after the 7th trial, we can express this as
1 − P(X ≤ 7)
(0) (1)
15 0 15 15
P(X ≤ 7) = (0.45) (1 − 0.45) + (0.45)1(1 − 0.45)14
(2) (3)
15 15
+ (0.45)2(1 − 0.45)13 + (0.45)3(1 − 0.45)12
(4) (5)
15 15
+ (0.45)4(1 − 0.45)11 + (0.45)5(1 − 0.45)10
(6) (7)
15 15
+ (0.45)6(1 − 0.45)9 + (0.45)7(1 − 0.45)8
36
P(X ≤ 7) = 0.5515 + 15(0.45)(0.5514)
+105(0.452)(0.5513) + 455(0.453)(0.5512)
+1,365(0.454)(0.5511) + 3,003(0.455)(0.5510)
+5,005(0.456)(0.559) + 6,435(0.457)(0.558)
P(X ≤ 7) ≈ 0.6535
Then 1 − P(X ≤ 7) is
1 − P(X ≤ 7) ≈ 1 − 0.6535
1 − P(X ≤ 7) ≈ 0.3465
Solution:
Let X be the number of households that own a pet. Then we can express
the variable as X ∼ B(12,0.68). The probability that we’ll have fewer than 8
successes is
37
(0) (1)
12 0 12 12
P(X < 8) = (0.68) (1 − 0.68) + (0.68)1(1 − 0.68)11
(2) (3)
12 12
+ (0.68)2(1 − 0.68)10 + (0.68)3(1 − 0.68)9
(4) (5)
12 12
+ (0.68)4(1 − 0.68)8 + (0.68)5(1 − 0.68)7
(6) (7)
12 6 6 12
+ (0.68) (1 − 0.68) + (0.68)7(1 − 0.68)5
+66(0.682)(0.3210) + 220(0.683)(0.329)
+495(0.684)(0.328) + 792(0.685)(0.327)
+924(0.686)(0.326) + 792(0.687)(0.325)
Solution:
38
Let X be the number of households that own a pet. Then we can express
the variable as X ∼ B(12,0.68). The expected value is
The variance is
Solution:
Let X be the number of runners who finish the Boston Marathon. Then we
can say X ∼ B(140,0.97). Then the expected value is
5. We roll a fair die 6 times. What is the probability we’ll observe an even
number in at most 3 of the rolls?
39
Solution:
(0) (1)
6 6
P(X ≤ 3) = (0.5)0(1 − 0.5)6 + (0.5)1(1 − 0.5)5
(2) (3)
6 2 4 6
+ (0.5) (1 − 0.5) + (0.5)3(1 − 0.5)3
P(X ≤ 3) = 42(0.56)
P(X ≤ 3) ≈ 0.6563
6. We roll two fair 6-sided die 10 times and observe the sum. What is the
probability of rolling a sum of 7 on at least six of the rolls?
Solution:
Let X be the number of times we roll a sum of 7. Since there are 36 possible
rolls when we roll two die, and 6 of them result in a sum of 7,
40
1 2 3 4 5 6
the probability is
6 1
P(sum of 7) = =
36 6
( 6)
1
X ∼ B 10,
or
1 − P(X ≤ 5)
( 0 )(6) ( 6) ( 1 )(6) ( 6)
0 10 1 9
10 1 1 10 1 1
P(X ≤ 5) = 1− + 1−
41
( 2 )(6) ( 6) ( 3 )(6) ( 6)
2 8 3 7
10 1 1 10 1 1
+ 1− + 1−
( 4 )(6) ( 6) ( 5 )(6) ( 6)
4 6 5 5
10 1 1 10 1 1
+ 1− + 1−
(6) (6)(6)
10 9
5 1 5
P(X ≤ 5) = + 10
P(X ≤ 5) ≈ 0.9976
Then 1 − P(X ≤ 5) is
1 − P(X ≤ 5) ≈ 1 − 0.9976
1 − P(X ≤ 5) ≈ 0.0024
42
BERNOULLI RANDOM VARIABLES
Solution:
The set of 5 spins can be considered Bernoulli trials because the spins are
independent of one another, there are exactly two outcomes (land on a
winning, or not), and the probability of success (landing on a winner)
remains constant for each trial at p = 2/8 = 1/4 = 0.25 = 25 % .
Solution:
43
We already know that the probability of winning on any single spin is
p = 2/8 = 1/4 = 0.25 = 25 % , which means μ = p = 0.25. The standard
deviation will therefore be
Solution:
44
get to choose a stuffed animal. Find the probability of observing no
winners in a set of 5 spins.
Solution:
2 1
P(winner) = p = = = 0.25
8 4
Solution:
If we observe at least one winner out of 5 spins, that means we’re looking
for the probability of getting 1, 2, 3, 4, or 5 winners. The only result we’re
excluding is the probability of getting 0 winners. Which means we could
45
flip this problem around and calculate the probability of at least 1 winner
as
P(W ≥ 1) = 1 − P(W = 0)
P(W ≥ 1) = 1 − 0.2373
P(W ≥ 1) = 0.7627
6. Our goal is to learn about the percentage of students with high ACT
scores. We randomly select high school seniors and record their highest
ACT score. Explain why these aren’t Bernoulli trials. Then design a way to
conduct the experiment differently so that they can be considered
Bernoulli trials.
Solution:
These are not Bernoulli trials because actual ACT scores are recorded. This
is a random variable, but the variable can take on many different values,
not simply “success” or “failure.”
46
Then the probability of a senior having a score of 28 or higher will have
some constant probability of success from trial to trial, so we now have an
experiment in which we’re using Bernoulli trials.
47
GEOMETRIC RANDOM VARIABLES
Solution:
Solution:
48
80 4
p= = ≈ 0.09
900 45
Solution:
We’re being asked to find the probability that we get our first success on
the 5th trial, if the probability of success on any single trial is p = 0.25.
P(X = 5) = (0.25)(0.75)4
P(X = 5) ≈ 0.0791
Solution:
49
The probability of success on any single trial is p = 1/6, which means the
probability of failure is 1 − p = 1 − (1/6) = 5/6. Therefore, the probability that
we get a 2 within the first 5 trials is
P(X ≤ 5) ≈ 0.5981
Solution:
The probability of success on any single trial is p = 1/6, which means the
probability of failure is 1 − p = 1 − (1/6) = 5/6. Therefore, the probability that
we get a 2 within the first 5 trials is
50
6 (6) 6 (6) 6 (6) 6 (6) 6 (6)
0 1 2 3 4
1 5 1 5 1 5 1 5 1 5
P(X ≤ 5) = + + + +
P(X ≤ 5) ≈ 0.5981
Therefore, the probability that we don’t observe a success until the 6th
trial or later is
P(X ≥ 6) ≈ 1 − 0.5981
P(X ≥ 6) ≈ 0.4019
Solution:
Let X be the trial when we find our first pet owner. We know that X is a
geometric random variable with X ∼ Geom(0.68). Then the expected value
is
1 1
μX = E(X ) = = ≈ 1.471
p 0.68
51
52