Zahri-Edu University

Equation Solver › Differential and integral equations

solver.zahri-edu.net

Stochastic differential equations

dX = μ(t, X) dt + σ(t, X) dW

Monte Carlo simulation of an SDE by Euler–Maruyama or Milstein: sample paths, mean and standard deviation.

Equation dX = μ dt + σ dW
Simulation
Press Solve.

Method

With increments ΔW ~ N(0, h): Euler–Maruyama Xₙ₊₁ = Xₙ + μh + σΔW (strong order ½), and Milstein adds ½σσₓ(ΔW² − h) (strong order 1, with σₓ by central differences). Moments are Monte Carlo estimates with error of order 1/√M. The random seed makes runs reproducible.

Computed in your browser with double-precision arithmetic; nothing is sent to a server. Check results by substituting them back.

Other solvers