Calvin's odd condition

Calvin flips a fair coin before he sees a run of an odd number of heads, followed by a tail. What is the expected number of times Calvin must flip the coin?


The answer is 6.

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.

2 solutions

Let E E be the expected value.

If Flip #1 = T, we're 1 flip in and exactly where we started.

If Flip #1 = H, then we have two possibilities:

  • Flip #2 is H, then we're back to where we started, since we have an even number of heads.

  • Flip #2 is T, then we're done.

Thus, E = 1 2 ( 1 + E ) + 1 2 ( 1 2 ( 2 + E ) + 1 2 ( 2 ) ) E = \frac{1}{2} \left(1+E\right) + \frac{1}{2}\left(\frac{1}{2}(2+E)+\frac{1}{2}(2)\right) which simplifies to E = 1 2 ( 1 + E ) + 1 4 ( 2 + E ) + 1 4 ( 2 ) = 3 2 + 3 4 E E = \frac{1}{2}(1+E) + \frac{1}{4}(2+E) + \frac{1}{4}(2) = \frac{3}{2} + \frac{3}{4}E so E = 6. E=6.

Omkar Kamat
Dec 24, 2014

This solution involves some probability theory.

Let c= E(X) where x is the event we want. Using conditional probability, we find that c=p(x/ tails )0.5 + p(x/heads)0.5 . Conditioning again gives us c= 0.5c + (2(0.5)+p(x/1tail and 1head)0.5)0.5 = 0.5c + 0.5 + (2+c)0.25. Rearranging for c gives us c= 6

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...