Skip to main content

Chapter 13 — Numerical Methods for SDEs

Guiding question

Most SDEs have no closed-form solution. How do we simulate sample paths accurately? What is the difference between strong and weak convergence, and which matters for pricing versus hedging?

Numerical methods for SDEs generalize ODE integrators, but with a fundamental new challenge: Brownian paths are not smooth. This creates a limit to convergence rates that has no analogue in deterministic integration.


13.1 The Euler–Maruyama scheme​

For the SDE dXt=b(Xt) dt+σ(Xt) dWtdX_t = b(X_t)\,dt + \sigma(X_t)\,dW_t on [0,T][0,T], fix a uniform grid tk=kΔtt_k = k\Delta t with Δt=T/n\Delta t = T/n. The Euler–Maruyama scheme:

Xk+1(n)=Xk(n)+b(Xk(n))Δt+σ(Xk(n))Δt Zk+1,X_{k+1}^{(n)} = X_k^{(n)} + b(X_k^{(n)})\Delta t + \sigma(X_k^{(n)})\sqrt{\Delta t}\,Z_{k+1},

where Z1,…,Zn∼i.i.d.N(0,1)Z_1,\ldots,Z_n\overset{\text{i.i.d.}}{\sim}N(0,1) are the discretized Brownian increments.

The Brownian motion is reconstructed by ΔWk=Δt Zk\Delta W_k = \sqrt{\Delta t}\,Z_k, consistent with Wtk+1−Wtk∼N(0,Δt)W_{t_{k+1}} - W_{t_k}\sim N(0,\Delta t).

Euler–Maruyama vs exact GBM solution
Exact solutionEuler–Maruyama0T=1
Max pointwise error74.2066
RMS error23.9668
Euler–Maruyama replaces dS = μS dt + σS dW by ΔS ≈ μS·Δt + σS·√Δt·Z. Strong order 0.5: the path error is O(√Δt). Milstein adds the first-order Itô correction to reach strong order 1. Increase the step count to watch the error shrink.

13.2 Strong and weak convergence​

Two notions of convergence measure different aspects of approximation quality.

Strong convergence measures pathwise error:

E ⁣[sup⁡k∣Xtk(n)−Xtk∣]=O(Δtp).\mathbb E\!\left[\sup_{k}|X_{t_k}^{(n)} - X_{t_k}|\right] = O(\Delta t^p).

Strong order pp means the simulated path is close to the true path.

Weak convergence measures distributional error for smooth test functions ff:

∣E[f(XT(n))]−E[f(XT)]∣=O(Δtq).\left|\mathbb E[f(X_T^{(n)})] - \mathbb E[f(X_T)]\right| = O(\Delta t^q).

Weak order qq means the distribution of the approximation is close to the true distribution.

Convergence orders of Euler–Maruyama

Under Lipschitz and linear growth conditions:

  • Strong order =12= \frac12: E[sup⁡k∣Xtk(n)−Xtk∣2]1/2=O(Δt)\mathbb E[\sup_k|X_{t_k}^{(n)}-X_{t_k}|^2]^{1/2} = O(\sqrt{\Delta t}).
  • Weak order =1= 1: ∣E[f(XT(n))]−E[f(XT)]∣=O(Δt)|\mathbb E[f(X_T^{(n)})]-\mathbb E[f(X_T)]| = O(\Delta t) for f∈C4f\in C^4.
Why strong order is only 1/2

An ODE solver (Euler method for x˙=f(x)\dot x = f(x)) has strong order 1: the error is O(Δt)O(\Delta t) per step. For an SDE, the Brownian increments have magnitude Δt\sqrt{\Delta t}, which is much larger than Δt\Delta t for small step sizes. The first-order Taylor expansion misses terms of order (ΔW)2=O(Δt)(\Delta W)^2 = O(\Delta t) — these are precisely the Itô correction terms. Missing them limits the strong order to 12\frac12.

Which convergence matters in finance?

Strong convergence is needed for:

  • Path-dependent derivatives (barrier options, lookback options): payoff depends on the full path.
  • Hedging strategies: the hedge ratio is computed along simulated paths.
  • Variance reduction techniques (control variates, stratified sampling).

Weak convergence suffices for:

  • European option pricing: payoff depends only on XTX_T.
  • Greeks by finite difference (bump and re-price): requires only distributional accuracy.

Euler–Maruyama is weak order 1, making it adequate for European pricing but not for accurate path-dependent payoffs. Milstein (below) achieves strong order 1.


13.3 The Milstein scheme​

The Milstein scheme adds the leading Itô correction to Euler–Maruyama:

Xk+1(n)=Xk(n)+bΔt+σΔt Zk+1+12σσ′[(Δt Zk+1)2−Δt],X_{k+1}^{(n)} = X_k^{(n)} + b\Delta t + \sigma\sqrt{\Delta t}\,Z_{k+1} + \tfrac12\sigma\sigma'[(\sqrt{\Delta t}\,Z_{k+1})^2 - \Delta t],

where σ′=∂xσ\sigma' = \partial_x\sigma evaluated at Xk(n)X_k^{(n)}.

The last term is 12σσ′[(ΔW)2−Δt]\frac12\sigma\sigma'[(\Delta W)^2 - \Delta t]. When averaged over many realizations, E[(ΔW)2−Δt]=0\mathbb E[(\Delta W)^2 - \Delta t] = 0, so the term adds no bias but reduces variance in the pathwise error.

Milstein strong convergence

Under Lipschitz conditions, the Milstein scheme achieves:

  • Strong order 1: E[sup⁡k∣Xtk(n)−Xtk∣2]1/2=O(Δt)\mathbb E[\sup_k|X_{t_k}^{(n)} - X_{t_k}|^2]^{1/2} = O(\Delta t).
  • Weak order 1 (same as Euler).

When does Milstein reduce to Euler? When σ′=0\sigma' = 0 (constant diffusion): dX=b(X) dt+σ dWdX = b(X)\,dt + \sigma\,dW. For additive noise, Milstein = Euler.

For GBM: σ(x)=σx\sigma(x) = \sigma x, so σ′(x)=σ\sigma'(x) = \sigma. The Milstein term is 12σ2Xk[Zk+12−1]Δt\frac12\sigma^2 X_k[Z_{k+1}^2-1]\Delta t. Milstein improves the pathwise accuracy from O(Δt)O(\sqrt{\Delta t}) to O(Δt)O(\Delta t).


13.4 Higher-order schemes: the Runge–Kutta approach​

For smooth problems (non-degenerate diffusion, smooth coefficients), the stochastic Runge–Kutta (or Platen) methods extend Milstein to higher strong and weak orders. The simplest is the order 1.5 strong Taylor scheme which adds third-order Itô-Taylor terms.

The general Itô-Taylor expansion truncated at level mm gives a scheme of strong order m/2m/2. In practice, Milstein (order 1) and the 1.5-strong scheme are the most used.


13.5 Simulation bias in log-normal and CIR processes​

For GBM, the exact scheme (log-transformation) eliminates simulation bias entirely:

Sk+1=Skexp⁡ ⁣[(r−12σ2)Δt+σΔt Zk+1].S_{k+1} = S_k\exp\!\left[(r-\tfrac12\sigma^2)\Delta t + \sigma\sqrt{\Delta t}\,Z_{k+1}\right].

This uses the exact solution ST=S0e(μ−σ2/2)T+σWTS_T = S_0 e^{(\mu-\sigma^2/2)T + \sigma W_T} evaluated at each step. Error: zero for the marginal distribution, O(Δt)O(\Delta t) for path-dependent quantities (due to discrete monitoring).

For CIR, no closed-form exact discretization exists. The QE scheme (Quadratic Exponential, Andersen 2007) approximates the non-central chi-squared distribution of Vt+ΔtV_{t+\Delta t} given VtV_t and achieves essentially zero bias for most practical parameters.

Euler with reflection for CIR: Vk+1=max⁡(Vk+κ(θ−Vk)Δt+ξVkΔt Zk+1,0)V_{k+1} = \max(V_k + \kappa(\theta-V_k)\Delta t + \xi\sqrt{V_k}\sqrt{\Delta t}\,Z_{k+1}, 0). Simple but introduces bias near zero.


13.6 Variance reduction techniques​

Antithetic variates. For each path Z1,…,ZnZ_1,\ldots,Z_n, simulate also −Z1,…,−Zn-Z_1,\ldots,-Z_n. Average the two estimates:

C^=12[f(XT(Z))+f(XT(−Z))].\hat C = \frac12[f(X_T(Z)) + f(X_T(-Z))].

Reduces variance by exploiting symmetry. Effective when ff is monotone (European calls, for example).

Control variates. Choose a random variable VV with known mean μV\mu_V. Estimate E[f(XT)]\mathbb E[f(X_T)] by:

C^cv=1N∑k[f(XT(k))−β(V(k)−μV)],\hat C_{\rm cv} = \frac1N\sum_k[f(X_T^{(k)}) - \beta(V^{(k)} - \mu_V)],

where β=Cov(f,V)/Var(V)\beta = \text{Cov}(f,V)/\text{Var}(V) is the optimal coefficient. For a European call, use the delta-hedged portfolio as a control variate.

Quasi-Monte Carlo (QMC). Replace pseudo-random ZkZ_k with quasi-random Sobol or Halton sequences. For smooth payoffs in low dimensions, QMC can achieve effective convergence rates of O(1/N)O(1/N) vs O(1/N)O(1/\sqrt{N}) for Monte Carlo.


13.7 The discretization of path-dependent payoffs​

For a barrier option (pays (ST−K)+(S_T-K)^+ if SS never hits BB), the payoff depends on the full path. Euler–Maruyama discretization misses boundary crossings that occur between grid points — discretization bias.

The Brownian bridge correction estimates the probability of crossing BB between tkt_k and tk+1t_{k+1}:

P(cross∣Stk=sk,Stk+1=sk+1)=exp⁡ ⁣(−2(sk−B)(sk+1−B)σ2sk2Δt).\mathbb P(\text{cross}\mid S_{t_k}=s_k, S_{t_{k+1}}=s_{k+1}) = \exp\!\left(-\frac{2(s_k-B)(s_{k+1}-B)}{\sigma^2 s_k^2\Delta t}\right).

This adds a correction to the Monte Carlo estimate without requiring finer time grids.


13.8 Multi-dimensional simulation​

For dSi=μiSi dt+σiSi dWidS^i = \mu_i S^i\,dt + \sigma_i S^i\,dW^i with d[Wi,Wj]=ρij dtd[W^i,W^j] = \rho_{ij}\,dt, simulate using Cholesky decomposition:

  1. Generate n×dn\times d matrix of i.i.d. N(0,1)N(0,1) random variables ZZ.
  2. Compute Cholesky factor LL of ρ\rho (ρ=LL⊤\rho = LL^\top).
  3. Set ΔW=Δt ZL⊤\Delta\mathbf W = \sqrt{\Delta t}\, ZL^\top.
  4. Apply Euler–Maruyama in each dimension using ΔWki=(ΔW)ki\Delta W^i_k = (\Delta\mathbf W)^i_k.

The correlation structure is exactly reproduced in each step.


13.9 Problems​

Problem 1: Euler bias for GBM

Show that for GBM dS=μS dt+σS dWdS = \mu S\,dt + \sigma S\,dW, the Euler–Maruyama scheme introduces a bias E[STEuler]≠S0eμT\mathbb E[S_T^{\rm Euler}] \ne S_0 e^{\mu T}. Compute the leading bias term in Δt\Delta t.

Problem 2: Milstein for GBM

Write the Milstein scheme for GBM and show that after a log transformation, the scheme becomes the exact scheme Sk+1=Ske(μ−σ2/2)Δt+σΔWkS_{k+1} = S_k e^{(\mu-\sigma^2/2)\Delta t + \sigma\Delta W_k}. This is why GBM Milstein = exact.

Problem 3: Strong order lower bound

Explain intuitively why no scheme using only Wtk−Wtk−1W_{t_k}-W_{t_{k-1}} (and not the path within each interval) can achieve strong order better than 11 for a general SDE with non-constant σ\sigma.


13.10 Selected solutions​

Solution 1

For Euler: Sk+1=Sk(1+μΔt+σΔtZk+1)S_{k+1} = S_k(1 + \mu\Delta t + \sigma\sqrt{\Delta t}Z_{k+1}). Taking expectations: E[Sk+1]=E[Sk](1+μΔt)\mathbb E[S_{k+1}] = \mathbb E[S_k](1+\mu\Delta t). Iterating: E[SnEuler]=S0(1+μΔt)n\mathbb E[S_n^{\rm Euler}] = S_0(1+\mu\Delta t)^n. Using (1+x)1/x→e(1+x)^{1/x}\to e:

(1+μΔt)n=(1+μ/n)n→eμ,(1+\mu\Delta t)^n = (1+\mu/n)^n \to e^\mu,

so E[STEuler]→S0eμT\mathbb E[S_T^{\rm Euler}]\to S_0 e^{\mu T} as n→∞n\to\infty. The leading bias is (1+μΔt)n−eμT≈S0eμT⋅12μ2TΔt=O(Δt)(1+\mu\Delta t)^n - e^{\mu T} \approx S_0 e^{\mu T}\cdot\frac12\mu^2 T\Delta t = O(\Delta t). Euler is unbiased for the expected value but biased for higher moments.

Solution 2

For GBM: b=μSb = \mu S, σ(S)=σS\sigma(S) = \sigma S, σ′(S)=σ\sigma'(S) = \sigma. The Milstein correction is 12σ(S)σ′(S)[(ΔW)2−Δt]=12σ2Sk[Z2Δt−Δt]\frac12\sigma(S)\sigma'(S)[(\Delta W)^2-\Delta t] = \frac12\sigma^2 S_k[Z^2\Delta t-\Delta t].

Sk+1=Sk+μSkΔt+σSkΔW+12σ2Sk(ΔW2−Δt)=Sk[1+μΔt+σΔW+12σ2(ΔW2−Δt)].S_{k+1} = S_k + \mu S_k\Delta t + \sigma S_k\Delta W + \tfrac12\sigma^2 S_k(\Delta W^2-\Delta t) = S_k\left[1 + \mu\Delta t + \sigma\Delta W + \tfrac12\sigma^2(\Delta W^2-\Delta t)\right].

Compare with the exact expansion e(μ−σ2/2)Δt+σΔW=1+(μ−σ2/2)Δt+σΔW+12σ2ΔW2+O(Δt3/2)e^{(\mu-\sigma^2/2)\Delta t+\sigma\Delta W} = 1 + (\mu-\sigma^2/2)\Delta t + \sigma\Delta W + \frac12\sigma^2\Delta W^2 + O(\Delta t^{3/2}). Both agree through O(Δt)O(\Delta t), confirming Milstein achieves the exact law to this order.


13.11 What this chapter gives you​

MethodStrong orderWeak orderWhen to use
Euler–Maruyama12\frac1211Simple, fast, additive noise
Milstein1111Multiplicative noise, path-dependent
Exact GBM∞\infty∞\inftyGBM only
QE scheme≈∞\approx\infty≈∞\approx\inftyCIR-type variance processes
Stochastic RK32\frac32 strong22High-accuracy, smooth payoffs

Variance reduction — antithetic variates, control variates, QMC — reduces the O(1/N)O(1/\sqrt{N}) Monte Carlo error efficiently.

The final chapter studies the geometry of SDEs at a deeper level: the Stratonovich integral, connections to manifold-valued SDEs, and an introduction to rough paths.