SDE and methods for numerical solution.
A solution to an SDE is itself a stochastic function, which means that its value X(t) at any given time t is a random variable.
The Euler-Maruyama (EM) and Milstein methods
These methods are based on the truncated Ito-Taylor expansion.
Unfortunately, in many cases analytic solutions are not available for these equations, so we are required to use numerical methods to approximate the solution.
If we add a random element or elements to the deterministic differential equation, we have transition from an ordinary differential equation to SDE.
Some analytical and numerical solutions considered numerical approximations of random periodic solutions for SDEs. On the other hand, constructed a Milstein scheme by adding an error correction term for solving stiff SDEs.
Remember SDE form:
dX(t,w) = μ(t,X(t,w))dt + σ(t,X(t,w))dW(t,w) and X(t0,w) = X0
where μ is the drift coefficient
where σ is the the diffusion coefficient
The Monte Carlo simulation:
Monte Carlo methods are numerical methods, where random numbers are used to conduct a computational experiment. Numerical solution of stochastic differential equations can be viewed as a type of Monte Carlo calculation.
In Monte Carlo simulation, the entire system is simulated a large number of times.
So, a set of suitable sample paths is produced on [t0,T].
Each simulation is equally likely, referred to as a realization of the system. For each realization, all of the uncertain parameters are sampled.
Stochastic Taylor series expansion for produce a sample path solution to the SDE on [t0,T].
The Taylor formula plays a very significant role in numerical analysis. We can obtain the approximation of a sufficiently smooth function in a neighborhood of a given point to any desired order of accuracy with the Taylor formula.
Ito-Taylor expansion obtained via Ito’s formula
First we can obtain an Ito-Taylor expansion for the stochastic case.
dX(t) = μ(X(t))dt + σ(X(t))dW(t)
where μ and σ satisfy a linear growth bound and are sufficiently smooth.
Once we have the Ito-Taylor expansion, we can construct numerical integration schemes for the proces.
Ito-Taylor expansion was based upon the use of multiple stochastic integrals. Itô–Taylor expansions are characterized by the choice of the multiple integrals which appear in them.
Euler-Maruyama method
The Milstein method is another technique for the approximate numerical solution of a stochastic differential equation.
If we truncate Ito’s formula of the stochastic Taylor series after the first order terms, we obtain the Euler method or Euler-Maruyama method.
Milstein method
If we truncate the stochastic Taylor series after second order terms, we obtain the Milstein method.
There are many other approximation schemes for SDEs, ie: Runge-Kutta method(which achieves the same convergence properties as the Milstein method, but without the need to compute derivatives of the σ(⋅) function.
Milstein method is more accurate than its counterpart, Euler Maruyama method. For Milstein method, the errors decrease as N increases for all N values.
Overall, Milstein method performed consistently better than Euler Maruyama method with respect to accuracy.
Euler Maruyama method is the simplest numerical method for solving stochastic differential equation but has slow convergence.
https://www.sciencedirect.com/science/article/pii/S0377042703004643
https://en.wikipedia.org/wiki/Euler%E2%80%93Maruyama_method
https://advancesindifferenceequations.springeropen.com/articles/10.1186/s13662-018-1466-5
Recommended
https://hautahi.com/sde_simulation