Skip to content
AI360Xpert
Beta

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.

Two forecast paths narrow from zero onto plus 2 and minus 2 and stay there, which is almost sure convergence
Two forecast paths narrow from zero onto plus 2 and minus 2 and stay there, which is almost sure convergence

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 L1L^1-bounded (expected absolute values capped), it converges almost surely and in L1L^1 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

L1L^1-bounded means sup⁡nE∣Mn∣<∞\sup_n \mathbb{E}|M_n| < \infty: expected magnitudes never blow up. Almost sure convergence means paths settle with probability one; L1L^1 convergence means expected gaps E∣Mn−M∞∣\mathbb{E}|M_n - M_\infty| 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 [0,1][0, 1], 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 MnM_n be a martingale with sup⁡nE∣Mn∣<∞\sup_n \mathbb{E}|M_n| < \infty. Doob's convergence theorem says there is M∞M_\infty with E∣M∞∣<∞\mathbb{E}|M_\infty| < \infty such that:

Mn→M∞ almost surely and in L1M_n \to M_\infty \text{ almost surely and in } L^1

In plain words: MnM_n is the fair forecast at time nn, 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 L1L^1 reasoning, and uniformly integrable ones keep E[Mn]→E[M∞]\mathbb{E}[M_n] \to \mathbb{E}[M_\infty].

Worked example

Symmetric walk from 00 stopped at τ\tau, the first hit of +2+2 or −2-2. The stopped process Mn=Sn∧τM_n = S_{n \wedge \tau} is a martingale with ∣Mn∣≤2|M_n| \le 2, hence E∣Mn∣≤2\mathbb{E}|M_n| \le 2 for all nn: bounded.

Each path freezes once it hits a barrier, so Mn→M∞∈{+2,−2}M_n \to M_\infty \in \{+2, -2\} everywhere: almost sure convergence by inspection. Half the paths end up, half down, so E[M∞]=0.5(2)+0.5(−2)=0=E[M0]\mathbb{E}[M_\infty] = 0.5(2) + 0.5(-2) = 0 = \mathbb{E}[M_0]: L1L^1 convergence holds and the mean survives. Remove the barriers and ∣Sn∣|S_n| grows like n\sqrt{n} 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 approx

Only ±2\pm 2 survive, averaging about 00: 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 sup⁡nE∣Mn∣<∞\sup_n \mathbb{E}|M_n| < \infty first; nonnegative supermartingales still converge a.s. but may lose mass (L1L^1 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 L1L^1 never justifies mean convergence.

The Quick Version

  • L1L^1-bounded martingales converge almost surely and in L1L^1 to an integrable limit.
  • The upcrossing inequality kills infinite oscillation: bounded fair games cannot cross intervals forever.
  • A walk stopped at ±2\pm 2 freezes onto one barrier, half up and half down, mean zero.
  • Unbounded walks grow like n\sqrt{n} and converge nowhere.
  • Almost sure alone never moves means inside limits; L1L^1 (via uniform integrability) does.