Doob Martingale Convergence
A fair forecasting procedure that cannot run away to infinity must settle down. Bounded martingales converge to a final honest forecast with probability one.
Why Does This Exist?
Bayesian updating, stochastic approximation and sequential gambling all generate fair forecasts that evolve with data. The live question is whether they settle: does the posterior mean lock onto something, or wobble forever? Without a convergence theorem every long-run claim (consistency, stability, final wealth) dangles.
Doob's theorem answers once and for all under one checkable condition. If the martingale stays -bounded (expected absolute values capped), it converges almost surely and in to a genuine limit. This page states the theorem and traces it on a stopped walk. Fair-game basics are in Markov chains; the Bayesian payoff is posterior consistency.
The one idea you need first
-bounded means : expected magnitudes never blow up. Almost sure convergence means paths settle with probability one; convergence means expected gaps also vanish, so means converge too.
Think of It Like This
A weather forecast that firms up
A week out the forecast says 40 percent rain, swinging daily. By the evening before, it reads 90 percent and barely moves. Each update is fair (today's forecast is the expected value of tomorrow's), and probabilities cannot escape , so the sequence must firm up somewhere.
Doob's theorem is that firming-up made math: bounded fair forecasts converge. Where it stops: boundedness is load-bearing. An unbounded fortune (doubling bets) can oscillate forever with no limit, fair at every step yet convergent nowhere.
How It Actually Works
Let be a martingale with . Doob's convergence theorem says there is with such that:
In plain words: is the fair forecast at time , the sup condition caps expected size uniformly, and the conclusion gives a final forecast that paths approach and means approach together. The engine is the upcrossing inequality: a bounded martingale can cross any fixed interval only finitely often on average, so oscillation must die out. Nonnegative martingales qualify automatically in reasoning, and uniformly integrable ones keep .
Worked example
Symmetric walk from stopped at , the first hit of or . The stopped process is a martingale with , hence for all : bounded.
Each path freezes once it hits a barrier, so everywhere: almost sure convergence by inspection. Half the paths end up, half down, so : convergence holds and the mean survives. Remove the barriers and grows like with no limit: unbounded, oscillating, exactly what the theorem refuses to cover.
Code
Freeze stopped walks and confirm they sit at the barriers with mean near zero.
import numpy as np
def stopped_limits(paths: int, barrier: int = 2, seed: int = 1) -> np.ndarray: rng = np.random.default_rng(seed) # reproducible ensemble out = np.empty(paths) for i in range(paths): pos = 0 while abs(pos) < barrier: # freeze at first barrier hit pos += 1 if rng.random() < 0.5 else -1 out[i] = pos return out
lims = stopped_limits(10000)print(sorted(set(lims.tolist()))) # -> [-2.0, 2.0]print(round(float(lims.mean()), 2)) # -> 0.0 approxOnly survive, averaging about : the limit the theorem promised.
Watch Out For
Assuming convergence without the bound
Symptom: an unbounded martingale (likelihood ratios under misspecification) oscillates forever while analysis assumes a limit exists. Fix: verify first; nonnegative supermartingales still converge a.s. but may lose mass ( can fail).
Reading L1 convergence off almost sure alone
Symptom: paths settle yet means drift (mass escapes to rare huge values). Fix: upgrade with uniform integrability before passing limits through expectations; a.s. without never justifies mean convergence.
The Quick Version
- -bounded martingales converge almost surely and in to an integrable limit.
- The upcrossing inequality kills infinite oscillation: bounded fair games cannot cross intervals forever.
- A walk stopped at freezes onto one barrier, half up and half down, mean zero.
- Unbounded walks grow like and converge nowhere.
- Almost sure alone never moves means inside limits; (via uniform integrability) does.