Fokker-Planck Equation
The Fokker-Planck equation (FPE) is a partial differential equation that describes the time evolution of the probability density function of a stochastic process defined by a [[Stochastic Differential Equation (SDE)|stochastic differential equation]]. It provides the deterministic macroscopic description of the stochastic microscopic dynamics, bridging the gap between random particle trajectories and their ensemble distribution.
1. Core Concept
1.1 From Stochastic Trajectories to Deterministic Density
A single particle governed by an [[Stochastic Differential Equation (SDE)|SDE]] follows a random path:
While each trajectory is random, the probability density
[!NOTE] Key Insight
The Fokker-Planck equation transforms a stochastic trajectory problem into a deterministic density evolution problem — much like how the [[Schrödinger Equation]] governs quantum probability amplitudes. It is the master equation for continuous-state, continuous-time [[Markov Process|Markov processes]].
1.2 Physical Interpretation
| Term | Expression | Physical Meaning |
|---|---|---|
| Drift term |
|
Probability flows in the direction of deterministic trend |
| Diffusion term |
|
Probability spreads out due to random noise |
-
= drift coefficient: pushes the distribution’s mean -
= diffusion coefficient: broadens the distribution
2. One-Dimensional Fokker-Planck Equation
2.1 Standard Form
For an [[Stochastic Differential Equation (SDE)|SDE]] with drift
2.2 Probability Current Form
The FPE can be rewritten as a continuity equation (conservation of probability):
where the probability current (probability flux)
[!NOTE] Conservation of Probability
Just like the continuity equation in fluid dynamics (), the FPE ensures that total probability is conserved: for all .
2.3 Derivation from SDE
Step 1 — The infinitesimal generator
Step 2 — Its adjoint operator
Step 3 — Boundary conditions ensure probability conservation:
- Natural boundary:
as - Reflecting boundary:
at boundary - Absorbing boundary:
at boundary
3. Key Special Cases
3.1 Pure Diffusion ([[Wiener Process|Wiener Process]] / Brownian Motion)
For
This is the heat equation (or diffusion equation). The solution with initial condition
3.2 Ornstein-Uhlenbeck Process
For
Stationary solution:
3.3 Geometric Brownian Motion
For
Solution (log-normal distribution):
3.4 Summary Table
| Process | Drift
|
Diffusion
|
FPE Type |
|---|---|---|---|
| Wiener Process |
|
|
Heat equation |
| OU Process |
|
|
Mean-reverting |
| Geometric BM |
|
|
Log-normal |
| Constant drift |
|
|
Convection-diffusion |
| VP-[[Stochastic Differential Equation (SDE)|SDE]] |
|
|
Variance-preserving |
| VE-[[Stochastic Differential Equation (SDE)|SDE]] |
|
|
Variance-exploding |
4. Multidimensional Fokker-Planck Equation
4.1 General
-Dimensional Form
For a multivariate SDE:
where
where the diffusion matrix is
4.2 Compact Operator Notation
or in terms of the probability current
4.3 Isotropic Noise Special Case
When
This is the form most commonly encountered in [[Diffusion Model|diffusion models]].
5. Stationary Distribution
5.1 Equilibrium Condition
For a time-homogeneous [[Stochastic Differential Equation (SDE)|SDE]] (
5.2 Closed-Form Solution (1D)
Integrating once with zero probability current (
Solution:
where
5.3 Potential Form
If
This is the Gibbs-Boltzmann distribution with “temperature”
[!NOTE] Physical Analogy
The stationary distribution corresponds to thermal equilibrium in statistical mechanics. The driftdrives the system toward lower potential energy, while diffusion ( ) adds thermal fluctuations.
6. Forward and Backward Kolmogorov Equations
| Aspect | Forward (Fokker-Planck) | Backward (Kolmogorov) |
|---|---|---|
| Variable | Future state
|
Initial state
|
| Operates on | Probability density
|
Expectation
|
| Equation |
|
|
| Boundary condition | Given initial distribution | Given final payoff
|
| Application | Density evolution, diffusion models | Option pricing (Feynman-Kac), hitting probabilities |
6.1 Backward Kolmogorov Equation
The backward equation governs the evolution of expectations:
with terminal condition
6.2 Feynman-Kac Formula
The backward equation extends to include a potential (discount) term:
with solution:
7. Connection to Diffusion Models
7.1 Forward Process as Fokker-Planck Evolution
In [[Diffusion Model|diffusion models]], the forward process follows an [[Stochastic Differential Equation (SDE)|SDE]]:
The Fokker-Planck equation describing
The initial condition is the data distribution
7.2 VP-SDE and VE-SDE Specific Forms
Variance-Preserving (VP) [[Stochastic Differential Equation (SDE)|SDE]] (
Variance-Exploding (VE) [[Stochastic Differential Equation (SDE)|SDE]] (
7.3 Connection to [[Probability Flow ODE]]
The Fokker-Planck continuity form:
directly defines the [[Probability Flow ODE]] velocity field:
This means the [[Probability Flow ODE]] and the forward [[Stochastic Differential Equation (SDE)|SDE]] share the same Fokker-Planck equation — and therefore the same marginal densities
[!NOTE] Key Bridge
The Fokker-Planck equation is the mathematical bridge connecting three equivalent descriptions of diffusion models:
- SDE (stochastic trajectories)
- Probability Flow ODE (deterministic trajectories)
- Score matching (density gradients)
7.4 Score Function Role
In the Fokker-Planck framework, the [[Score Function|score function]]
8. Numerical Methods
8.1 Finite Difference Method
Discretize the spatial domain and approximate derivatives:
1 | # 1D Fokker-Planck solver (finite difference) |
8.2 Monte Carlo Approach
Instead of solving the PDE, simulate many SDE trajectories and estimate the density:
1 | def fokker_planck_mc(mu, sigma, x0, T, n_paths=10000): |
8.3 Method Comparison
| Method | Accuracy | Speed | Dimension | Best For |
|---|---|---|---|---|
| Finite Difference | High | Slow |
|
Low-dim, high precision |
| Finite Element | High | Medium |
|
Complex geometries |
| Monte Carlo | Low-Medium | Fast | Any
|
High dimensions |
| Spectral Methods | Very High | Fast |
|
Smooth, periodic problems |
| Deep Learning | Medium | Medium | Any
|
High-dim, irregular domains |
9. Mathematical Properties
9.1 Conservation and Positivity
- Probability conservation:
- Positivity preservation: If
, then for all - Smoothing property: FPE instantly smooths any initial distribution (
under ellipticity)
9.2 Connection to [[Itô’s Lemma]]
The Fokker-Planck equation can be derived from [[Itô’s Lemma]] by considering the expected time evolution of a test function
where
9.3 Ergodic Behavior
For an ergodic [[Markov Process|Markov process]]:
- Unique stationary distribution
exists -
as - Convergence rate determined by spectral gap of
9.4 Entropy Production
The Fokker-Planck equation satisfies an
This implies the system irreversibly approaches equilibrium — a manifestation of the Second Law of Thermodynamics for stochastic systems.
10. Core Formula Cards
[!QUOTE] 1D Fokker-Planck Equation
[!QUOTE] Probability Current Form
[!QUOTE] Multidimensional FPE
[!QUOTE] Stationary Distribution (1D, zero flux)
[!QUOTE] Heat Equation ([[Wiener Process|Wiener Process]] /
)
[!QUOTE] Infinitesimal Generator
[!QUOTE] Backward Kolmogorov Equation
[!QUOTE] FPE in [[Diffusion Model|Diffusion Models]]
11. Summary
| Aspect | Description |
|---|---|
| What it describes | Time evolution of probability density under an SDE |
| Type | Second-order parabolic PDE |
| Input | Drift
|
| Output | Density
|
| Key property | Conservation of total probability |
| Role in diffusion models | Bridges SDE description to Probability Flow ODE |
| Physical analog | Continuity equation, heat equation, Fick’s law of diffusion |
| Named after | Adriaan Fokker (1914) and Max Planck (1917) |
Related Concepts
- [[Stochastic Differential Equation (SDE)]]
- [[Wiener Process|Wiener Process]]
- [[Probability Flow ODE]]
- [[Diffusion Model]]
- [[Itô’s Lemma]]
- [[Itô Integral]]
- [[Markov Process]]
- [[Martingale]]
- [[Score Function]]
- [[Kolmogorov Equations]]
- [[Neural ODE]]
- [[Langevin Dynamics]]
- [[Feynman-Kac Formula]]
Dataview Query
1 | LIST |
References
- Paper: On the Theory of Brownian Motion (Fokker, 1914)
- Paper: Über einen Satz der statistischen Dynamik (Planck, 1917)
- Book: The Fokker-Planck Equation: Methods of Solution and Applications — Hannes Risken
- Book: Stochastic Processes in Physics and Chemistry — Van Kampen
- Book: Stochastic Differential Equations: An Introduction with Applications — Bernt Øksendal
- Paper: Score-Based Generative Modeling through SDEs (Song et al., 2021)
- Paper: Maximum Likelihood Training of Score-Based Diffusion Models (Song et al., 2021)
- Blog: Fokker-Planck Equation and Diffusion Models — AI papers summary
- Course: MIT 18.S096 Topics in Mathematics with Applications in Finance
- Course: CS236 Deep Generative Models (Stanford)