Martingale

A martingale is a stochastic process that represents a “fair game” - the expected future value, given all past information, equals the current value. Martingales are fundamental in stochastic calculus, financial mathematics, and the theory of [[Stochastic Differential Equation (SDE)|Stochastic Differential Equations]].


1. Intuitive Understanding

1.1 Fair Game Analogy

Imagine a fair coin toss game:

  • You win $1 if heads, lose $1 if tails
  • Your expected wealth after the next toss equals your current wealth
  • No matter what happened in the past, the game remains “fair”

This is the essence of a martingale: the best prediction of tomorrow’s value is today’s value.

[!NOTE] Key Intuition
A martingale has no predictable trend or drift. All changes are purely random with zero expected value.


2. Formal Definition

2.1 Discrete-Time Martingale

A stochastic process {Mn}n0 is a martingale with respect to filtration {Fn} if:

  1. Integrability: E[|Mn|]< for all n
  2. Adaptedness: Mn is Fn -measurable
  3. Martingale Property: E[Mn+1Fn]=Mn

2.2 Continuous-Time Martingale

A stochastic process {Mt}t0 is a martingale with respect to filtration {Ft} if:

  1. Integrability: E[|Mt|]< for all t
  2. Adaptedness: Mt is Ft -measurable
  3. Martingale Property: E[MtFs]=Ms for all s<t

[!QUOTE] Martingale Property

E[MtFs]=Ms,s<t

Given all information up to time s , the expected value at time t is exactly the current value Ms .


3.1 Submartingale and Supermartingale

Type Definition Intuition
Martingale E[MtFs]=Ms Fair game
Submartingale E[XtFs]Xs Favorable game (upward drift)
Supermartingale E[YtFs]Ys Unfavorable game (downward drift)

3.2 Local Martingale

A process Mt is a local martingale if there exists a sequence of stopping times τn such that the stopped process Mtτn is a martingale for each n .

[!WARNING] Important Distinction
Not all local martingales are true martingales. Local martingales may have “explosive” behavior that violates integrability conditions.


4. Key Examples

4.1 [[Wiener Process|Wiener Process]]

The [[Wiener Process|Wiener Process]] Wt is a martingale:

E[WtFs]=Ws,s<t

Proof: Since WtWsN(0,ts) and is independent of Fs :

E[WtFs]=E[Ws+(WtWs)Fs]=Ws+0=Ws

4.2 Exponential Martingale

For [[Wiener Process|Wiener Process]] Wt , the process:

Mt=exp(θWt12θ2t)

is a martingale for any constant θR .

4.3 Stochastic Integral

If Ht is adapted and Wt is a [[Wiener Process|Wiener Process]], then:

Mt=0tHsdWs

is a local martingale (and a true martingale under appropriate conditions on Ht ).

4.4 Geometric [[Wiener Process|Brownian Motion]] (Adjusted)

While St=S0exp(μt+σWt) is not a martingale, the discounted process:

S~t=ertSt=S0exp((μr)t+σWt)

is a martingale under the risk-neutral measure when μ=r .


5. Fundamental Properties

5.1 Optional Stopping Theorem

Theorem: If Mt is a martingale and τ is a bounded stopping time, then:

E[Mτ]=E[M0]

Applications:

  • Gambling strategies cannot beat a fair game
  • Pricing of American options
  • Exit time analysis

5.2 Doob’s Inequality

For a martingale Mt and any λ>0 :

P(sup0st|Ms|λ)E[|Mt|]λ

This provides bounds on the maximum value of a martingale.

5.3 Martingale Convergence Theorem

Theorem: If Mt is a martingale bounded in L1 (i.e., suptE[|Mt|]< ), then:

MtMalmost surely as t

5.4 Quadratic Variation

For a continuous martingale Mt , the quadratic variation [M]t exists and:

Mt2[M]tis a martingale

For [[Wiener Process|Wiener Process]]: [W]t=t .


6. Martingales in SDEs

6.1 Drift Condition

An Itô process:

dXt=μ(t,Xt)dt+σ(t,Xt)dWt

is a martingale if and only if μ(t,x)=0 for all (t,x) .

[!TIP] Key Insight
Martingales have zero drift. The deterministic component must vanish.

6.2 Itô Integral as Martingale

The [[Itô Integral|Itô integral]]:

Mt=0tσ(s,Xs)dWs

is a martingale (under square-integrability conditions).

6.3 Martingale Representation Theorem

Theorem: Any martingale Mt adapted to the filtration generated by [[Wiener Process|Wiener Process]] Wt can be represented as:

Mt=M0+0tϕsdWs

for some adapted process ϕt .


7. Applications

7.1 Financial Mathematics

Application Description
Risk-Neutral Pricing Asset prices are martingales under risk-neutral measure
Fundamental Theorem No arbitrage existence of equivalent martingale measure
Option Pricing Black-Scholes formula derived using martingale methods
Hedging Construct replicating portfolios via martingale representation

7.2 Optimal Stopping

Problems of the form:

V=supτE[g(Xτ)]

where τ is a stopping time, are solved using martingale techniques (Snell envelope).

7.3 Statistical Inference

  • Likelihood ratio tests: Likelihood ratios form martingales
  • Sequential analysis: Wald’s sequential probability ratio test
  • Bootstrap methods: Martingale-based resampling

7.4 Diffusion Models

In [[Diffusion Model|Diffusion Models]]:

  • The noise process Wt is a martingale
  • [[Score Function|Score matching]] objectives relate to martingale estimating functions
  • Reverse-time processes involve martingale decompositions

Martingale Role in Training:

  1. Forward process as martingale: The forward [[Stochastic Differential Equation (SDE)|SDE]] dx=f(t)xdt+g(t)dWt has a martingale component g(t)dWt

  2. Score matching as martingale estimating equation: The score matching loss can be interpreted as a martingale estimating function, ensuring unbiased gradient estimates

  3. ELBO decomposition: The variational bound in [[Diffusion Model|DDPM]] decomposes into KL divergences, each involving martingale properties of the forward process

  4. Reverse-time martingales: Under time reversal, certain processes become martingales, enabling tractable reverse sampling

[!NOTE] Why Martingale Matters for Diffusion
The martingale property of Wt ensures that the noise injection in the forward process has no predictable drift — it’s purely random. This is what makes the reverse process learnable: the model only needs to predict the deterministic drift, not the random component.


8. Testing for Martingale Property

8.1 Practical Checklist

To verify if a process Xt is a martingale:

  1. ✓ Check integrability: E[|Xt|]<
  2. ✓ Verify adaptedness: Xt depends only on information up to time t
  3. ✓ Compute conditional expectation: E[XtFs]=?Xs
  4. ✓ For Itô processes: Check if drift term is zero

8.2 Common Pitfalls

Process Martingale? Reason
Wt ✓ Yes Zero drift
Wt2 ✗ No E[Wt2Fs]=Ws2+(ts)
Wt2t ✓ Yes Compensated quadratic variation
eWt ✗ No E[eWt]=et/2
eWtt/2 ✓ Yes Exponential martingale

9. Core Formula Cards

[!QUOTE] Martingale Property

E[MtFs]=Ms,s<t

[!QUOTE] Optional Stopping Theorem

E[Mτ]=E[M0](for bounded stopping time τ)

[!QUOTE] Exponential Martingale

Mt=exp(θWt12θ2t)

[!QUOTE] Itô Integral Martingale

Mt=0tHsdWsis a martingale

[!QUOTE] Quadratic Variation Martingale

Mt2[M]tis a martingale

  • [[Stochastic Process]]
  • [[Wiener Process|Wiener Process]]
  • [[Stochastic Differential Equation (SDE)]]
  • [[Itô Integral]]
  • [[Itô’s Lemma]]
  • [[Markov Process]]
  • [[Brownian Motion]]
  • [[Filtration]]
  • [[Stopping Time]]
  • [[Doob’s Decomposition]]
  • [[Diffusion Model]]
  • [[Score Function]]

Dataview Query

1
2
3
LIST
FROM #martingale OR #stochastic_process
SORT file.ctime DESC

References

  • Book: [[Wiener Process|Brownian Motion]] and Stochastic Calculus - Karatzas & Shreve
  • Book: Stochastic Differential Equations - Bernt Øksendal
  • Book: Probability with Martingales - David Williams
  • Course: MIT 18.S096 Topics in Mathematics with Applications in Finance
  • Paper: Martingale Methods in Financial Modelling - Musiela & Rutkowski