Alex has 27 biased coins C 1 . . . C 2 7 with coin C i having a probability 2 ⋅ i + 1 1 of flipping heads. Compute the probability that Alex flips an odd number of heads.
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.
Instead, suppose we had n coins, and let the probability of flipping an odd number of heads be p n .
Flip the last coin. If it flips tails, then flipping the remaining coins should result in an odd number of heads. If it flips heads, then flipping the remaining coins should result in an even number of heads. In all
p n = 2 n + 1 2 n p n − 1 + 2 n + 1 1 ( 1 − p n − 1 ) which simplifies to ( 2 n + 1 ) p n − ( 2 n − 1 ) p n − 1 = 1 Adding from n = 1 to n = m and using p 0 = 0 , we get
p m = 2 m + 1 m In particular, the answer to this question is 5 5 2 7 .
Problem Loading...
Note Loading...
Set Loading...
Let
P ( x ) = i = 1 ∏ 2 7 ( 2 ⋅ i + 1 h + 2 ⋅ i + 1 2 ⋅ i )
Looking at the coefficient of the h j th term, we see that this corresponds exactly with the probability that j heads are flipped. This is because in each term of the product, you are choosing whether or not to use the term with the h , which has a coefficient equivalent to the probability. Functions like these are known as a generating functions .
If we plug in -1 for h in P , we see that all of the odd coefficients turn negative and the h term disappears. Therefore, if we subtract P ( − 1 ) from P ( 1 ) , we simply get double the probability that there are an odd number of heads. So dividing by two will give us our answer!
Now, we wish to compute 2 P ( 1 ) − P ( − 1 )
We see that P ( 1 ) is 1 immediately since all of the individual factors in the product turn to 1 . On the other hand, P ( − 1 ) becomes ∏ i = 1 2 7 2 ⋅ i + 1 2 ⋅ i − 1 . This series is a telescoping series - product and simply becomes 5 5 1 . Therefore, out solution is simply half of 1 − 5 5 1 = 5 5 2 7 .