Euler–Maruyama method
In Itô calculus, the Euler–Maruyama method (also simply called the Euler method) is a method for the approximate numerical solution of a stochastic differential equation (SDE). It is an extension of the Euler method for ordinary differential equations to stochastic differential equations named after Leonhard Euler and Gisiro Maruyama. The same generalization cannot be done for any arbitrary deterministic method. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In Itô calculus, the Euler–Maruyama method (also simply called the Euler method) is a method for the approximate numerical solution of a stochastic differential equation (SDE). It is an extension of the Euler method for ordinary differential equations to stochastic differential equations named after Leonhard Euler and Gisiro Maruyama. The same generalization cannot be done for any arbitrary deterministic method. ==Definition== Consider the stochastic differential equation (see Itô calculus) \mathrm{d} X_t = a(X_t, t) \, \mathrm{d} t + b(X_t, t) \, \mathrm{d} W_t, with initial condition X 0 = x 0 , where W t denotes the Wiener process, and suppose that we wish to solve this SDE on some interval of time [0, T]. Then the Euler–Maruyama approximation to the true solution X is the Markov chain Y defined as follows: Partition the interval [0, T] into N equal subintervals of width \Delta t>0 : 0 = \tau_{0} Set Y 0 = x 0 Recursively define Y n for 0 ≤ n ≤ N-1 by \, Y_{n + 1} = Y_n + a(Y_n, \tau_n) \, \Delta t + b(Y_n, \tau_n) \, \Delta W_n, where \Delta W_n = W_{\tau_{n + 1}} - W_{\tau_n}. The random variables ΔW n are independent and identically distributed normal random variables with expected value zero and variance Δt. ===Derivation=== The Euler-Maruyama formula can be derived by considering the integral form of the Itô SDE X_{\tau_{n+1}} = X_{\tau_n} + \int_{\tau_n}^{\tau_{n+1}} a(X_s, s) \, ds + \int_{\tau_n}^{\tau_{n+1}} b(X_s, s) \, dW_s and approximating a(X_s, s) \approx a(X_n, \tau_n) and b(X_s, s) \approx b(X_n, \tau_n) on the small time interval [\tau_n, \tau_{n+1}] . ==Strong and weak convergence== Like other approximation methods, the accuracy of the Euler–Maruyama scheme is analyzed through comparison to an underlying continuous solution. Let X denote an Itô process over [0,T] , equal to X_t = X_0 + \int_0^t \mu(s, X_s) ds + \int_0^t \sigma(s, X_s) dW_s at time t \in [0,T] , where \mu and \sigma denote deterministic "drift" and "diffusion" functions, respectively, and W_t is the Wiener process. As discrete approximations of continuous processes are typically assessed through comparison between their respective final states at T>0 , a natural convergence criterion for such discrete processes is \lim_{N \to \infty} \mathbb{E} \left[ \left| \hat{X}_N - X_T \right| \right] = 0. Here, \hat{X}_N corresponds to the final state of the discrete process \hat{X} , which approximates X_T by taking N steps of length \Delta t = T/N . Iterative schemes satisfying the above condition are said to strongly converge to the continuous process X , which automatically implies their satisfaction of the weak convergence criterion, \lim_{N \to \infty}\left| \mathbb{E} \left[ g(\hat{X}_N)\right] - \left[ g(X_T) \right] \right| = 0, for any bounded and continuous function g . More specifically, if there exists a constant K and \gamma_s, \delta_0 > 0 such that \mathbb{E} \left[ \left| \hat{X}_N - X_T \right| \right] \leq K \delta_0^{\gamma_s} for any \delta \in (0,\delta_0) , the approximation converges strongly with order \gamma_s to the continuous process X ; likewise, \hat{X} converges weakly to X with order \gamma_w if the same inequality holds for the expectation of g(\hat{X}_N) - g(X_T) . Strong order \gamma_s convergence implies weak order \gamma_w \geq \gamma_s convergence: exemplifying this, it was shown in 1972 that the Euler–Maruyama method strongly converges with order \gamma_s = 1/2 to any Itô process, provided \mu, \sigma satisfy Lipschitz continuity and linear growth conditions with respect to x , and in 1974, the Euler–Maruyama scheme was proven to converge weakly with order \gamma_w = 1 to Itô processes governed by the same such \mu, \sigma , provided that their derivatives also satisfy similar conditions. ==Example with geometric Brownian motion== A simple case to analyze is geometric Brownian motion, which satisfies the SDE dX_t = \lambda X_t\,dt + \sigma X_t\,dW_t for fixed \lambda and \sigma . Applying Itô’s lemma to \ln X_t yields the closed-form solution X_t = X_0 \exp\left( \left(\lambda - \tfrac{1}{2} \sigma^2\right)t + \sigma W_t \right) Discretising with Euler–Maruyama gives the time-step updates Y_{n+1} = \left(1 + \lambda\Delta t + \sigma\Delta W_n\right) Y_n = Y_0 \prod_{k=0}^{n} \left(1 + \lambda\Delta t + \sigma\Delta W_k\right) By using a Taylor series expansion of the exponential function in the analytic solution, we can get a formula for the exact update in a time-step. \begin{align} X_{\tau_{k+1}} &= X_{\tau_k} \exp\left( (\lambda - \tfrac{1}{2}\sigma^2)\Delta t + \sigma\Delta W_k \right) \\ & = X_{\tau_k}\left[ 1 + \lambda\Delta t + \sigma\Delta W_k + \tfrac{1}{2}\sigma^2\left((\Delta W_k)^2 - \Delta t\right) + O\left(\Delta t^{3/2}\right) \right] \\ \end{align} Summing the local errors between the analytic and Euler-Maruyama solutions over each of the N = T / \Delta t steps gives the strong error estimate \mathbb{E}\left[\,|X_T - Y_N|\,\right] = O\left(\sqrt{\Delta t}\right) confirming strong order 1/2 convergence. Another numerical aspect to consider is stability. The path's second moment is \mathbb{E}|X_t|^2 \propto \exp\left((2\lambda + \sigma^2)t\right) , so long-time decay of the solution occurs only when 2\lambda + \sigma^2 . The Euler–Maruyama scheme preserves variance decay in this case provided that \Delta t \leq \frac{-1}{\lambda^2}\left(2\lambda + \sigma^2\right) . ==Application== modelled as a stochastic process. An area that has benefited significantly from SDEs is mathematical biology. As many biological processes are both stochastic and continuous in nature, numerical methods of solving SDEs are highly valuable in the field. ==See also== List of topics named after Leonhard Euler ==References==
Cite this
"Euler–Maruyama method". 1790682707. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377457457 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy