Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.A boat in choppy water
A boat motors toward a buoy. Without waves, its path follows a simple rule: “move toward the buoy at this speed.” That’s an ordinary differential equation. Now add waves that nudge it randomly every moment. The rule becomes “move toward the buoy, plus a random push.” That’s a stochastic differential equation (SDE).
You can’t predict the exact path any more, but you can predict how the uncertainty behaves. A boat that keeps steering back ends up wobbling around the buoy within a fixed range. One that doesn’t steer drifts further and further.
Gyro biases that wander but stay bounded, a drone buffeted by gusts, battery degradation, and the “noise in, image out” process of diffusion models are all SDEs. Kalman filters for continuous systems, stochastic optimal control and modern generative AI are built on them.
- 1. An SDE is a differential equation plus…
- 2. A system that keeps steering back wobbles…
- 3. Can you predict an SDE's exact path?
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.What an SDE means
is shorthand for the integral equation . Here is the drift and is the diffusion coefficient. The last term is an Itô integral, defined as the limit of left-point sums .
Euler–Maruyama
The simplest simulation is
Notice the : noise accumulates like a random walk.
Two workhorse SDEs
- Ornstein–Uhlenbeck (OU): . It’s mean-reverting, with stationary distribution and correlation time . It models velocity under drag and slowly wandering sensor biases (the “first-order Gauss–Markov” process).
- Geometric Brownian motion (GBM): . The noise is proportional to the level. It models prices, and growth with multiplicative uncertainty.
- 1. In Euler–Maruyama the noise term is multiplied by…
- 2. OU's stationary variance is…
- 3. In GBM, the noise is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Itô’s lemma: the stochastic chain rule
For and smooth ,
The extra comes from (quadratic variation, A4.4-4). Keep second-order Taylor terms in , and drop and .
Examples:
- , so , not .
- For GBM, . So : the mean is , but the median is .
- .
Solving OU exactly
Apply Itô to : . So
This gives the exact discretization with . It’s valid for any step size, which Euler is not.
Itô vs Stratonovich
Evaluating the integrand at the midpoint gives the Stratonovich integral , which obeys ordinary calculus. Itô integrals don’t look ahead, so they’re martingales (A4.4-7), which is what filtering and finance need. Physical white-noise limits often come out Stratonovich (Wong–Zakai). Converting between the two adds or removes .
- 1. Itô's lemma adds the term…
- 2. ∫₀ᵀ W dW (Itô) =
- 3. GBM's median at time t is…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Why Itô’s lemma holds (sketch)
Take a partition of and Taylor-expand to second order:
- First-order terms. Summing gives .
- Second-order terms. , exactly as the quadratic variation (A4.4-4). In ordinary calculus this term would vanish.
- Remainders. Higher-order terms vanish in the limit. ∎
Itô isometry and martingale property
For adapted (it doesn’t peek into the future),
Proof for step functions: cross terms with vanish, because is independent of everything before it. Diagonal terms give . Extend by density in . ∎ For example, .
Convergence of numerical schemes
Euler–Maruyama has strong order 1/2: , and weak order 1. Milstein adds and reaches strong order 1 (Kloeden and Platen, 1992). Strong order matters for pathwise accuracy, as in filtering. Weak order matters for expectations, as in Monte Carlo pricing.
The Fokker–Planck equation
The density of solves . For OU, the stationary solution is the density. Langevin MCMC uses , whose stationary density is exactly .
Exercise 3.1: Derive the GBM solution
Itô with : and , so . Integrate and exponentiate.
- 1. Euler–Maruyama's strong order of convergence is…
- 2. E(∫₀ᵀ W dW)² =
- 3. Langevin dynamics dX = ∇log π dt + √2 dW has stationary density…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Discretizing a gyro-bias model for a filter
INS/GNSS filters model gyro bias as an OU (first-order Gauss–Markov) process with a correlation time of around 300 s. When the filter runs slowly, or between sparse star-tracker fixes, the step can be comparable to or larger than the correlation time. Euler then gives , which oscillates or diverges once . The exact transition with process noise stays correct at any rate. For linear systems that’s the Van Loan matrix-exponential method used to build in every Kalman filter (Van Loan, 1978; Maybeck, 1979).
SDEs in AI, robotics and aerospace
- Diffusion and score-based generative models. A forward SDE turns data into noise. Generation runs the reverse-time SDE (Anderson, 1982), with the score learned by a network (Song et al., 2021). Its deterministic twin, the probability-flow ODE, gives fast samplers.
- Kalman–Bucy and nonlinear filtering. Continuous-time state estimation treats dynamics and measurements as SDEs. The Zakai and Kushner–Stratonovich equations describe the exact posterior (Jazwinski, 1970).
- Stochastic optimal control. The HJB equation for dX = f dt + g dW includes the Itô term . LQG, path-integral control and risk-sensitive control follow (Fleming and Rishel, 1975; Kappen, 2005).
- Langevin MCMC and SGD. Stochastic-gradient Langevin dynamics adds Brownian noise to SGD to sample posteriors (Welling and Teh, 2011). Continuous SDE models of SGD explain learning-rate and batch-size effects (Li, Tai and E, 2017).
- Orbit uncertainty and atmospheric drag. Density fluctuations are modelled as OU processes in orbit-determination filters. They are a dominant source of low-Earth-orbit prediction error.
References
- B. Øksendal (2003). Stochastic Differential Equations, 6th ed. Springer.
- K. Itô (1944). “Stochastic integral.” Proceedings of the Imperial Academy, Tokyo, 20.
- P. Kloeden, E. Platen (1992). Numerical Solution of Stochastic Differential Equations. Springer.
- D. Higham (2001). “An algorithmic introduction to numerical simulation of stochastic differential equations.” SIAM Review, 43(3).
- S. Särkkä, A. Solin (2019). Applied Stochastic Differential Equations. Cambridge University Press.
- C. Van Loan (1978). “Computing integrals involving the matrix exponential.” IEEE Transactions on Automatic Control, 23(3).
- P. Maybeck (1979). Stochastic Models, Estimation, and Control, Vol. 1. Academic Press.
- B. Anderson (1982). “Reverse-time diffusion equation models.” Stochastic Processes and their Applications, 12(3).
- Y. Song et al. (2021). “Score-based generative modeling through stochastic differential equations.” ICLR.
- M. Welling, Y. W. Teh (2011). “Bayesian learning via stochastic gradient Langevin dynamics.” ICML.
- A. Jazwinski (1970). Stochastic Processes and Filtering Theory. Academic Press.