Martingales
The formal model of a fair game, conditional expectation, the optional stopping theorem and why "no betting system beats a fair game", and the martingale view of arbitrage-free pricing.
Prerequisites: Random Variables & Distributions, Expectation, Variance & Moments
A martingale is the mathematical distillation of a fair game: a process whose expected future value, given everything you know now, is exactly its current value. That one condition is astonishingly powerful. It formalises "you can't beat a fair game with clever bet timing", it is the language in which arbitrage-free pricing is stated, and it turns hard questions about random walks, where they end up, how long they last, into one-line calculations. Martingales are where the information-theoretic view of Probability Spaces pays off, because the whole definition is about conditioning on what you know.
Definition: conditional expectation is the engine
Fix a filtration , an increasing family of σ-algebras with representing all information available at time (see Probability Spaces). A process adapted to the filtration (each is -measurable, i.e. knowable at time ), with , is a martingale if The best prediction of tomorrow, given all of today's information, is today's value. Two cousins relax the equality: a submartingale has (a favourable game, drifting up) and a supermartingale has (unfavourable, drifting down, the "super" investor's wealth under a house edge sinks). Taking unconditional expectations in the martingale property and iterating gives the immediate corollary for all : a martingale has constant mean. Note a martingale need not be Markov and a Markov Chains chain need not be a martingale, they are different structures that happen to overlap (e.g. a symmetric random walk is both).
Canonical examples
- Symmetric random walk. with i.i.d. mean-zero. Then . The prototypical martingale.
- Product form. If the have mean 1 and are independent, is a martingale, the multiplicative version, and the shape of likelihood ratios and discounted prices.
- Wealth in a fair game. Bet any -measurable stake (your bet can depend on history but not the future). Winnings form a martingale transform, and it is still a martingale. This is the theorem that no strategy of varying bet sizes turns a fair game into a favourable one; the best you can do in expectation is break even, no matter how clever the system.
- Doob martingale. For any integrable , is a martingale, your evolving best estimate of a final quantity as information arrives. This is the Bayes' Theorem belief-updating process, and it converges (martingale convergence theorem) to .
The optional stopping theorem
The crown jewel. A stopping time is a random time decidable from information available as it happens: (you know when you've stopped without seeing the future, "stop when I hit $100" is valid, "stop the day before the peak" is not). The Optional Stopping Theorem (OST) says that under mild regularity (e.g. bounded, or bounded increments with ), Stopping a fair game at a cleverly chosen (but non-anticipating) time still leaves you with your starting expectation. This is the rigorous statement of "you cannot beat a fair game," and it is a computational powerhouse: it collapses questions about the value of a random process at a random time into its value at time zero.
Worked example, gambler's ruin via OST
A symmetric random walk starts at and stops at , the first time it hits or . Since is a martingale and is a legitimate stopping time with , OST gives . But , so with , The ruin probability is , derived in two lines, no recursion. For the expected duration, use a second martingale: is a martingale (since for unit-variance steps). OST gives , and , so Constructing the right martingale ( for the probability, for the time) turns a hard first-passage problem into arithmetic. This is the archetype of the martingale method.
The pricing connection
Modern derivatives pricing is a martingale statement. The Fundamental Theorem of Asset Pricing says a market is arbitrage-free if and only if there exists an equivalent risk-neutral measure under which every discounted asset price is a martingale: where is the money-market numeraire. The price of any claim is then its discounted expected payoff under . The economic content: no arbitrage ⇔ prices are fair games after adjusting for the risk-free drift. Completeness (unique ) corresponds to every claim being replicable, and the martingale representation theorem produces the hedging strategy. This is why the whole apparatus above, filtrations, adaptedness, optional stopping, is the native language of quant pricing.
Failure modes and subtleties
- OST needs its regularity conditions. Drop them and it fails spectacularly: the martingale betting system (double your bet after each loss) on a fair coin has violated in the naive sense because (first win) is unbounded and requires unbounded capital. With finite bankroll you almost surely eventually hit a catastrophic loss, the classic "why doubling doesn't work" lesson. Always check boundedness of or the increments.
- A martingale is not a predictor of profit. It says the game is fair, not winnable; positive expectation requires a sub-martingale (a genuine edge), and even then sizing matters, see The Kelly Criterion.
- Real prices are not martingales under the physical measure. They carry a risk premium (drift), i.e. they are submartingales for a risk-averse investor; the martingale property holds only under the pricing measure , not real-world . Confusing the two measures is a deep and common error.
- Constant mean ≠ constant variance. A martingale's variance typically grows (); "fair in expectation" says nothing about spread or drawdown risk.
- Stopping-time measurability. A rule that peeks at the future ("sell at the top") is not a stopping time, and OST does not apply, precisely why you cannot use it to manufacture profit.
In interviews
Gambler's ruin via martingales is a signature question, deriving and with the two martingales and marks you as fluent. Expect "does the doubling (martingale) betting system beat a fair game?", no, and the crisp reason is the OST regularity failure plus finite bankroll. Be ready to define a martingale precisely (conditional expectation, filtration, adaptedness) and to distinguish it from a Markov chain. For pricing desks, articulate the risk-neutral pricing statement: discounted prices are -martingales, and no-arbitrage is the existence of such a measure. The through-line to emphasise is that martingales convert statements about random times and endpoints into statements about time zero.
Related concepts
Practice in interviews
Further reading
- Williams, Probability with Martingales
- Durrett, Probability: Theory and Examples (Ch. 4-5)
- Shreve, Stochastic Calculus for Finance II