Stochastic Processes
Intermediate
9 min

Gambler's Ruin

First-step analysis for the probability and expected time to hit one of two absorbing boundaries.

1. The idea

A gambler starts with dollars and bets dollar repeatedly, winning with probability and losing with probability , stopping at (ruin) or (target). First-step analysis conditions on the outcome of the very next bet to build a recursion.

For a fair game (), the probability of reaching before starting from is simply — proportional to the starting fraction of the target — and the expected time to absorption is .

For a biased game (), the ruin probabilities involve the likelihood ratio : .

2. Why it matters

First-step analysis (condition on the first move, write a recursion, solve using boundary conditions) is a general-purpose technique for any absorbing Markov chain, not just casino games — it appears in inventory, ruin, and pricing recursions.

3. Core mathematics

Setup

Fair game hitting probability

Fair game expected time

Biased game hitting probability

Recursion (first-step)

4. How to recognize it

Think of this when…

  • A process with two absorbing boundaries (bankruptcy vs. target wealth, or two competing states)
  • "Starting with , what is the probability of reaching before ?"
  • Repeated bets or steps with fixed win probability
  • Requests for expected time until absorption

5. Worked example

Worked example

A gambler starts with and plays a fair game () against a target of , betting each round. Find the probability of reaching before going broke, and the expected number of rounds played.

  1. 1

    This is fair gambler's ruin with , .

  2. 2

    Use the fair-game hitting probability formula.

  3. 3

    Use the fair-game expected duration formula.

  4. Answer: Probability of reaching $10 first is ; expected number of rounds is .

6. Common mistakes

  • Using the fair-game formula when the game is biased ()
  • Mixing up which boundary is vs. , flipping the probability
  • Forgetting boundary conditions when setting up the recursion from scratch
  • Applying for expected time in a biased game, where it does not hold

7. Quick check

In a fair gambler's ruin with , , what is the probability of reaching before ?

What recursion underlies the gambler's ruin hitting probability ?

8. Practice

2 QuantSolve questions use this concept.

Practice this concept

9. Related methods