A fair coin is flipped times. The probability of getting exactly two heads, given that at least one flip results in a head, can be written as , where and are coprime positive integers. What is the value of ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Solution 1: Let A be the probability of getting exactly 2 heads. Let B be the probability of getting at least 1 heads. Applying Bayes' rule, P ( A ∣ B ) = P ( B ) P ( A ∩ B ) , which is the probability of getting 2 heads given at least 1 head.
We have P ( A ) = 2 3 ( 2 3 ) = 8 3 and P ( B ) = 1 − ( 2 1 ) 3 = 8 7 . P ( A ∩ B ) = P ( A ) as getting two heads means that we have at least one head.
Thus P ( A ∣ B ) = P ( B ) P ( A ∩ B ) = P ( B ) P ( A ) = 8 7 8 3 = 7 3 .
Hence a + b = 3 + 7 = 1 0 .
Solution 2: This problem is easily solved by looking at the sample space. The sample space of flipping a coin 3 times is: HHH, HHT, HTH, HTT, THH, THT, TTH and TTT.
Because we know at least one flip resulted in heads, we can rule out the possibility of TTT. Therefore there are 7 possible outcomes. There are 3 possible ways of getting exactly two heads: HHT, HTH and THH.
Therefore the probability is 7 3 . Hence a + b = 3 + 7 = 1 0 .