Fokker-Planck for Financial Models¶
The Fokker-Planck equation describes the evolution of probability density functions for diffusion processes. It is the forward equation counterpart to the backward Kolmogorov equation and provides crucial insights into the probability distribution of asset prices under various financial models.
Key Concepts¶
Forward Equation (Fokker-Planck) For a diffusion process \(dX_t = \mu(X_t, t) dt + \sigma(X_t, t) dB_t\), the Fokker-Planck equation governs the probability density \(p(x, t)\):
Geometric Brownian Motion (GBM) For GBM: \(dS_t = \mu S_t dt + \sigma S_t dB_t\)
The Fokker-Planck equation is:
In log-space with \(y = \ln(x)\), the density becomes Gaussian:
Cox-Ingersoll-Ross (CIR) Model For interest rates: \(dr_t = \kappa(\theta - r_t) dt + \sqrt{\gamma r_t} dB_t\)
The Fokker-Planck equation yields a non-central chi-square distribution under specific parameter conditions, enabling analytical computation of transition probabilities.
Mean-Reverting Processes For Ornstein-Uhlenbeck type processes, the Fokker-Planck equation has steady-state solutions that represent long-run probability distributions, independent of initial conditions.
Conditional Distribution Properties The Fokker-Planck equation determines: - Conditional transition densities \(p(x, t | x_0, 0)\) - Moments and moment dynamics - Boundary behavior and absorption probabilities
Practical Significance
Fokker-Planck equations enable: - Analytical computation of option prices (no boundary conditions needed unlike PDEs) - Calibration of model parameters to observed density features - Risk management through understanding the distribution of future asset values - Construction of transition probability matrices for discrete approximations
QuantPie Derivation¶
Fokker-Planck Equation for Brownian Motion¶
For Brownian motion \(dX_t = dB_t\), the probability density \(p(x, t)\) satisfies:
Derivation using Itô's Lemma:
For any test function \(f\) in \(C_c^2\) (twice continuously differentiable with compact support):
Taking expectations:
Using the transition density function \(p(x, t)\):
Integration by parts (assuming boundary terms vanish):
Therefore:
Since this holds for all test functions:
Fokker-Planck for General Diffusions¶
For a general SDE:
Applying Itô's Lemma:
Taking expectations and using integration by parts:
Key examples:
| Process | SDE | Fokker-Planck |
|---|---|---|
| Brownian Motion | \(dX_t = dB_t\) | \(\frac{\partial p}{\partial t} = \frac{1}{2}\frac{\partial^2 p}{\partial x^2}\) |
| Ornstein-Uhlenbeck | \(dX_t = -\kappa X_t dt + \sigma dB_t\) | \(\frac{\partial p}{\partial t} = \kappa\frac{\partial(xp)}{\partial x} + \frac{1}{2}\sigma^2\frac{\partial^2 p}{\partial x^2}\) |
| Geometric Brownian Motion | \(dX_t = \mu X_t dt + \sigma X_t dB_t\) | \(\frac{\partial p}{\partial t} = -\mu\frac{\partial(xp)}{\partial x} + \frac{1}{2}\sigma^2\frac{\partial^2(x^2 p)}{\partial x^2}\) |
Connection to Kolmogorov Equations¶
The Fokker-Planck equation is the forward Kolmogorov equation - it describes how the probability density evolves forward in time. In contrast, the backward Kolmogorov equation describes how solutions to PDE problems evolve backward in time (relevant for pricing and expected values).
Forward vs Backward:
| Aspect | Forward (Fokker-Planck) | Backward |
|---|---|---|
| Variables | \(x, t\) (forward time) | \(x_0, t_0\) (backward time) |
| Describes | Evolution of density | PDE for expected values |
| Application | Probability distributions | Option pricing, exit times |
| Boundary Conditions | Initial condition required | Terminal condition required |
Exercises¶
Exercise 1. Write the Fokker-Planck equation for the Ornstein-Uhlenbeck process \(dX_t = -\kappa X_t\,dt + \sigma\,dB_t\). Verify that the stationary density \(p_\infty(x) \propto \exp(-\kappa x^2/\sigma^2)\) satisfies \(\mathcal{L}^* p_\infty = 0\).
Solution to Exercise 1
The Ornstein-Uhlenbeck process has \(\mu(x) = -\kappa x\) and \(\sigma(x) = \sigma\) (constant). The Fokker-Planck equation is:
The adjoint operator is:
Now we verify that \(p_\infty(x) = C\exp(-\kappa x^2/\sigma^2)\) satisfies \(\mathcal{L}^* p_\infty = 0\). Compute:
Therefore:
Thus \(p_\infty(x) \propto \exp(-\kappa x^2/\sigma^2)\) is indeed the stationary density, which is a Gaussian \(N(0, \sigma^2/(2\kappa))\).
Exercise 2. Starting from the general Fokker-Planck equation for \(dX_t = \mu(X_t, t)\,dt + \sigma(X_t, t)\,dB_t\), derive the Fokker-Planck equation for geometric Brownian motion \(dS_t = \mu S_t\,dt + \sigma S_t\,dB_t\) by identifying \(\mu(S) = \mu S\) and \(\sigma(S) = \sigma S\). Expand all derivatives using the product rule.
Solution to Exercise 2
For GBM, \(\mu(S) = \mu S\) and \(\sigma(S) = \sigma S\). Substituting into the general Fokker-Planck equation:
Expanding the drift term using the product rule:
Expanding the diffusion term — let \(D(S) = \sigma^2 S^2\). First derivative:
Second derivative:
Combining:
Exercise 3. For the CIR process \(dr_t = \kappa(\theta - r_t)\,dt + \sqrt{\gamma r_t}\,dB_t\), write down the Fokker-Planck equation. Determine the stationary density by solving \(\mathcal{L}^* p_\infty = 0\) and identify it as a Gamma distribution. Under what condition on \(\kappa\), \(\theta\), and \(\gamma\) is \(p_\infty\) integrable?
Solution to Exercise 3
For the CIR process, \(\mu(r) = \kappa(\theta - r)\) and \(\sigma(r) = \sqrt{\gamma r}\), so \(\sigma^2(r) = \gamma r\). The Fokker-Planck equation is:
For the stationary density, set \(\partial_t p = 0\) and use the zero-current condition \(J = 0\):
Expanding the right side:
Rearranging:
This ODE has the solution:
This is a Gamma distribution with shape parameter \(\alpha = 2\kappa\theta/\gamma\) and rate parameter \(\beta = 2\kappa/\gamma\).
For \(p_\infty\) to be integrable (i.e., a valid density), we need the exponent of \(r\) to satisfy \((2\kappa\theta/\gamma) - 1 > -1\), which gives the condition:
This is automatically satisfied when \(\kappa, \theta, \gamma > 0\). However, for \(p_\infty(r)\) to be integrable near \(r = 0\) (so the density does not blow up too fast), we need \(\alpha = 2\kappa\theta/\gamma > 0\). The stronger Feller condition \(2\kappa\theta \geq \gamma\) (i.e., \(\alpha \geq 1\)) ensures the density is bounded at the origin.
Exercise 4. Using the Fokker-Planck derivation via Ito's lemma and test functions, show that for any smooth test function \(f\) with compact support and any diffusion process \(X_t\):
Explain how integration by parts transfers the derivatives from \(f\) to \(p\).
Solution to Exercise 4
For a general diffusion \(dX_t = \mu(X_t)\,dt + \sigma(X_t)\,dB_t\), apply Ito's lemma to a smooth test function \(f\) with compact support:
Taking expectations (the stochastic integral vanishes since \(f\) has compact support and is bounded):
Now, writing expectations using the transition density \(p(x, t)\):
Integration by parts transfers the derivatives from \(f\) to \(p\):
For the drift term:
(boundary terms vanish because \(f\) has compact support).
For the diffusion term (integrating by parts twice):
The net effect is that each derivative on \(f\) is transferred to the product of the coefficient and \(p\), with a sign change per integration by parts. This transforms the generator \(\mathcal{L}\) acting on \(f\) into the adjoint \(\mathcal{L}^*\) acting on \(p\).
Exercise 5. For geometric Brownian motion with drift \(\mu\) and volatility \(\sigma\), verify that the log-normal density
(where \(y = \ln S\)) satisfies the Fokker-Planck equation in log-space. What is the Fokker-Planck equation in the original \(S\) variable?
Solution to Exercise 5
In log-space with \(y = \ln S\), Ito's lemma gives \(dY_t = (\mu - \sigma^2/2)\,dt + \sigma\,dB_t\). This is Brownian motion with drift \(\tilde{\mu} = \mu - \sigma^2/2\) and diffusion coefficient \(\sigma\), so the Fokker-Planck equation in log-space is:
Verification: The given density is \(p(y,t) = \frac{1}{\sigma\sqrt{2\pi t}}\exp\left(-\frac{(y - \tilde{\mu}t)^2}{2\sigma^2 t}\right)\). Let \(z = y - \tilde{\mu}t\). Then:
Computing the right-hand side:
The Fokker-Planck equation in the original \(S\) variable is:
Exercise 6. Explain why the Fokker-Planck equation for the Ornstein-Uhlenbeck process has a well-defined stationary distribution while standard Brownian motion does not. Relate this to the sign of the mean-reversion parameter \(\kappa\) and the behavior of the probability current \(J(x) = \mu(x)p - \frac{1}{2}\partial_x[\sigma^2 p]\) at stationarity.
Solution to Exercise 6
Ornstein-Uhlenbeck process: The Fokker-Planck equation is \(\partial_t p = \kappa\partial_x(xp) + \frac{\sigma^2}{2}\partial_{xx}p\). The drift \(\mu(x) = -\kappa x\) with \(\kappa > 0\) pushes probability mass back toward zero. The probability current is:
At stationarity, \(J = 0\), which gives the ODE \(-\kappa x\,p_\infty = \frac{\sigma^2}{2}p_\infty'\). This yields \(p_\infty \propto \exp(-\kappa x^2/\sigma^2)\), a Gaussian with finite variance \(\sigma^2/(2\kappa)\). The key is that the mean-reverting drift confines probability mass to a bounded region.
Standard Brownian motion: Here \(\mu = 0\) and \(\sigma = 1\), so the Fokker-Planck equation is \(\partial_t p = \frac{1}{2}\partial_{xx}p\). The probability current at stationarity would require \(J = -\frac{1}{2}\partial_x p = 0\), which means \(p_\infty = \text{const}\). But a constant on \(\mathbb{R}\) is not integrable, so no stationary density exists.
The fundamental difference is the sign and nature of the drift:
- When \(\kappa > 0\), the drift \(-\kappa x\) creates a restoring force that balances diffusion, producing a normalizable stationary density.
- When there is no drift, diffusion spreads probability mass indefinitely, and the variance grows as \(t\) without bound.
Exercise 7. In the table comparing forward and backward equations, the forward equation describes the evolution of density while the backward equation describes PDE solutions for expected values. For a European call option with payoff \(g(S_T) = (S_T - K)^+\), explain which equation you would use to find the option price and which you would use to find the terminal distribution of \(S_T\). How are the two approaches connected via the identity \(\mathbb{E}[g(X_T)] = \int g(x)\,p(x, T)\,dx\)?
Solution to Exercise 7
Option pricing (backward equation): To find the option price \(V(t, S) = e^{-r(T-t)}\mathbb{E}^{\mathbb{Q}}[(S_T - K)^+ \mid S_t = S]\), we use the backward Kolmogorov equation (or equivalently the Black-Scholes PDE):
with terminal condition \(V(T, S) = (S - K)^+\). This PDE is solved backward from \(T\) to \(t\) and gives the option price as a function of the current stock price and time.
Terminal distribution (forward equation): To find the probability density of \(S_T\) under the risk-neutral measure, we solve the Fokker-Planck (forward) equation:
with initial condition \(p(S, 0 \mid S_0) = \delta(S - S_0)\).
Connection: The two approaches are linked by the identity:
The backward approach solves one PDE (with terminal condition \(g\)) and evaluates at the initial point — efficient when we want the price for one payoff at many initial prices. The forward approach solves another PDE (with delta initial condition) and integrates against \(g\) — efficient when we want to price many different payoffs for the same initial condition, since the density \(p\) can be reused for any payoff \(g\).