Tutorials › Stochastic Processes › Ruin Probabilities in a Fair Finite Game

Gambler's Ruin · Tutorial 303 of 994

Ruin Probabilities in a Fair Finite Game

Use first-step conditioning and boundary values to derive the exact upper-hit and ruin probabilities in a fair finite game.

Intermediate 10 min read

What You'll Learn

  • Define the fair finite-capital game and its absorption boundaries
  • Derive the first-step recurrence for reaching the upper boundary
  • Solve the recurrence using successive differences
  • Distinguish upper-boundary success probability from ruin probability
  • Verify exact probabilities by substitution in small games
  • Identify a common boundary-labeling error

The Fair Finite Game and Its Two Outcomes

In a fair finite game, the player’s capital changes by one unit at each play, with equal probabilities of a win and a loss. The game ends when capital reaches either zero or a fixed upper boundary. The probability of reaching the upper boundary before zero is a natural measure of success; its complement is the probability of ruin. The first-step recurrence turns either probability into a boundary-value problem whose solution is linear in the starting capital.

Let \(N\ge1\) be an integer. On a probability space \((\Omega,\mathcal{F},\mathbb{P})\), let \((X_n)_{n\ge0}\) be the player’s capital after \(n\) plays, with state space \(S=\{0,1,\ldots,N\}\) and discrete time \(n\ge0\). The states \(0\) and \(N\) are absorbing: once the capital reaches either boundary, it stays there. At each interior state \(i\), the next capital is \(i-1\) or \(i+1\), each with probability \(\tfrac12\). The filtration is \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\). Write \(\mathbb{P}_i\) for probabilities when \(X_0=i\).

Definition: For \(0\le i\le N\), let \(h_i=\mathbb{P}_i(\text{the game reaches }N\text{ before }0)\). For an interior starting state, this is the probability of reaching \(N\) before ruin. The ruin probability is \(r_i=\mathbb{P}_i(\text{the game reaches }0\text{ before }N)\).

For clarity, define \(\tau_0=\inf\{n\ge0:X_n=0\}\) and \(\tau_N=\inf\{n\ge0:X_n=N\}\), with the infimum of the empty set equal to infinity. Then \(h_i=\mathbb{P}_i(\tau_N<\tau_0)\) and \(r_i=\mathbb{P}_i(\tau_0<\tau_N)\). At a boundary, the corresponding hitting time is zero, so \(h_0=0\), \(h_N=1\), \(r_0=1\), and \(r_N=0\). For interior starting states, the two boundary hitting times cannot be equal: the chain can occupy only one state at any given time.

Why the Game Reaches a Boundary

Before identifying the two outcomes as complements, it is useful to verify that the game is absorbed with probability one. In any block of \(N\) plays, the event that all \(N\) plays are losses has probability \(2^{-N}\). From any interior capital, that event forces the chain to reach zero within the block: if the starting capital is \(i\le N\), then \(i\) consecutive losses suffice, and the remaining losses leave the chain at the absorbing state zero.

Consequently, conditional on still being in an interior state at the start of a block, the probability of remaining unabsorbed throughout the next \(N\) plays is at most \(1-2^{-N}\). Applying this bound successively gives \(\mathbb{P}_i(\tau_0\wedge\tau_N>kN)\le(1-2^{-N})^k\) for every integer \(k\ge0\). The right-hand side tends to zero as \(k\) tends to infinity. Thus the game reaches one of its two boundaries almost surely. In particular, from any interior state the upper-hit and ruin events are complementary, and \(r_i=1-h_i\).

First-Step Recurrence and Its Linear Solution

If the game starts at an interior state \(i\), its first play moves it to \(i-1\) or \(i+1\), each with probability \(\tfrac12\). Conditioning on that first play and using the Markov property gives the recurrence

$$ h_0=0,\qquad h_N=1,\qquad h_i=\tfrac12h_{i-1}+\tfrac12h_{i+1} \quad (1\le i\le N-1). $$
Theorem: For the fair finite game with boundaries \(0\) and \(N\), the unique solution to the upper-hit recurrence is \(h_i=\tfrac{i}{N}\) for \(0\le i\le N\). Therefore the probability of ruin is \(r_i=\tfrac{N-i}{N}\).

Proof. First suppose \(N\ge2\). For any solution of the recurrence, multiply the interior equation by \(2\) and rearrange to obtain \(h_{i+1}-h_i=h_i-h_{i-1}\) for every \(1\le i\le N-1\). Define the successive differences \(d_i=h_i-h_{i-1}\) for \(1\le i\le N\). The rearranged equation says \(d_{i+1}=d_i\), so all \(N\) differences equal a constant \(c\). Summing them gives \(h_N-h_0=\sum_{i=1}^N d_i=Nc\). The boundary values give \(h_N-h_0=1\), hence \(c=\tfrac1N\). Since \(h_0=0\), summing the first \(i\) differences yields \(h_i=ic=\tfrac{i}{N}\). This argument also proves uniqueness: every solution must have those same differences and boundary values. Direct substitution verifies existence, since \(\tfrac12\frac{i-1}{N}+\tfrac12\frac{i+1}{N}=\tfrac{i}{N}\) for each interior \(i\). The ruin formula follows from almost-sure absorption and \(r_i=1-h_i\). If \(N=1\), there are no interior states; the two boundary values alone give \(h_0=0\), \(h_1=1\), which agree with \(h_i=\tfrac{i}{N}\). The corresponding ruin values also agree with \(r_i=\tfrac{N-i}{N}\). \(\square\)

The recurrence is linear because the two possible next states are weighted equally and the boundary values are fixed. The equality of the two transition probabilities matters: it makes the successive differences constant. This tutorial concerns that fair case; changing the win and loss probabilities changes the recurrence and its solution.

Worked Calculations

Worked Example: Starting at Capital One with Upper Boundary Four

Let \(N=4\), and start at \(i=1\). In the state order \(0,1,2,3,4\), the transition matrix is

$$ P= \begin{bmatrix} 1&0&0&0&0\\ \tfrac12&0&\tfrac12&0&0\\ 0&\tfrac12&0&\tfrac12&0\\ 0&0&\tfrac12&0&\tfrac12\\ 0&0&0&0&1 \end{bmatrix}. $$

The row sums are \(1\), \( \tfrac12+\tfrac12=1\), \( \tfrac12+\tfrac12=1\), \( \tfrac12+\tfrac12=1\), and \(1\), respectively, so each row is a probability distribution. The recurrence gives \(h_0=0\), \(h_4=1\), and \(2h_1=h_0+h_2\), \(2h_2=h_1+h_3\), \(2h_3=h_2+h_4\). The theorem gives \(h_1=\tfrac14\), \(h_2=\tfrac24=\tfrac12\), and \(h_3=\tfrac34\). Thus, from capital one, the probability of reaching four before ruin is \(\tfrac14\), and the ruin probability is \(1-\tfrac14=\tfrac34\).

Check by substitution. At state \(1\), \(\tfrac12h_0+\tfrac12h_2=\tfrac12(0)+\tfrac12(\tfrac12)=\tfrac14=h_1\). At state \(2\), \(\tfrac12h_1+\tfrac12h_3=\tfrac12(\tfrac14)+\tfrac12(\tfrac34)=\tfrac18+\tfrac38=\tfrac12=h_2\). At state \(3\), \(\tfrac12h_2+\tfrac12h_4=\tfrac12(\tfrac12)+\tfrac12(1)=\tfrac14+\tfrac12=\tfrac34=h_3\). The boundary values also match the stated solution.

Worked Example: Solving the Recurrence Directly When the Boundary Is Three

Let \(N=3\). In the state order \(0,1,2,3\), the transition matrix has rows \((1,0,0,0)\), \((\tfrac12,0,\tfrac12,0)\), \((0,\tfrac12,0,\tfrac12)\), and \((0,0,0,1)\). Their sums are \(1\), \(\tfrac12+\tfrac12=1\), \(\tfrac12+\tfrac12=1\), and \(1\). Starting from state \(1\), solve for the upper-hit probability using the two interior equations:

$$ h_1=\tfrac12h_2,\qquad h_2=\tfrac12h_1+\tfrac12. $$

Substitute the first equation into the second: \(h_2=\tfrac12(\tfrac12h_2)+\tfrac12=\tfrac14h_2+\tfrac12\). Subtracting \(\tfrac14h_2\) gives \(\tfrac34h_2=\tfrac12\), so \(h_2=\tfrac12\cdot\tfrac43=\tfrac23\). Then \(h_1=\tfrac12\cdot\tfrac23=\tfrac13\). From capital one, the upper-hit probability is \(\tfrac13\), while the ruin probability is \(1-\tfrac13=\tfrac23\).

Check by substitution. With \(h_0=0\), \(h_1=\tfrac13\), \(h_2=\tfrac23\), and \(h_3=1\), the first recurrence gives \(\tfrac12h_0+\tfrac12h_2=0+\tfrac13=\tfrac13=h_1\). The second gives \(\tfrac12h_1+\tfrac12h_3=\tfrac16+\tfrac12=\tfrac16+\tfrac36=\tfrac23=h_2\). The formula \(h_i=i/3\) gives the same values.

Worked Example: A One-Step Game

Let \(N=2\) and start at \(i=1\). In the state order \(0,1,2\), the transition matrix is \(\begin{bmatrix}1&0&0\\ \tfrac12&0&\tfrac12\\ 0&0&1\end{bmatrix}\). The row sums are \(1\), \(\tfrac12+\tfrac12=1\), and \(1\). From state \(1\), one loss leads to ruin at \(0\), and one win reaches \(2\). Each outcome has probability \(\tfrac12\), so \(h_1=\tfrac12\) and \(r_1=\tfrac12\). The recurrence checks this directly: \(\tfrac12h_0+\tfrac12h_2=\tfrac12(0)+\tfrac12(1)=\tfrac12=h_1\). The formula gives \(h_1=\tfrac12\) and \(r_1=\tfrac{2-1}{2}=\tfrac12\), as required.

Interpretation and a Common Mistake

The starting capital affects the two probabilities in opposite directions. Increasing \(i\) by one increases the chance of reaching \(N\) first by exactly \(\tfrac1N\), and decreases the chance of ruin by the same amount. At \(i=0\), ruin is certain; at \(i=N\), ruin is impossible. These endpoint checks are useful for identifying whether a calculation is answering the question asked.

Common mistake: swapping success and ruin probabilities. A wrong calculation might label \(i/N\) as the probability of ruin. For \(N=4\) and \(i=1\), that gives a claimed ruin probability of \(\tfrac14\). But \(i/N=\tfrac14\) is the upper-hit probability: it has boundary values zero at \(i=0\) and one at \(i=N\). Ruin instead has boundary values one at zero and zero at \(N\), so its value is \(1-h_i=1-\tfrac14=\tfrac34\). Checking the two boundary values before interpreting a recurrence solution prevents this reversal.

Check Your Understanding

For each question, distinguish reaching the upper boundary from being ruined, and use the boundary values to check your interpretation.

  1. In a fair game with \(N=5\), what are the upper-hit and ruin probabilities from \(i=2\)?
  2. For \(N=4\), write the first-step equation for \(h_2\), including the values of its two neighboring states.
  3. Why does the recurrence imply that \(h_{i+1}-h_i=h_i-h_{i-1}\) at every interior state?
  4. For \(N=3\), verify the recurrence at \(i=2\) using \(h_i=i/3\).
  5. What boundary values should a proposed formula have if it represents the probability of ruin rather than the probability of reaching \(N\) first?