Consider this experiment:
A coin is tossed and the outcome of the toss recorded. If the outcome is heads the toss is given a score of $1$. If the outcome is tails the toss is given a score of $-1$. The coin is then tossed again and scores given in the same way, until the cumulative score of each toss gets back to $0$.
My questions are:
- Is this game guaranteed to finish in a finite number of tosses (i.e. can it go on forever with the cumulative score never reaching $0$)
- What is the expected length of the game?
So far I can see that each coin toss is an independent Bernoulli trial but the cumulative score after $k$ tosses depends on the cumulative score after $k-1$ tosses. I can't think of any distribution that could model the random variable of the cumulative score so could anyone give me some pointers about how to solve this problem?
Thanks!
In answer to the first question, the game could technically go on "forever". No matter how many times (n) you flip the coin, there will be a $\frac{1}{2^n}$ chance of getting all heads or all tails as long as the coin is flipped a countable number of times. Thus you would have a score of $\pm n$ and not zero. However, as the comments have pointed out, if you really flip the coin a truly infinite number of times, then you must eventually get a score of 0.
As for the second question, I'm not sure. It would have to be an even number of turns so that the number of heads would equal the number of tales, but as the game goes on, you get less and less likely to "win". Flipping two coins gives a 50% chance of winning (HeadsTails or TailsHeads), but flipping four coins only gives a 37.5% chance (HHTT, HTHT, THHT, HTTH, THTH, TTHH). The chance of taking four turns to win is even less because in 4 out of those 6 scenarios you would have already won on the first turn. I would say the most common game length would be two turns, but the average game length would be closer to 6 or 8 turns.