๐Ÿงฎ Brain Teaser

The Lazy Gambler's Last Dollar

A gambler walks into a casino with \3.Ateachround,hebets. At each round, he bets $1:withprobability: with probability p = 2/3hewinshe wins$1,andwithprobability, and with probability q = 1/3heloseshe loses$1.Thecasinohasonly. The casino has only $3(sothetotalmoneyinplayis(so the total money in play is$6$). They play until one side is broke.

  1. What is the probability that the gambler wins all \6$?
  2. What is the expected number of rounds until the game ends?
gambler's ruinmartingalerandom walkoptional stoppingexpected duration

Answer: The Lazy Gambler's Last Dollar

Key Idea / Intuition

For part (1), the gambler's ruin formula gives the win probability using the ratio r=q/pr = q/p. Because the game is favorable (p>qp > q), the gambler has a better-than-even chance despite starting with only half the money.

For part (2), there is a slick martingale approach: the process Mn=Xnโˆ’(pโˆ’q)nM_n = X_n - (p - q)n is a martingale (it tracks "corrected wealth"), and optional stopping gives a linear equation for the expected duration. Together the two martingales โ€” XnX_n and the quadratic one โ€” pin down E[T]\mathbb{E}[T] without any system of equations.


Formal Proof / Solution

Setup. Let the gambler start at position m=3m = 3, the total pot be N=6N = 6, p=2/3p = 2/3, q=1/3q = 1/3, and r=q/p=1/2r = q/p = 1/2.


Part 1: Win Probability

The classic gambler's ruin formula: if the gambler starts at mm with total NN,

P(gamblerย wins)=1โˆ’rm1โˆ’rN=1โˆ’(1/2)31โˆ’(1/2)6=1โˆ’1/81โˆ’1/64=7/863/64=78โ‹…6463=89.P(\text{gambler wins}) = \frac{1 - r^m}{1 - r^N} = \frac{1 - (1/2)^3}{1 - (1/2)^6} = \frac{1 - 1/8}{1 - 1/64} = \frac{7/8}{63/64} = \frac{7}{8} \cdot \frac{64}{63} = \frac{8}{9}.

So the gambler wins with probability 8/9\boxed{8/9}.

Derivation sketch: Let PkP_k be the win probability starting from kk. The recurrence Pk=pโ€‰Pk+1+qโ€‰Pkโˆ’1P_k = p\,P_{k+1} + q\,P_{k-1} with P0=0P_0 = 0, PN=1P_N = 1 has the general solution Pk=A+Bโ€‰rkP_k = A + B\,r^k (for rโ‰ 1r \neq 1), giving the formula above.


Part 2: Expected Duration via Two Martingales

Martingale 1. XnX_n (the gambler's wealth) satisfies E[Xn+1โˆฃXn]=p(Xn+1)+q(Xnโˆ’1)=Xn+(pโˆ’q)=Xn+1/3\mathbb{E}[X_{n+1} \mid X_n] = p(X_n+1)+q(X_n-1) = X_n + (p-q) = X_n + 1/3. So

Mn=Xnโˆ’n3M_n = X_n - \frac{n}{3}

is a martingale. By optional stopping (the game ends at finite time TT a.s.):

E[XT]โˆ’E[T]3=X0=3.\mathbb{E}[X_T] - \frac{\mathbb{E}[T]}{3} = X_0 = 3.

Now XTโˆˆ{0,6}X_T \in \{0, 6\}: the gambler ends with \6withprobwith prob8/9andand$0withprobwith prob1/9$:

E[XT]=6โ‹…89+0โ‹…19=489=163.\mathbb{E}[X_T] = 6 \cdot \frac{8}{9} + 0 \cdot \frac{1}{9} = \frac{48}{9} = \frac{16}{3}.

So:

163โˆ’E[T]3=3โ€…โ€ŠโŸนโ€…โ€ŠE[T]=163โˆ’3=73.\frac{16}{3} - \frac{\mathbb{E}[T]}{3} = 3 \implies \mathbb{E}[T] = \frac{16}{3} - 3 = \frac{7}{3}.

Wait โ€” let's recheck this against Martingale 2 for consistency.

Martingale 2. For the quadratic martingale, note E[Xn+12โˆฃXn]=p(Xn+1)2+q(Xnโˆ’1)2=Xn2+2(pโˆ’q)Xn+1=Xn2+23Xn+1\mathbb{E}[X_{n+1}^2 \mid X_n] = p(X_n+1)^2 + q(X_n-1)^2 = X_n^2 + 2(p-q)X_n + 1 = X_n^2 + \frac{2}{3}X_n + 1.

So Xn2โˆ’2n3Xnโˆ’nX_n^2 - \frac{2n}{3}X_n - n is not a martingale directly. Let's use the standard approach instead.

Direct computation via the system. Let Dk=E[TโˆฃX0=k]D_k = \mathbb{E}[T \mid X_0 = k]. Then:

Dk=1+pโ€‰Dk+1+qโ€‰Dkโˆ’1,D0=D6=0.D_k = 1 + p\,D_{k+1} + q\,D_{k-1}, \quad D_0 = D_6 = 0.

This gives Dk=k(Nโˆ’k)pโˆ’qD_k = \frac{k(N-k)}{p - q} when pโ‰ qp \neq q... actually the formula for expected duration is:

Dk=kpโˆ’qโˆ’Npโˆ’qโ‹…1โˆ’rk1โˆ’rN.D_k = \frac{k}{p-q} - \frac{N}{p-q} \cdot \frac{1 - r^k}{1 - r^N}.

With pโˆ’q=1/3p - q = 1/3, N=6N = 6, k=3k = 3, r=1/2r = 1/2:

D3=31/3โˆ’61/3โ‹…1โˆ’(1/2)31โˆ’(1/2)6=9โˆ’18โ‹…89=9โˆ’16=โˆ’7.D_3 = \frac{3}{1/3} - \frac{6}{1/3} \cdot \frac{1-(1/2)^3}{1-(1/2)^6} = 9 - 18 \cdot \frac{8}{9} = 9 - 16 = -7.

That's negative โ€” let me restate the correct formula carefully.

The correct formula (from solving the recurrence Dk=1+pDk+1+qDkโˆ’1D_k = 1 + pD_{k+1} + qD_{k-1}):

Dk=kqโˆ’p+Npโˆ’qโ‹…1โˆ’rk1โˆ’rN.D_k = \frac{k}{q - p} + \frac{N}{p - q} \cdot \frac{1 - r^k}{1 - r^N}.

With qโˆ’p=โˆ’1/3q - p = -1/3 (so 1/(qโˆ’p)=โˆ’31/(q-p) = -3):

D3=โˆ’3โ‹…3+3โ‹…6โ‹…7/863/64=โˆ’9+18โ‹…89=โˆ’9+16=7.D_3 = -3 \cdot 3 + 3 \cdot 6 \cdot \frac{7/8}{63/64} = -9 + 18 \cdot \frac{8}{9} = -9 + 16 = 7.

So E[T]=7\mathbb{E}[T] = \boxed{7} rounds.

Verification via Martingale 1 (corrected): E[XT]โˆ’E[T]3=3\mathbb{E}[X_T] - \frac{\mathbb{E}[T]}{3} = 3 gives E[T]=3(E[XT]โˆ’3)=3(16/3โˆ’3)=16โˆ’9=7\mathbb{E}[T] = 3(\mathbb{E}[X_T] - 3) = 3(16/3 - 3) = 16 - 9 = 7. โœ“


Summary

| Quantity | Value | |---|---| | Win probability | 8/9โ‰ˆ88.9%8/9 \approx 88.9\% | | Expected duration | 77 rounds |

The gambler is heavily favored despite equal starting wealth, and the game is expected to end quite quickly โ€” a beautiful consequence of the favorable odds.

Source: Fifty Challenging Problems in Probability with Solutions, Mosteller (Problem 36 and related); standard gambling ruin theory

Type: ProbabilitySource: Fifty Challenging Problems in Probability with Solutions, Mosteller (Problem 36 and related); standard gambling ruin theoryEdit on GitHub โ†—