Skip to contents
  • SimplifiedEM(): the simplified Euler-Maruyama method, weak order 1, with two point random variables in place of the Brownian increments.

  • SplitEM(): Euler-Maruyama for a SplitSDEProblem(), the drift being the sum of its two parts.

  • PCEuler(ggprime, theta, eta): the drift implicit predictor corrector Euler method of Kloeden and Platen; ggprime(u, p, t) is the Ito correction \(\sum_k g_k' g_k\) (for scalar noise \(g g'\)).

  • WangLi3SMil_A() to WangLi3SMil_F(): Wang and Li's three stage Milstein methods (strong order 1) for diagonal and scalar noise. Each composes a drift step, a half step correction with the derivative free diffusion difference and a Milstein noise step, in six orders.

Usage

SimplifiedEM()

SplitEM()

PCEuler(ggprime, theta = 1/2, eta = 1/2)

WangLi3SMil_A()

WangLi3SMil_B()

WangLi3SMil_C()

WangLi3SMil_D()

WangLi3SMil_E()

WangLi3SMil_F()

Arguments

ggprime

The function ggprime(u, p, t) of PCEuler().

theta, eta

Implicitness of the drift and of the diffusion in PCEuler().

Value

An SDE algorithm.

Examples

prob <- SDEProblem(function(u, p, t) 1.01 * u, function(u, p, t) 0.87 * u, 0.5, c(0, 1))
sol <- solve(prob, WangLi3SMil_A(), dt = 0.01, seed = 1)
pc <- PCEuler(function(u, p, t) 0.87^2 * u)
sol2 <- solve(prob, pc, dt = 0.01, seed = 1)