This is a comprehensive question about martingales and the optional stopping theorem. Let me structure a thorough answer covering:
- Definition of a martingale
- Statement and proof of the optional stopping theorem
- Intuitive explanation about fair games
- Conditions required for the theorem
1. Definition of a Martingale
A martingale is a sequence of random variables with a special property: given the information up to time n, the expected value at time n+1 is just the current value.
More formally: Let {X_n} be a sequence of random variables adapted to a filtration {F_n}. {X_n} is a martingale with respect to {F_n} if:
- E[|X_n|] < ∞ for all n
- E[X_{n+1} | F_n] = X_n
The intuition: if a game is fair, your expected fortune shouldn't change regardless of what happens.
2. Optional Stopping Theorem
The theorem states: If {X_n} is a martingale and τ is a stopping time, then under certain conditions:
E[X_τ] = E[X_0]
Let me state and prove the version with conditions.
Theorem (Optional Stopping Theorem): Let {X_n} be a martingale with respect to filtration {F_n}, and τ a stopping time. Then E[X_τ] = E[X_0] if one of the following holds:
- τ is bounded (τ ≤ N almost surely for some N)
- E[τ] < ∞ and there exists K such that |X_{n+1} - X_n| ≤ K almost surely
- τ < ∞ almost surely and X_n is uniformly integrable
- τ < ∞ almost surely, E[τ] < ∞, and E[|X_{n+1} - X_n| | F_n] ≤ K almost surely
Proof of case 1 (bounded stopping time):
I'll construct Y_n = X_{n∧τ}, which represents the martingale "stopped" at time τ. This stopped process is itself a martingale: on {τ ≤ n}, the value freezes at X_τ, while on {τ > n}, it continues as X_n. Since τ ≤ N almost surely, we have Y_N = X_τ, so E[X_τ] = E[Y_N] = E[Y_0] = E[X_0]. When you play until a fixed time N, your expected fortune stays the same as your starting amount—this is what the martingale property guarantees.
The real problem emerges when you try to stop strategically. If you decide to quit "when you're ahead," you're making that decision based on how the game has unfolded, which means you're using information about the past to your advantage. The optional stopping theorem tells us this doesn't work in expectation—you can't systematically profit by choosing when to quit, provided your stopping rule satisfies certain conditions that prevent you from exploiting the game too aggressively.
Consider a simple fair coin game where you gain or lose 1eachflip.Yourwealthformsamartingale,soatanypredeterminedtimeyour100 ahead or when I've lost everything," you're conditioning your exit on the path the game takes, and this strategy can't improve your expected outcome.
A counterexample shows why conditions matter: imagine a random walk starting at 0, where you stop the moment you reach 1. The walk will eventually hit 1 with certainty, so your final wealth is definitely 1, yet your initial wealth was 0. This seems to violate the theorem, but it doesn't—the stopping time here is unbounded and the expected stopping time is infinite, so the conditions required for optional stopping don't hold. the walk could wander far from the origin before eventually reaching 1.
So I should structure this as: first define what a martingale is, then present the optional stopping theorem for the bounded case with a proof, note the alternative sufficient conditions, explain the intuition behind why these conditions matter, and finally provide a concrete counterexample demonstrating what happens when they fail.
Martingales and the Optional Stopping Theorem
Definition of a Martingale
A sequence of random variables {X_n} (n = 0, 1, 2, ...) is a martingale with respect to a filtration {ℱ_n} if:
- Adaptedness: X_n is ℱ_n-measurable
- Integrability: E[|X_n|] < ∞
- Fair game property: E[Xn+1∣Fn]=X
Intuition: The expected value tomorrow, given everything you know today, is exactly your current value. No drift.
The Optional Stopping Theorem
Theorem: Let {X_n} be a martingale and τ a stopping time. Then E[X_τ] = E[X_0] if any of these conditions holds:
Condition 1: Bounded Stopping Time
τ ≤ N almost surely for some constant N
Condition 2: Uniform Integrability
τ < ∞ a.s., with {X_τ, X_0, X_1, ...} uniformly integrable, or:
E[τ] < ∞ and |X_{n+1} - X_n| ≤ K a.s. (bounded increments)
Condition 3: Dominated Convergence
E[τ] < ∞ with E[|X_{n+1} - X_n| | ℱ_n] ≤ K a.s.
Proof (Bounded Case)
Proof: Assume τ ≤ N almost surely.
Define the stopped process: Y_n = X_{min(n,τ)}
Claim: {Y_n} is a martingale.
Proof: For any n:
E[Yn+1∣Fn]=
Split by whether τ has already occurred:
=Xτ⋅1τ≤n+
Using the martingale property on the second term:
=Xτ⋅1τ≤n+
Since τ ≤ N, we have Y_N = X_τ. Therefore:
E[Xτ]=E[YN]=
The martingale property of {Y_n} gives E[Y_N] = E[Y_0]. ✓
Why Can't You Profit?
The intuition: In a fair game, your expected wealth today equals your expected wealth tomorrow. A stopping rule τ based on observed outcomes doesn't help because:
- You can't condition on information from the future
- The past-dependent decision to stop is already "priced in"
- Under OST conditions, expectations still balance
Key insight: You can stop when ahead, but this is exactly balanced by:
- Scenarios where you stop after dropping significantly (to try to recover)
- The probability of never winning
Why Conditions Are Essential: A Counterexample
Consider a fair coin fair starting at X₀ = 0:
- X_{n+1} = X_n ± 1 (equal probability)
- {X_n} is a martingale
- Let τ = min{n : X_n = 1} (first hitting time of level 1)
What happens without conditions:
- τ < ∞ almost surely (recurrent random walk)
- But E[τ] = ∞
- X_τ = 1, so E[X_τ] = 1 ≠ 0 = E[X_0]
Why? The stopping time exploits that to reach level 1, the walk must wander far from the origin in intermediate steps, creating a positive expectation at the stopping time.
Which condition breaks? All of them:
- τ is unbounded
- E[τ] = ∞
- {X_τ} is not uniformly integrable (no bound on how large |X_n| becomes before hitting 1)
This is not a contradiction—it's proof that conditions are needed!
Practical Summary
| Condition | Ensures | Example |
|---|
| τ bounded | ✓ OST applies | "Stop after 100 steps" |
| E[τ] < ∞ + bounded increments | ✓ OST applies | "Stop when bankroll doubles; losing $1 at a time" |
| No conditions | ✗ OST fails | "Stop when ahead" in random walk (expected stop time infinite) |
The conditions prevent you from exploiting a sequence of good outcomes indefinitely into the future.