Player A has £1, Player B £99. They flip a coin. The loser pays the other £1. What is the expected number of games they play before one is bankrupt?
I have struggled at this for hours now with little other than a lot of scribbles to show for it. Please could someone help me out.
Let $E_n$ be the expected number of flips before either player goes bankrupt if player A has $n$ pounds.
For $n = 0$ and $n = 100$, we have $E_{0} = E_{100} = 0$ since one of the players is already bankrupt.
If $0 < n < 100$, then there is a $\frac{1}{2}$ chance of the coin flip resulting in player A having $n-1$ pounds and a $\frac{1}{2}$ chance of the coin flip resulting in player A having $n+1$ pounds. This gives us the recurrence relation $E_n = \frac{1}{2}E_{n-1}+\frac{1}{2}E_{n+1}+1$, i.e. $E_{n+1}-2E_{n}+E_{n-1} = -2$.
Now, we have a linear recurrence relation and two boundary conditions. You can use the methods described on Wikipedia to solve this. Then, your answer is simply $E_1$, which ends up being a lot bigger than I expected.