Math 3C Homework 3 Solutions: Ilhwan Jo and Akemi Kashiwada

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Math 3C Homework 3 Solutions

Ilhwan Jo and Akemi Kashiwada


ilhwanjo@math.ucla.edu, akashiwada@ucla.edu

Assignment: Section 12.3 Problems 2, 7, 8, 9, 11, 13, 15, 18, 21, 22, 29, 31, 32
2. You draw three cards from a standard deck of 52 cards. Find the probability that the third card is a club
given that the first two cards were clubs.
Solution
Let A be the event that the third card is a club and let B the event that the first two cards were clubs.
Then the probability that all three cards are clubs is
13
3
,
P (A B) = 52
3

and the probability of the first two cards being clubs is


13
2
.
P (B) = 52
2

So the conditional probability that the third card is a club given that the first two were clubs is
(13
3)
P (A B)
11
(52
3)
P (A|B) =
= 13 =
.
(2)
P (B)
50
52
(2)
Another way of doing this problem is noticing that the probability of the first card being a club is 13
52 and
.
As
2
clubs
have
already
been
removed
from
the
the probability of the second card being a club is 12
51
deck, there are only 11 clubs left out of the 50 remaining cards. So the probability that the third card is
a club given that the two we already removed are clubs is 11
50 .
7. You roll two fair dice. Find the probability that the first die is a 4 given that the sum is 7.
Solution
Let A denote the event that the first die shows 4 and B denote the event that the sum of the dice is 7.
Notice that for any number the first die shows, there is only one number the second die can show to make
the sum 7 (e.g. if the first die shows 5 then the second die must show 2 to make the sum 7). So there are
a total of 6 ways to make the sum of the two dice equal 7 so
P (B) =

6
.
36

Now, if the first die shows 4 there is only one way to make the sum of both dice equal 7 which means
P (A B) =

1
.
36

Therefore, the probability that the first die shows 4 given that the sum is 7 is
P (A|B) =

1/36
1
P (A B)
=
= .
P (B)
6/36
6
1

8. You roll two fair dice. Find the probability that the first die is a 5 given that the minimum of the two
numbers is 3.
Solution
Let A denote the event that the first die shows 5 and B denote the event that the minimum of both dice
is 3. If the minimum of both dice is 3, then at least one of the two dice must be 3 and both must be
greater than or equal to 3. So
7
P (B) =
.
36
The probability that the first die shows 5 and the second shows 3 is
P (A B) =

1
.
36

So the probability that the first die is 5 given that the minimum of both dice is 3 is
P (A|B) =

1/36
1
= .
7/36
7

9. You toss a fair coin three times. Find the probability that the first coin is heads given that at least one
head occurred.
Solution
Let A be the event that the first coin is heads and B be the event that at least one head occurred. This
means B c is the event that no heads occur which happens with probability 18 . So we get
P (B) = 1 P (B c ) = 1

1
7
= .
8
8

If the first coin is a head, then the other two flips can be either heads or tails to satisfy the requirement
that at least one head occurred. Given that we know that
P (A B) =

4
.
8

So the probability that the first coin is a heads given that at least one head occurred is
P (A|B) =

P (A B)
4/8
4
=
= .
P (B)
7/8
7

11. A screening test for a disease shows a positive test result in 90% of all cases when the disease is actually
present and in 15% of all cases when it is not. Assume that the prevalence of the disease is 1 in 100. If the
test is administered to a randomly chosen individual, what is the probability that the result is negative?
Solution
One way of solving this problem is to find the probability that the result is positive then subtracting that
from 1. Let A be the event that the result is negative so Ac is the probability that the result is positive.
Also let B1 be the event that the person is infected and B2 be the event that the person is not infected.
Using the law of total probability we know that the probability that the result is positive is
P (Ac ) = P (Ac |B1 )P (B1 ) + P (Ac |B2 )P (B2 ).
From the given information, we know that P (B1 ) = 1/100, P (B2 ) = 99/100, P (Ac |B1 ) = 0.90 and
P (Ac |B2 ) = 0.15. So
P (Ac ) = 0.90(1/100) + 0.15(99/100) = 0.1575
Since A is the event that the test result is negative and we can calculate that by
P (A) = 1 P (Ac ) = 1 0.1575 = 0.8425.

Another other way of solving this problem is to directly calculate the probability the result is negative.
Using the same definitions of A, B1 , B2 as above, we can use the law of total probability to get
P (A) = P (A|B1 )P (B1 ) + P (A|B2 )P (B2 ).
Then P (B1 ) = 1/100 and P (B2 ) = 99/100. Now the probability that the test is negative given that the
person is infected is P (A|B1 ) = 1 0.90 = 0.10. Similarly the probability that the result is negative if the
person is not infected is P (A|B2 ) = 1 0.15 = 0.85. So
P (A) = 0.10(1/100) + 0.85(99/100) = 0.8425.
13. A drawer contains three bags numbered 1-3. Bag 1 contains two blue balls, bag 2 contains 2 green balls,
and bag 3 contains one blue and one green ball. You choose one bag at random and take out one ball.
Find the probability that the ball is blue.
Solution
Let A be the event that we choose a blue ball and let Bi be the event that bag i is chosen (that is, B1 is
the event that we choose bag 1, B2 is the event that we choose bag 2 and B3 is the event that we choose
bag 3). Using the law of total probability we see that
P (A) = P (A|B1 )P (B1 ) + P (A|B2 )P (B2 ) + P (A|B3 )P (B3 ).
Since each bag is equally likely of being chosen, P (Bi ) = 31 for i = 1, 2, 3. If we choose bag 1, then the
probability of getting a blue ball is 1 and if we choose bag 2 the probability of getting a blue ball is 0. But
if we choose bag 3, there is one of each color ball so the probability of getting the blue ball is 21 . Therefore,
we get

1
1
1
1
1 1
1
P (A) = (1) + (0) +
= + = .
3
3
2
3
3 6
2
15. You pick two cards from a standard deck of 52 cards. Find the probability that the second card is an ace.
Compare this to the probability that the first card is an ace.
Solution
Let A be the event that the second card is an ace, B1 be the event that the first card is an ace and B2 be
the event that the first card is not an ace. Since the Bi partition the sample space, we can use the law of
total probability to get
P (A) = P (A|B1 )P (B1 ) + P (A|B2 )P (B2 ).
4
1
The probability of the first card being an ace is 52
= 13
so the probability of the first card not being an
1
12
ace is 1 13 = 13 . If the first card was an ace, then there are only 3 aces left out of the 51 cards so
3
1
4
P (A|B1 ) = 51
= 17
. Otherwise, if the first card was not an ace, there are still 4 aces left so P (A|B2 ) = 51
.
So we have

1
1
4
12
1
P (A) =
+
=
.
17
13
51
13
13
4
1
Notice that we said the probability of the first card being an ace was P (B1 ) = 51
= 13
so the probability
of the second card being an ace is the same as the probability of the first card being an ace.

18. Suppose that you have a batch of red- and white-flowering pea plants where all three genotypes CC, Cc,
and cc are equally represented. You pick one plant at random and cross it with a white-flowering pea
plant. What is the probability that the offspring will have red flowers?
Solution
Let A be the event that the offspring has red flowers, B1 the event that you pick a plant of genotype CC,
B2 the event that you pick a plant of genotype Cc, and B3 the event that you pick a plant of genotype
cc. Since they are equally represented, P (Bi ) = 13 . Using the law of total probability,
P (A) = P (A|B1 )P (B1 ) + P (A|B2 )P (B2 ) + P (A|B3 )P (B3 ).

Since P (A|B1 ) = 1, P (A|B2 ) = 21 , P (A|B3 ) = 0,


P (A) = 1

1
1
1 1 1
+ +0 = .
3 2 3
3
2

21. You are dealt on card from a standard deck of 52 cards. If A denotes the event that the card is a spade
and if B denotes the event that the card is an ace, determine whether A and B are independent.
Solution
P (A) =

1
4

and P (B) =

1
13 .

The probability P (A B) that the card is the spade ace is


P (A B) =

1
52 .

Hence

1
= P (A)P (B)
52

and A and B are independent.


22. You are dealt two cards from a standard deck of 52 cards. If A denotes the event that the first card is an
ace and B denotes the event that the second card is an ace, determine whether A and B are independent.
Solution
1
From problem 15, we know that P (A) = P (B) = 13
. The probability P (A B) that the two cards are
4
(2)
43
1
aces is 52 = 5251 = 1317 . Hence
(2)
P (A B) 6= P (A)P (B)

and A and B are not independent.


29. Assume that the probability that an insect species lives more than five days is 0.1. Find the probability
that in a sample of size 10 of the this species at least one insect will still be alive after 5 days.
Solution
The probability that an insect lives more than five days is independent of the other insects. So the
probability that all of the ten insects will die within 5 days is (0.9)10 . The probability that at least one
insect will be alive after 5 days is therefore 1 (0.9)10 .
31. A screening test for a disease shows a positive result in 95% of all cases when the disease is actually present
and in 10% of all cases when it is not. If the prevalence of the disease is 1 in 50, and an individual tests
positive, what is the probability that the individual actually has the disease?
Solution
Let A denote the probability that the individual has the disease and B denote the probability that the
1
test shows a positive result. Then we need to find P (A|B) = P P(AB)
(B) . Since the prevalence is 50 ,
P (A B) = 0.95

1
= 0.019,
50

P (B) = P (B|A)P (A) + P (B|AC )P (AC )

1
1
+ 0.1 1
= 0.117.
= 0.95
50
50
Therefore, P (A|B) =

0.019
0.117

0.1624.

32. A screening test for a disease shows a positive result in 95% of all cases when the disease is actually present
and in 10% of all cases when it is not. If a result is positive, the test is repeated. Assume that the second
test is independent of the first test. If the prevalence of the disease is 1 in 50, and an individual tests
positive twice, what is the probability that the individual actually has the disease?
Solution

Let A denote the probability that the individual has the disease, B1 the event that the first result is positive,
1 B2 )
and B2 the event that the second result is positive. We need to find P (A|B1 B2 ) = P P(AB
(B1 B2 ) . We
assume that the two tests are independent. What this means is the following conditional independency:
P (B1 B2 |A) = P (B1 |A)P (B2 |A) = (0.95)2
P (B1 B2 |AC ) = P (B1 |AC )P (B2 |AC ) = (0.1)2 .
So, we have
P (B1 B2 A) = P (B1 B2 |A)P (A) = P (B1 |A)P (B2 |A)P (A)
1
= (0.95)2
= 0.01805
50
P (B1 B2 ) = P (B1 B2 |A)P (A) + P (B1 B2 |AC )P (AC )

1
1
2
2
= (0.95)
+ (0.1) 1
= 0.02785.
50
50
Therefore, P (A|B1 B2 ) =

0.01805
0.02785

0.6481.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy