LightMySky
En anglais

Martingales and Optional Stopping

A martingale is an adapted, integrable process whose conditional expected next value equals its current value. Optional stopping preserves its mean under further hypotheses, such as a bounded stopping time, or bounded stopped values with almost-surely finite stopping.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Check the martingale property for a given process
  • Apply optional stopping to compute a ruin probability
  • Give a stopping rule for which the theorem's hypotheses fail and the conclusion is false

1 · Read

Stationary distributions describe state probabilities. Here we use conditional expectation to forecast a process. Let F_n be the sigma-algebra of information through time n, with F_n contained in F_(n+1). A martingale M_n is adapted (M_n is F_n-measurable), has E[|M_n|] < infinity, and satisfies E[M_(n+1) | F_n] = M_n almost surely. Its conditional next-value mean is its current value. The tower property gives E[M_(n+1)] = E[M_n].

Try it together

A simple symmetric walk has independent increments +1 and -1, each with probability 1/2. At current position s, the next-value forecast is ((s+1)+(s-1))/2 = s. Each increment has mean 0, so a walk starting at a has E[S_n] = a at every fixed finite time. To check a martingale, calculate the next-value mean given the past, not just the overall mean.

Walk position. Ticks: 0, 1, 2. Marked values: 1. Hop from 1 to 0: prob. 1/2. Hop from 1 to 2: prob. 1/2.012prob. 1/2prob. 1/2Walk position
The next-value mean is (0+2)/2 = 1. The forecast need not be a possible next position.

For the fair unit walk at s, ((s+1)+(s-1))/2=s, so its conditional drift is 0. The walk is adapted and integrable, hence a martingale. Its next squared-value mean is ((s+1)^2+(s-1)^2)/2=s^2+1. Thus S_n^2 is not a martingale, but S_n^2-n is: subtracting n cancels the drift of 1. Adding cn to a martingale creates conditional drift c. Absolute value is not a martingale for a walk starting at 0: its next mean is 1, not 0.

Square mean change: +1Subtract n: change -1Adjusted mean change: 0

Symmetric increments are not required. Let B_n start at 0 with independent +1 increments of probability p and -1 increments of probability 1-p. Its conditional mean increment is mu = 2p-1. The adapted, integrable process B_n-n mu has conditional mean change 0, so it is a martingale. For p = 0.6, subtract 0.2n. The same test applies: calculate and cancel the conditional drift.

Mean increment: muCorrection change: -muTotal mean change: 0
Try it together

Constant overall means do not prove a martingale. Let X_0 equal 4 or -4 with equal probability and set X_n = (-1)^n X_0. Every overall mean is 0. But observing X_n determines X_(n+1) = -X_n. Its conditional mean is -X_n, not X_n. A martingale must preserve the forecast on the observed branches.

Observed X_0 = 4Certain X_1 = -4Next forecast = -4

For a stopping time T, {T <= n} is determined by F_n for every n. The decision whether stopping has occurred uses only information available by then. For an integrable martingale, if T <= N for a fixed finite N, optional stopping gives E[M_T] = E[M_0]. Bounding E[T] alone does not meet this condition. One proof writes the stopped change as a finite sum of increments included only when play has not yet stopped.

A fixed time bound is one sufficient condition. Another allows unbounded waiting: T is a stopping time, finite almost surely, and |M_(T min n)| <= C for every n with one fixed finite C. Here T min n means the earlier time. Apply bounded-time stopping to T min n, then bounded convergence gives E[M_T] = E[M_0]. Separate integrability at each finite time does not justify this limit. These are sufficient conditions, not all versions of the theorem.

Try it together

A fair unit-step walk starts at integer k between integer barriers L and U. Stop on first hitting either barrier. The stopped positions are bounded, and exit is almost surely finite, so the terminal mean is k. If p is the upper-exit probability, k = L(1-p)+Up. Hence p = (k-L)/(U-L); the lower-exit chance is 1-p. For start 5 and barriers 0,12, this gives 12p = 5, so p = 5/12.

Walk position. Ticks: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. Marked values: 0, 5, 12. 0123456789101112Walk position

Stopping a fair unit walk at a fixed finite time preserves its starting mean k. At first exit from integer barriers L<U, stopped positions stay in [L,U]. Put d=U-L. From any interior state, d consecutive +1 steps force exit, with probability 2^(-d). Survival through r blocks is at most (1-2^(-d))^r, tending to 0. Exit is thus finite almost surely; bounded stopped values preserve mean k. Adjacent interior sites allow arbitrarily long alternating paths.

Interior positiond upward stepsExit by block end
Try it together

For a stopping time, {T <= n} must be determined by information through time n. A retrospective rule can fail even within one step. Start a fair walk at 0. After seeing step 1, choose T=1 if it was +1 and T=0 if it was -1. Whether T=0 uses a future observation, so T is not a stopping time. The selected value is 1 or 0 with equal probability, giving mean 1/2 instead of 0.

Time 0: decision dueTime 1: step revealed

Non-anticipation alone also fails to preserve means. For a fair unit walk starting at 6, let T be the first hit of 8. This stopping time is finite almost surely but has no fixed time bound. S_T = 8, so E[S_T] = 8. Yet E[S_(T min n)] = 6 for every finite n. The capped stopped positions have no common bound because the walk can travel arbitrarily far below 6 before hitting 8.

Capped means: 6Terminal value: 8Terminal mean: 8

In the doubling model, bet 1 on independent fair flips, double after each loss and stop at the first win. After r losses, cumulative profit is -(2^r-1), and the next stake is 2^r. A win recovers all losses and leaves profit 1. Capping play at r flips gives profit 1 with probability 1-2^(-r), or -(2^r-1) with probability 2^(-r). Multiplying and adding gives mean 0.

1 loss: profit -12 losses: profit -33 losses: profit -74 losses: profit -15

With unlimited funds, the first win occurs almost surely and terminal profit is 1. Every finite capped profit has mean 0, but the limit has mean 1. The rare large losses belong to the capped games; they are not terminal losses in the unlimited model. The stopped profits have no common absolute bound, so the bounded-convergence argument does not apply. A finite bankroll cannot cover every possible losing streak.

A bounded stopping result also applies to forecasts after an observation. If T is a stopping time with 1 <= T <= N for fixed finite N, then E[M_T | F_1] = M_1 for a martingale. For a fair walk starting at 0, observe a first step of +1. Its conditional expected position at any such stopping time is +1. The unconditional stopped mean remains 0; these are different averages.

Observe time 1Current value: M_1Stopped forecast: M_1

Check adaptedness, integrability and conditional means. Verify stopping hypotheses before preserving a mean. For two-barrier fair walks, use the terminal values to find exit probabilities.

The lesson, practice questions, worked solutions and flashcards were written for this dataset.

The reading notes, extra questions, worked solutions and flashcards were written for this dataset. The linked videos are Khan Academy background resources on expected payoff and fair decisions.

More to read

Fairness after an observation

A martingale preserves a conditional forecast. Its value at time n must be measurable using the information F_n, have finite expected absolute value, and satisfy E[M_(n+1) | F_n] = M_n almost surely.

For a fair unit walk currently at s, the next positions s+1 and s-1 have equal probability. Their mean is s. Averaging over the past then gives a constant overall mean.

The converse fails. Suppose a process starts equally likely at 4 or -4 and reverses sign every step. Its overall mean is always 0. Once its current value is observed, its next value is known to be the opposite. That conditional forecast does not equal its current value.

Checking a stopping argument

A stopping time decides whether stopping has occurred using only the information available by that time. A retrospective choice of an earlier moment can fail this requirement.

For an integrable martingale, a stopping time bounded by a fixed finite N preserves the starting expectation. Another sufficient condition allows unbounded waiting: the stopping time is finite almost surely and all capped stopped values share one fixed absolute bound. Separate integrability at each finite time is not that common bound.

A fair unit walk stopped at two integer barriers satisfies the second condition. Starting at k between L and U, let p be the chance of exiting at U. The terminal-value equation is k = L(1-p)+Up. Solving gives p = (k-L)/(U-L). The lower-exit probability is its complement.

The limit in the doubling model

Consider independent fair flips with unlimited funds. Bet 1, double after each loss and stop at the first win. After r losses, the lost stakes total 2^r-1 and the next stake is 2^r. Any first win leaves cumulative profit 1.

If play is capped at r flips, all-loss paths have probability 2^(-r) and profit -(2^r-1). Other paths have profit 1. The weighted mean is 0.

Without a cap, the first win occurs almost surely and terminal profit is 1. Thus the capped profits converge almost surely to a variable with a different mean. Their increasingly large negative values prevent a common absolute bound. Almost-sure convergence alone does not permit exchanging a limit and expectation. A finite bankroll cannot fund every possible losing streak.

Explore more

2 · Watch

En anglais

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

18 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Martingales and Optional Stopping · Mathematics, ages 23 to 24 · LightMySky