Quant Memo
Advanced

The Fokker-Planck and Kolmogorov Equations

Two PDEs describing the same diffusion from opposite ends of time — one evolves a probability density forward to predict tomorrow's distribution of outcomes, the other evolves an expected payoff backward from a known future to price it today.

Prerequisites: The Infinitesimal Generator of a Diffusion, Stochastic Differential Equations

An option pricing PDE and a "where will the price distribution end up" simulation both start from the exact same SDE. They look like different problems — one wants a single number today, the other wants a whole probability density in the future — but they're solved by two versions of essentially one equation, run in opposite time directions.

The analogy: a weather forecast versus a claims payout

Forward: given today's weather, what's the probability distribution of tomorrow's rainfall — not one number, the whole shape of possible outcomes and their likelihoods? That's asking how a density spreads forward through time.

Backward: given a rule that pays out based on tomorrow's rainfall, what's that payout worth today, averaged over every possible path the weather could take between now and then? That's asking how an expected value should be discounted backward through time to the present.

Both questions are about the exact same rainfall process. The Fokker-Planck equation answers the first kind of question; the Kolmogorov backward equation answers the second — same diffusion, opposite direction of information flow.

Writing it down

For a diffusion dXt=μ(x)dt+σ(x)dWtdX_t = \mu(x)\,dt + \sigma(x)\,dW_t, let p(x,t)p(x,t) be the probability density of XtX_t. The Fokker-Planck equation (forward Kolmogorov equation) says

pt=x[μ(x)p]+122x2[σ(x)2p].\frac{\partial p}{\partial t} = -\frac{\partial}{\partial x}\big[\mu(x)p\big] + \frac{1}{2}\frac{\partial^2}{\partial x^2}\big[\sigma(x)^2 p\big].

In words: the density at any point changes over time from two competing effects — drift carrying probability mass along (the first term, like a current sweeping the density downstream) and volatility spreading probability mass out (the second term, a diffusion/smoothing effect, exactly like heat spreading through a rod). It's the adjoint of the infinitesimal generator (see The Infinitesimal Generator of a Diffusion) — same building blocks, applied to the density instead of to a payoff function.

The Kolmogorov backward equation describes u(x,t)=E[g(XT)Xt=x]u(x,t) = E[g(X_T) \mid X_t = x], the expected value of some future payoff gg given the current state:

ut+μ(x)ux+12σ(x)22ux2=0.\frac{\partial u}{\partial t} + \mu(x)\frac{\partial u}{\partial x} + \frac{1}{2}\sigma(x)^2\frac{\partial^2 u}{\partial x^2} = 0.

In words: this is exactly u/t+Lu=0\partial u/\partial t + \mathcal{L}u = 0, the generator from the earlier concept applied directly — it says the expected future payoff, viewed backward from maturity, evolves according to the diffusion's own drift and volatility acting on it. This is precisely the PDE the Black-Scholes equation is an instance of, with gg the option's payoff at expiry.

Distribution · normal
-2.000.002.00μvalue →
Within ±1σ 68.3%mean μ 0.00std σ 1.00

Picture the curve above evolving through time instead of staying fixed: for plain Brownian motion started at a spike (all mass at x=0x=0), the Fokker-Planck equation says that spike spreads into wider and wider normal curves as tt grows — literally p(x,t)=N(0,t)p(x,t) = \mathcal{N}(0,t), the density's standard deviation growing as t\sqrt{t}, exactly the spreading picture the equation predicts.

t small: tall, narrow t large: wide, flat
Fokker-Planck evolving a spike forward in time: the density starts concentrated and spreads out, its width growing like the square root of time — the same shape shift a Monte Carlo histogram of simulated endpoints would show.

Worked example 1: Fokker-Planck confirms a known density

For standard Brownian motion, μ=0\mu=0, σ=1\sigma=1, so the Fokker-Planck equation reduces to the heat equation p/t=122p/x2\partial p/\partial t = \tfrac12 \partial^2 p/\partial x^2. Check that p(x,t)=12πtex2/2tp(x,t) = \frac{1}{\sqrt{2\pi t}} e^{-x^2/2t} solves it: at t=1t=1, x=0x=0, p(0,1)=1/2π0.3989p(0,1) = 1/\sqrt{2\pi} \approx 0.3989. At t=4t=4, x=0x=0: p(0,4)=1/8π0.1995p(0,4) = 1/\sqrt{8\pi} \approx 0.1995 — exactly half, since the density has spread out (its standard deviation doubled from 1 to 2, so the peak height halved). Differentiating the formula with respect to tt and xx and substituting confirms it satisfies the PDE exactly, which is the formal proof that Brownian motion's density really does evolve by simple diffusive spreading, term for term.

Worked example 2: backward equation prices a simple claim

Suppose XtX_t is Brownian motion (μ=0,σ=1\mu=0,\sigma=1) and you want u(x,0)=E[XT2X0=x]u(x,0) = E[X_T^2 \mid X_0 = x] for T=2T=2. Guess u(x,t)=x2+c(Tt)u(x,t) = x^2 + c(T-t) for a constant cc to be found, and plug into the backward equation: u/t=c\partial u/\partial t = -c, u/x=2x\partial u/\partial x = 2x, 2u/x2=2\partial^2u/\partial x^2 = 2. The equation c+0×2x+12×1×2=0-c + 0\times 2x + \tfrac12 \times 1 \times 2 = 0 gives c=1c=1. So u(x,0)=x2+1×(20)=x2+2u(x,0) = x^2 + 1\times(2-0) = x^2+2. Starting at x=3x=3: u(3,0)=9+2=11u(3,0) = 9+2=11. Direct check: E[X22X0=3]=Var(X2)+(E[X2])2=2+9=11E[X_2^2 \mid X_0=3] = \text{Var}(X_2) + (E[X_2])^2 = 2 + 9 = 11 — the PDE solution and the direct probability computation agree exactly, confirming the backward equation correctly propagates expected values back to today.

What this means in practice

  • The Black-Scholes PDE is a Kolmogorov backward equation with the risk-neutral drift and the option's payoff as the terminal condition — every "solve the PDE" derivation of an option price is running this machinery.
  • Fokker-Planck is what a Monte Carlo simulation is implicitly sampling from — simulating many paths and building a histogram of the endpoints is a numerical way to approximate the density that Fokker-Planck describes exactly.
  • Stationary distributions of mean-reverting processes (the long-run distribution of a short rate or a volatility process) are found by setting p/t=0\partial p/\partial t = 0 in Fokker-Planck and solving the resulting ODE — see Stationary Distributions and Ergodicity.

The Fokker-Planck equation evolves a probability density forward in time from a known starting point; the Kolmogorov backward equation evolves an expected payoff backward in time from a known future condition. Same diffusion, same drift-plus-diffusion structure, opposite direction of information flow — and Black-Scholes is a specific case of the backward one.

Mixing up which equation applies to which problem produces a PDE with the wrong boundary condition attached at the wrong end of time. Pricing problems (known payoff at maturity, want value today) are backward-equation problems solved with a terminal condition; density-evolution problems (known distribution today, want the distribution later) are forward-equation problems solved with an initial condition. Setting up an option-pricing PDE with an initial condition instead of a terminal one — or vice versa for a density-forecasting problem — solves a different, well-posed PDE that just happens not to be the one you meant to ask.

Related concepts

Practice in interviews

Further reading

  • Øksendal, Stochastic Differential Equations (ch. 8)
  • Gardiner, Stochastic Methods (ch. 5)
ShareTwitterLinkedIn