Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

counting and probability intermediate

Problem

I have an unfair coin that lands as heads with probability of . If I flip the coin 5 times, what is the probability that I get exactly two heads?
Solution
We need exactly two flips to come up heads and three to come up tails. The odds that two flips come up heads is and the odds that the other three all come up tails is . We then need to consider the distinct ways of positioning the heads among the 5 flips: we can put the first one in any of 5 places and the second one in any of the remaining 4 places, but they aren't distinct so we need divide by 2 for a total of ways. Thus the probability is .

Alternatively, we can view flipping this coin 5 times as being equivalent to the expansion of where and . The value of the term in this expansion will be the probability of getting exactly heads, so setting and applying the binomial theorem gives us , which is the same answer we got using the other method.
Final answer
\dfrac{40}{243}