Euler-Maruyama Method

We can simulate Brownian Motion (BM) via the discrete approximation of its independent increments.

Let and . Let for and . The objective is construct a discrete time process

such that for a standard BM, . The scaling factor arises directly from the property that Brownian increments are normally distributed with variance .

Algorithm: (Euler, with notation as above)

  1. Set
  2. For to ,
    1. Generate
    2. Set
  3. Output to get

This should look like path (similar to what a stock ticker would look like). We can do linear interpolation to connect to get approximate sample path .

BM with Drift

Let where is a BM. Note that represents the deterministic drift velocity, and represents the diffusion coefficient. We can example the distribution of :

  1. , since by properties.
  2. Thus the marginal distribution is .

SDE Notation

Recall the SDE notation. We can extend this with drift:

We can “integrate” to get .

Stochastic integration is different in general! You need different frameworks, the Riemann-Stieltjes Integral fails due to infinite total variation.

Euler’s Method For BM with Drift

Let for .

  • Set
  • For to ,
    • Generate
  • Output approximates true solution to .

Remarks on Euler’s Method

  • The continuous SDE is the formal limit of the discrete update rule as :
  • In Euler’s Method, the discrete update computes the next state by adding the deterministic drift and the stochastic diffusion evaluated over the interval :
  • We can think of a SDE solution as a “continuum limit” of the solution to a discrete equation.
  • Intuitively, is like . Indeed, since , then and .
  • Langevin notation: divide by : here, is “white noise”. It is not a function! From above we get .

Moments of BM with Drift

Evaluate the first moment by applying the expectation operator to the SDE.

Taking the Expectation yields . Since , we can isolate the deterministic component. The expectation operator commutes with the differential, generating an ordinary differential equation (ODE) for the mean

Integrating this yields . From the discrete Euler approximation, the expectation of the difference equation strictly produces the same continuous limit:

Since , the relation reduces to

Dividing by and evaluating the limit as recovers the exact ODE: