Here's the game: You start with 1\$ at time 0. Every minute you win 1\$ with probability 0.5 and lose 1\$ with probability 0.5. You win the game if at any time you reach 5\$. You lose the game if at any time you have 0\$. What is the probability you have won by the 11th step (including the possibility of winning at earlier steps)? Can we generalize to non-symmetric walks or different number of steps?
It seems this should be easy but it confuses me. I know how to find the probability you win eventually. But the recurrence relation used for that would lead to a double recurrence here which I am unsure how to solve.
I like to draw a diagram for this kind of question. In the figure below, the number of dollars is indicated by vertical lines with zero on the left (red) and 5 on the right (green). The steps, starting at zero go down the figure. Paths through the game are obtained by traversing the diagonal black lines. At each junction, the number of routes to reach it is indicated in italics.
With this, I make the probability of a win by 11 steps equal to the sum of probabilities of winning in 4, 6, 8 and 10 steps. I.e.
$\qquad \frac{1}{2^4} + \frac{3}{2^6} + \frac{8}{2^8} + \frac{21}{2^{10}} = \frac{165}{1024} $
The probability of a loss by 11 steps can similarly be found using the numbers to the left of the red line. The probability of the game still continuing at 11 steps should be $\frac{89+55}{2^{11}}$.
It is nice that the Fibonacci numbers turn up in the number of routes for the junctions.