Martingales (Discrete Time)
Motivation: why this matters in quant finance
A martingale is the mathematical formalisation of a "fair game": a sequence of random variables whose expected next value, given everything known so far, equals the current value. If you could predict the direction of a martingale's next step, it would not be a fair game — hence, no edge, no arbitrage, no free lunch. Every arbitrage-pricing theorem in quant finance ultimately reduces to "discounted asset prices are martingales under an appropriate measure."
Discrete-time martingales are where this intuition is cleanest to state and cleanest to prove. Before tackling continuous-time stochastic integration, every quant should master the discrete case: it sets the definitions (adapted, filtration, conditional expectation), it makes the computations explicit (a sum over a binomial tree, not a stochastic integral), and it is the exact framework underlying
binomial-tree option pricing, the workhorse technique for American options and path-dependent exotics. The Cox-Ross-Rubinstein model
is a discrete-time martingale under
Q; its limit is the
risk-neutral continuous-time model that underlies
Black-Scholes.
The discrete-time setting also delivers, for free, two of the deepest theorems in probability: the
martingale convergence theorem (a bounded martingale converges a.s.) and the
optional stopping theorem (you cannot cheat a fair game by timing your exit — more on this in the dedicated
OST lesson). Neither has a cleaner entry point than here.
The informal idea
A sequence
(Mn)n≥0 is a
martingale with respect to a filtration
(Fn)n if, at every step,
E[Mn+1∣Fn]=Mn.
Three words tell the whole story: expected next equals current.
Read the left-hand side as "my best forecast of tomorrow's M, given everything I know today." The martingale property says this forecast is exactly Mn — not higher, not lower. Any edge you could exploit (a predictable drift) would violate it.
Two cousins appear constantly:
- Submartingale: E[Mn+1∣Fn]≥Mn — "tends to drift up." Asset prices under the real-world measure usually behave this way.
- Supermartingale: E[Mn+1∣Fn]≤Mn — "tends to drift down." Short-position P&L on a positive-drift asset is super.
Sub and super are not as memorable as they sound: a submartingale increases on average ("supports from below") while a supermartingale decreases on average ("supports from above"). The terminology is a notational curiosity, not a mnemonic aid.
Formal definition
Fix a probability space
(Ω,F,P) and a
filtration (Fn)n≥0 — an increasing sequence of
σ-algebras,
Fn⊆Fn+1. A sequence of random variables
(Mn)n≥0 is a
(Fn,P)-martingale if:
- Adapted: Each Mn is Fn-measurable. (Equivalently: Mn is known given the information at time n.)
- Integrable: E[∣Mn∣]<∞ for every n.
- Martingale property: E[Mn+1∣Fn]=Mn almost surely, for every n≥0.
Equivalent formulation: for every
m≤n,
E[Mn∣Fm]=Mm a.s. (proved by iterating the one-step property using the
tower property of conditional expectation).
Submartingales and supermartingales
Replace "
=" in (3) by "
≥" to get a
submartingale, by "
≤" to get a
supermartingale. A martingale is both; the reverse is not implied.
Elementary consequences
- Constant expectation: For a martingale, E[Mn]=E[M0] for all n. Proof: take unconditional expectations of the martingale property.
- Jensen's inequality for convex functions: If Mn is a martingale and ϕ is convex with E[∣ϕ(Mn)∣]<∞, then (ϕ(Mn))n is a submartingale. (In particular, Mn2 is a submartingale when it is integrable.)
- Linear combinations: Sums of martingales (relative to the same filtration) are martingales.
Canonical examples
1. Simple symmetric random walk
Let X1,X2,… be i.i.d. with P(Xi=±1)=1/2, and let Sn=X1+⋯+Xn, S0=0, with filtration Fn=σ(X1,…,Xn).
E[Sn+1∣Fn]=Sn+E[Xn+1∣Fn]=Sn+E[Xn+1]=Sn.
A biased walk with P(Xi=+1)=p>1/2 is a submartingale (drifts up); a biased walk with p<1/2 is a supermartingale.
2. Product-of-mean-one
Let Y1,Y2,… be independent with E[Yi]=1, and set Mn=Y1Y2⋯Yn, M0=1.
E[Mn+1∣Fn]=Mn⋅E[Yn+1]=Mn.
This is a martingale. The Doléans-Dade exponential (GBM's exp(σWt−21σ2t)) is the continuous-time relative.
3. Gambler's wealth under a fair game
A gambler starts with wealth X0. At each round they bet some amount Bn (a predictable wager, i.e. Bn is Fn−1-measurable) on a fair coin, winning or losing Bn with equal probability. Then
Xn+1=Xn+Bn⋅ξn+1,ξn+1∈{±1},E[ξn+1]=0,
and the predictability of Bn gives:
E[Xn+1∣Fn]=Xn+Bn⋅E[ξn+1]=Xn.
(Xn) is a martingale. The profound lesson:
no betting strategy turns a fair game into a profitable one. You can choose
Bn however cleverly you like (bet more after wins, bet less near ruin, double-down Martingale strategy) — all of them preserve the martingale property, so
E[Xn]=X0 forever.
4. Discounted binomial stock price under Q
In the Cox-Ross-Rubinstein tree, Sn+1=Sn⋅u or Sn⋅d (u>1>d>0) with risk-neutral probabilities p∗=(1+r−d)/(u−d) and 1−p∗. Then the discounted price S~n=e−rnΔtSn satisfies:
EQ[S~n+1∣Fn]=S~n.
This is the fundamental theorem of asset pricing in discrete time: a market is arbitrage-free iff there exists a measure under which discounted prices are martingales.
Martingale transforms and the fair-game principle
Martingale transform. Given a martingale
(Mn)n and a
predictable sequence
(Hn)n (i.e.
Hn is
Fn−1-measurable), define
(H⋅M)n=k=1∑nHk(Mk−Mk−1),(H⋅M)0=0.
This is a discrete analogue of the stochastic integral. If
(Hn) is bounded (or more generally, makes everything integrable), then
(H⋅M)n is a martingale — a result often called the
discrete Itô integral theorem.
Financially, Hn is "how much of asset M you hold between times n−1 and n." The martingale transform is the cumulative P&L of that position. The theorem says: no predictable trading strategy on a martingale can generate expected profit. Every risk-neutral pricing argument uses this fact.
Key theorems in discrete time
Martingale convergence theorem (Doob)
If (Mn) is an L1-bounded martingale (i.e. supnE[∣Mn∣]<∞), then Mn converges almost surely to an integrable random variable M∞. Same holds for L1-bounded super- and submartingales.
Proof idea (upcrossing inequality). Count the number of times the trajectory crosses a strip
[a,b]; the expected number is bounded by
E[(Mn−a)+]/(b−a). Finite crossings between every pair of rationals
⇒ no oscillation
⇒ convergence.
Practical content. A bounded-in-
L1 martingale
must settle down. This is why Galton-Watson branching processes with fair reproduction either die out or explode (they cannot fluctuate forever), and why gambler's-ruin problems have clean terminal distributions.
Optional stopping theorem (light version)
If
(Mn) is a martingale and
τ is a
bounded stopping time (i.e.
τ≤K for some constant), then
E[Mτ]=E[M0].
The full theorem, under various integrability / boundedness hypotheses, is the subject of the dedicated
Optional Stopping Theorem lesson. The one-line summary:
you cannot beat a fair game by choosing a clever exit time.
Doob's maximal inequality
For a non-negative submartingale (Mn) and λ>0:
P(0≤k≤nmaxMk≥λ)≤λE[Mn].
This gives pathwise tail bounds for martingale maxima — far stronger than marginal Chebyshev, because it controls the whole trajectory with just the terminal expectation.
Worked example — binomial-tree option price as a discounted-payoff martingale
Under risk-neutral Q in a CRR tree, the fair price of any FN-measurable contingent claim CN is:
C0=EQ[e−rTCN].
Equivalently, the discounted value process V~n=e−rnΔtEQ[e−r(N−n)ΔtCN∣Fn] is a Q-martingale, and its terminal value is C~N. The backward-induction pricing algorithm:
Vn=e−rΔt(p∗Vn+1u+(1−p∗)Vn+1d),VN=CN,
is exactly the recursion implied by the martingale property. Pricing an option = computing a conditional expectation of a discounted payoff. This is the cleanest vanishing point to see why the abstract definition matters.
Common confusions and pitfalls
"A martingale has no trend." It has no trend
given past information. The martingale
E[Y∣Fn] for some eventual
Y can look wildly trendy before information arrives — the forecast updates, the updated forecast is the martingale. No trend
conditional, possibly strong trend
unconditional.
"Stock prices are martingales in the real world." They are martingales under an artificial probability measure
Q — the
risk-neutral measure — chosen to make discounted prices fair. Under the real-world measure
P, prices have a positive drift (that is the whole point of investing). Confusing the two collapses the distinction between the real and risk-neutral economies.
"Martingales converge." Only if they are bounded in
L1. An unbounded martingale can oscillate forever — e.g. the symmetric random walk, which is a martingale and has a.s. unbounded oscillation.
"You can beat a martingale with a smart betting strategy." Famously: the "martingale strategy" (double your bet after every loss). Under a strict bankroll and finite number of rounds it is not a martingale but a supermartingale (costs ruin probability
≈1/2N); the expected P&L is indeed zero. Doubling up is not a free-money generator — it converts variance into a small chance of catastrophic loss.
"Submartingales are special martingales." They are a weaker class. Every martingale is a submartingale, but most submartingales are not martingales. Know the direction.
"Adapted = measurable." Adapted means
Fn-measurable
for the specific filtration (Fn) of interest. A process can be adapted to a coarse filtration but not a fine one, or vice versa. Always say "adapted to which filtration."
Where this goes next
- Stopping Times: The formal notion of "a strategy that decides when to exit." Required to state the optional stopping theorem.
- Optional Stopping Theorem: The fair-game principle, in sharpened form. Provides the machinery to solve gambler's-ruin problems and boundary-crossing probabilities in closed form.
- Brownian Motion: The continuous-time martingale par excellence. Every theorem in this lesson has a Brownian analogue.
- Itô's Lemma: The continuous-time analogue of "functions of martingales are (usually) not martingales" — and the formula that tells you exactly which drift correction is needed to make them martingales again.
- Martingale I and Martingale II: Applications to arbitrage pricing and the fundamental theorem of asset pricing.
- Change of Measure: The technique that turns the real-world drift of a stock price into the risk-free rate under Q, making discounted prices martingales.
References
- Lawler, G. F. (2023). Stochastic Calculus: An Introduction with Applications. Ch. 1 §1.2 (Martingales), §1.3 (Optional sampling theorem), §1.4 (Martingale convergence theorem), §1.5 (Square integrable martingales).