Okishio's theorem

From formulasearchengine
Revision as of 01:12, 5 October 2013 by 120.20.144.101 (talk) (Marxist responses)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In mathematics, the Euler–Maruyama method is a method for the approximate numerical solution of a stochastic differential equation (SDE). It is a simple generalization of the Euler method for ordinary differential equations to stochastic differential equations. It is named after Leonhard Euler and Gisiro Maruyama.

Consider the stochastic differential equation (see Itō calculus)

dXt=a(Xt)dt+b(Xt)dWt,

with initial condition X0 = x0, where Wt stands for 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 Δt>0:
0=τ0<τ1<<τN=T and Δt=T/N;
  • set Y0 = x0;
  • recursively define Yn for 1 ≤ n ≤ N by
Yn+1=Yn+a(Yn)Δt+b(Yn)ΔWn,
where
ΔWn=Wτn+1Wτn.

The random variables ΔWn are independent and identically distributed normal random variables with expected value zero and variance Δt.

Example

The following Python code implements Euler–Maruyama to solve the Ornstein–Uhlenbeck process:

import numpy as np
import matplotlib.pyplot as plt
import math
import random

tBegin=0
tEnd=2
dt=.00001

t = np.arange(tBegin, tEnd, dt)
N = t.size 
IC=0
theta=1
mu=1.2
sigma=0.3

sqrtdt = math.sqrt(dt)
y = np.zeros(N)
y[0] = IC
for i in xrange(1,N):
    y[i] = y[i-1] + dt*(theta*(mu-y[i-1])) + sigma*sqrtdt*random.gauss(0,1)

ax = plt.subplot(111)
ax.plot(t,y)
plt.show()

See also

References

  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534