Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Martingales and the Optional Stopping Theorem

Quick fact

A symmetric random walk, where you gain or lose one unit with equal probability, is a martingale. Yet the first time it hits either +100 or -100, the expected value is 0, matching the starting value—even though you stop at a random time that depends on the process itself.

Why this is interesting

Imagine you are at a casino with an unbeatable betting system. No matter how clever you are, the casino always wins in the long run—but why? The answer lies in a deceptively simple property called the martingale.

Read the full explanation

Understanding Martingales and the Optional Stopping Theorem

Think of a martingale as a fair game: no matter what has happened so far, your expected wealth after the next round equals your current wealth. More formally, a sequence of random variables X0, X1, X2, ... is a martingale if the expected value of X{n+1} given all the information up to time n is exactly Xn. The 'information' is captured by a filtration, an ever-growing collection of knowledge about past outcomes. A stopping time is a random time that depends on the past and present but not the future—like 'when I get tired' or 'the first time I win $100.' The optional stopping theorem says that under mild conditions, if you stop a martingale at such a time, its expected value is still its starting value. This makes precise the idea that you cannot beat a fair game by choosing when to stop—as long as you don't have a superpower to see the future.

A deeper explanation

The optional stopping theorem works because of the martingale property combined with the structure of stopping times. If T is a stopping time, the stopped process X{min(T,n)} is also a martingale. This means that for each n, the expected value of X{min(T,n)} equals X0. If T is finite almost surely and the process is 'nice'—for example, bounded or with bounded increments—we can take the limit as n goes to infinity and exchange expectation and limit, yielding E[XT] = X0. The conditions are crucial: without them, the theorem can fail dramatically. For instance, a gambler with unlimited capital and time can double the bet after each loss, a doubling strategy that is a martingale, but the stopping time at which they win $1 can have infinite expected duration, and the theorem's conditions are violated. The theorem matters because it underpins the theory of fair games, the analysis of random walks, and the pricing of financial derivatives, where no-arbitrage conditions are tied to martingales.

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.