A gambler starts with initial capital of $k$ dollars and repeatedly plays a game where:
The gambler continues playing until either:
Question: What is the probability that the gambler reaches $N$ before going broke?
Let $P_k$ be the probability of reaching $N$ starting from $k$ dollars.
We have the boundary conditions:
For $0 < k < N$, we have the recurrence relation:
The general solution depends on whether the game is fair ($p = q = 0.5$) or unfair ($p \neq q$):
Case 1: Fair Game ($p = 0.5$)
Case 2: Unfair Game ($p \neq 0.5$)
Let $E_k$ be the expected number of games until absorption (reaching 0 or N) starting from $k$.
Fair Game:
Unfair Game:
A gambler starts with $30 and wants to reach $100. Each bet is a fair coin flip.
Solution: Since $p = 0.5$, we use the fair game formula:
The gambler has a 30% chance of reaching $100 before going broke.
Playing roulette (betting on red/black), a gambler starts with $40 and wants to reach $100.
Solution: Since $p \neq 0.5$, we calculate $q/p = 20/18 = 10/9$:
The gambler has only about 0.02% chance of reaching $100!