From a Game to an Exact Probability
In a finite gambler’s ruin game, a player’s fortune moves one unit at a time until it reaches either zero or a fixed target. The probability of reaching zero first can be found from a short recurrence. The arithmetic may be exact, but it is easy to reverse the win and loss probabilities or to impose the wrong boundary values. We will set up the model carefully, derive the solutions, and check each calculation directly in the recurrence.
Take a probability space \((\Omega,\mathcal{F},\mathbb{P})\) carrying independent game outcomes. Let \(N\) be a positive integer, and let the state space be \(S=\{0,1,\ldots,N\}\). The discrete-time process \((X_n)_{n\ge0}\) records the fortune after \(n\) plays, stopped when it reaches either endpoint. From an interior state \(i\), the fortune increases to \(i+1\) with probability \(p\) and decreases to \(i-1\) with probability \(q=1-p\). The boundary states 0 and \(N\) are absorbing. We assume \(0<p<1\), so \(0<q<1\), unless a deterministic boundary case is discussed separately.
For \(1\le i\le N-1\), conditioning on the first play gives \(r_i=q r_{i-1}+p r_{i+1}\): a loss moves the fortune to \(i-1\), while a win moves it to \(i+1\). This recurrence and its boundary values are the calculation’s starting point. The probability of reaching \(N\) first is \(1-r_i\) when the game reaches one of the two endpoints; here the recurrence concerns ruin specifically.
Solving the Recurrence
The formulas below require no limiting argument. We verify that each candidate satisfies the recurrence and boundary values, then use uniqueness to conclude it is the ruin probability. The uniqueness argument is included so that substitution is justified.
Proof. First suppose \(p=q=\frac12\). The proposed values \(r_i=1-i/N\) have \(r_0=1\) and \(r_N=0\). For each interior \(i\),
Now suppose \(p\ne q\), and put \(a=q/p\). Since \(p\ne q\), \(a\ne1\), so the denominator \(1-a^N\) is nonzero. The proposed values \(r_i=(a^i-a^N)/(1-a^N)\) give \(r_0=1\) and \(r_N=0\). For an interior \(i\), the constant term is preserved by the recurrence because \(p+q=1\). Also, because \(a=q/p\), we have \(q/a=p\) and \(pa=q\), and hence
Thus the term \(a^i\), and therefore the proposed expression, satisfies the recurrence. To prove uniqueness, let \(d_i\) be the difference between two solutions. Then \(d_0=d_N=0\) and \(d_i=q d_{i-1}+p d_{i+1}\). If the finite list \(d_0,\ldots,d_N\) had a positive maximum, it would occur at an interior index \(i\). Because \(p,q>0\) and sum to 1, \(d_i=q d_{i-1}+p d_{i+1}\) can equal that maximum only if both neighbors equal it. Repeating this implication reaches a boundary, contradicting \(d_0=d_N=0\). Applying the same argument to \(-d_i\) rules out a negative minimum. Therefore every \(d_i=0\), proving uniqueness and the claimed formulas. \(\square\)
In an actual calculation, it is usually most efficient to substitute the given \(p,q,N,i\) into the appropriate formula and simplify the fraction. The recurrence remains an important check: it detects an incorrect ratio or a misplaced boundary value.
Worked Example: A Fair Game with Target Fortune Four
Suppose the player starts at fortune 1, the target is \(N=4\), and each play is fair. The state space is \(\{0,1,2,3,4\}\), and the transition matrix, with rows and columns in that order, is
The row sums are \(1\), \(1/2+1/2=1\), \(1/2+1/2=1\), \(1/2+1/2=1\), and \(1\). Since \(p=q=1/2\), the formula gives \(r_1=1-1/4=3/4\). To check the full recurrence calculation, the proposed values at the interior states are \(r_1=3/4\), \(r_2=1/2\), and \(r_3=1/4\), with \(r_0=1\) and \(r_4=0\).
All interior equations and both boundary values hold. By uniqueness, the probability of ruin before fortune 4 from fortune 1 is exactly \(3/4\). As an additional check, the fair formula gives \(r_2=1-2/4=1/2\), matching the value used in the recurrence.
Worked Example: A Game Favoring the Player
Now let the target be \(N=4\), let the starting fortune be \(i=2\), and let \(p=2/3\) and \(q=1/3\). The matrix is
The five row sums are \(1\), \(1/3+2/3=1\), \(1/3+2/3=1\), \(1/3+2/3=1\), and \(1\). Here \(q/p=(1/3)/(2/3)=1/2\). Substituting \(i=2\) and \(N=4\) into the biased formula gives
For a recurrence check, the formula gives \(r_1=(1/2-1/16)/(15/16)=7/15\) and \(r_3=(1/8-1/16)/(15/16)=1/15\), alongside \(r_0=1\), \(r_2=1/5\), and \(r_4=0\). The interior substitutions are
Each equation holds, so the exact ruin probability from fortune 2 is \(1/5\). The value \(r_2\) is a probability of reaching 0 first, not a probability of eventually reaching either endpoint.
Worked Example: A Game Favoring the House
Keep \(N=4\) and \(i=2\), but set \(p=1/3\) and \(q=2/3\). The transition matrix is
The row sums are \(1\), \(2/3+1/3=1\), \(2/3+1/3=1\), \(2/3+1/3=1\), and \(1\). Now \(q/p=(2/3)/(1/3)=2\). Using \(i=2\) and \(N=4\),
The other interior values from the same formula are \(r_1=(2-16)/(1-16)=14/15\) and \(r_3=(8-16)/(1-16)=8/15\). Substituting all three into the recurrence gives
The boundary values are still \(r_0=1\) and \(r_4=0\). The substitutions verify that the ruin probability from fortune 2 is \(4/5\).
Checks That Prevent Reversed Answers
A useful first check is structural: from an interior state, a loss must use \(r_{i-1}\) and a win must use \(r_{i+1}\). Since \(r_i\) is the probability of ruin, the lower boundary gets value 1 and the upper boundary gets value 0. Reversing either convention changes the problem being solved.
Common mistake. In the game with \(p=2/3\), \(q=1/3\), and \(N=4\), using \(p/q=2\) in place of \(q/p=1/2\) gives the incorrect calculation
This wrongly assigns the house-favored result from the other example to a game favoring the player. The recurrence confirms the correction: with \(r_1=7/15\), \(r_2=1/5\), and \(r_3=1/15\), the equation at state 2 is \(\tfrac13(7/15)+\tfrac23(1/15)=1/5\). The correct ratio is \(q/p\), because the recurrence weights the value one step down by \(q\) and one step up by \(p\).
The formula for \(p\ne q\) assumes both probabilities are positive. If \(p=1\), a player starting strictly between the endpoints moves upward at every play, so the ruin probability is 0. If \(q=1\), the player moves downward at every play, so the ruin probability is 1. These deterministic cases should be handled directly rather than by substituting into a formula that divides by \(p\) or \(q\).
Check Your Understanding
For each finite game, state the boundary values and use the recurrence to check the probability calculation.
- In a fair game with target \(N=6\), find the ruin probability from \(i=2\).
- For \(N=3\), \(p=2/3\), and \(q=1/3\), calculate the ruin probability from \(i=1\) using the biased formula.
- In the same game, calculate the probability from \(i=2\) and verify it using the recurrence at state 2.
- Explain why the formula for \(p\ne q\) uses \(q/p\), not \(p/q\).
- What is the ruin probability from an interior starting fortune if \(p=1\)? Give the reason directly from the transitions.