TITLE: ±1-random walk from 5 until 20 or broke
QUESTION [38 upvotes]: You play a game where a fair coin is flipped. You win 1 if it shows heads and lose 1 if it shows tails. You start with 5 and decide to play until you either have 20 or go broke. What is the probability that you will go broke?

REPLY [5 votes]: All answers so far are great but some readers seem to feel they lack an intuitive explanation - and perhaps the maths to back it up.
Consider that you have an equal chance of moving up or down along your two paths.
$$P_{u} = P_{d} = \frac{1}{2}$$
And your path lengths up and down are:
$$L_{u} = |20 - 5| = 15 $$
$$L_{d} = |0- 5| = 5 $$
$$L_{u} = 3 L_{d}$$
Now we know we have to end up, whatever the route, having moved a total distance of $L_{u}$ or $L_{d}$.
We know the probability of getting to $0$ plus the probability of getting to $20$ has to be 1 with the same proportionality constant. The probability that you complete one path (ie reach $0$ or $20$) before the other one is completed depends on the pathlength of the competing process (ie the longer it takes for one outcome to occur the better the chances for the alternative). As such:
$$P_{0} \propto L_{u}$$
So, canceling the constant of proportionality, we get the probability of going broke as:
$$\frac{P_{0}}{P_{total}} = \frac{L_{u}}{L_{u}+L_{d}} = \frac{3L_{d}}{4L_{d}}=\frac{3}{4} $$
Where $P_{total} = 1$ so $P_{0} = \frac{3}{4}$