{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $T \u003e 0$, let $x_0 \\in \\R$, and let $a, b \\colon [0, T] \\times \\R \\to \\R$ be functions.\nConsider the stochastic differential equation $dX_t = a(t, X_t) \\, dt + b(t, X_t) \\, dB_t$ with $X_0 = x_0$, where $B$ is a [[Brownian motion|22735FGJV6]].\nLet $N \\ge 1$, let $\\Delta t = T / N$, and let $t_n = n \\, \\Delta t$ for $0 \\le n \\le N$.\nThe *Euler–Maruyama approximation* is the sequence $(Y_n)_{0 \\le n \\le N}$ with $Y_0 = x_0$ and\n$$Y_{n+1} = Y_n + a(t_n, Y_n) \\, \\Delta t + b(t_n, Y_n) \\, \\Delta B_n, \\quad \\Delta B_n = B_{t_{n+1}} - B_{t_n}.$$\n\n## Remarks\n\nThe increments $\\Delta B_n$ are independent and [[normal|05AQE0QR0D]] with mean $0$ and variance $\\Delta t$.\nIn a simulation one takes $\\Delta B_n = \\sqrt{\\Delta t} \\, Z_n$ with independent standard normal $Z_n$.\nExample: for [[geometric Brownian motion|D48DR46B97]], $a(t, x) = \\mu x$ and $b(t, x) = \\sigma x$, so $Y_{n+1} = Y_n (1 + \\mu \\Delta t + \\sigma \\Delta B_n)$.\nNon-example: the update $Y_{n+1} = Y_n + a(t_n, Y_n) \\Delta t + b(t_n, Y_n) \\Delta t \\, Z_n$ uses noise of size $\\Delta t$ instead of $\\sqrt{\\Delta t}$, so its noise vanishes in the limit.\nIf $b = 0$, the scheme is the [[Euler method|0JARTXX4XP]] for the ordinary equation $x' = a(t, x)$.\nAssume that $a$ and $b$ are Lipschitz in $x$ uniformly in $t$, grow at most linearly, and are Hölder continuous of exponent $1/2$ in $t$.\nThen $E\\abs{X_T - Y_N} \\le C \\sqrt{\\Delta t}$ for a constant $C$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "22T0NVC56P",
    "kind": "definition",
    "msc": [
      "65C30",
      "60H35",
      "60H10"
    ],
    "name": "Euler–Maruyama method",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Euler%E2%80%93Maruyama_method"
      }
    ],
    "tag": "D0ZXXEYNK8",
    "uses": [
      "22735FGJV6",
      "0JARTXX4XP",
      "05AQE0QR0D",
      "D48DR46B97"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/D0ZXXEYNK8/",
  "links": [
    {
      "field": "defines",
      "target": "22T0NVC56P"
    },
    {
      "field": "uses",
      "target": "22735FGJV6"
    },
    {
      "field": "uses",
      "target": "0JARTXX4XP"
    },
    {
      "field": "uses",
      "target": "05AQE0QR0D"
    },
    {
      "field": "uses",
      "target": "D48DR46B97"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/D0ZXXEYNK8.md",
  "msc": [
    "65C30",
    "60H35",
    "60H10"
  ],
  "name": "Euler–Maruyama method",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/D0Z/D0ZXXEYNK8.md",
  "status": null,
  "tag": "D0ZXXEYNK8",
  "uri": "m2://D0ZXXEYNK8",
  "url": "https://math2.tamnd.com/wiki/euler-maruyama-method-definition/",
  "writing": {
    "tag": "D0ZXXEYNK8",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
