Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations...

19
Stochastic Differential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to Stochastic Differential Equations Presented by: Cody Griffith Metropolitan State University of Denver May 4, 2015 Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Transcript of Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations...

Page 1: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Numerical Solutions toStochastic Differential Equations

Presented by:Cody Griffith

Metropolitan State Universityof Denver

May 4, 2015

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 2: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Outline

Stochastic Differential Equations

Methods of Solution

Example

Orders of Approximation

Future Work

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 3: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Stochastic Process

What is it?

Coming from Probability Theory, a stochastic process is acollection of random variables that represent the evolution of asystem over time.

You may of heard of:

Markov Chains

Queueing Theory

Renewal Theory

Brownian Motion

These are all stochastic processes!

Andrey Markov

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 4: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Stochastic Process

What is it?

Coming from Probability Theory, a stochastic process is acollection of random variables that represent the evolution of asystem over time.

You may of heard of:

Markov Chains

Queueing Theory

Renewal Theory

Brownian Motion

These are all stochastic processes!

Andrey Markov

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 5: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Stochastic Differential Equations

As we know, differential equations are useful tools in modeling realworld behaviors like:

An oscillating springthe trajectory of a object

Incorporate this idea with the random aspect of stochastic process,and we get a real world behavior that may have too many factorsto predict in a deterministic fashion!

Population growths with disease ornatural disaster mechanicsQueue lengths and expected wait timesGame strategy (Stock market, betting,etc.)

Poisson Icecream Sales

2 4 6 8 10 12 14Time

20

40

60

80

100

120

SalesIcecream Sales With Random Customers

Vanilla Sales

Chocolate Sales

Strawberry Sales

Total Sales

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 6: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Brownian Motion

A brief history,

1827- Initially discovered by a botanist, Robert Brown, whenhe noticed the movement of pollen in water to be very”random” and seemingly unexplainable1905- Albert Einstein published a paper explaining Brown’sobservation with a mathematical model which helped solidifythe theory of atoms and molecules1908- Jean Perrin verified Einstein’s model experimentally

A Brownian Motion is a continuous-time stochastic process whichcan be looked at as the limiting process of a random walk.The derivative of a brownian motion is often referred to as whitenoise, which can be introduced into a ODE to gain insight.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 7: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Brownian Motion

A brief history,

1827- Initially discovered by a botanist, Robert Brown, whenhe noticed the movement of pollen in water to be very”random” and seemingly unexplainable1905- Albert Einstein published a paper explaining Brown’sobservation with a mathematical model which helped solidifythe theory of atoms and molecules1908- Jean Perrin verified Einstein’s model experimentally

A Brownian Motion is a continuous-time stochastic process whichcan be looked at as the limiting process of a random walk.The derivative of a brownian motion is often referred to as whitenoise, which can be introduced into a ODE to gain insight.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 8: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Brownian Motion

A brief history,

1827- Initially discovered by a botanist, Robert Brown, whenhe noticed the movement of pollen in water to be very”random” and seemingly unexplainable1905- Albert Einstein published a paper explaining Brown’sobservation with a mathematical model which helped solidifythe theory of atoms and molecules1908- Jean Perrin verified Einstein’s model experimentally

A Brownian Motion is a continuous-time stochastic process whichcan be looked at as the limiting process of a random walk.The derivative of a brownian motion is often referred to as whitenoise, which can be introduced into a ODE to gain insight.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 9: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Brownian Motion

A brief history,

1827- Initially discovered by a botanist, Robert Brown, whenhe noticed the movement of pollen in water to be very”random” and seemingly unexplainable1905- Albert Einstein published a paper explaining Brown’sobservation with a mathematical model which helped solidifythe theory of atoms and molecules1908- Jean Perrin verified Einstein’s model experimentally

A Brownian Motion is a continuous-time stochastic process whichcan be looked at as the limiting process of a random walk.The derivative of a brownian motion is often referred to as whitenoise, which can be introduced into a ODE to gain insight.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 10: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Brownian Motion

A brief history,

1827- Initially discovered by a botanist, Robert Brown, whenhe noticed the movement of pollen in water to be very”random” and seemingly unexplainable1905- Albert Einstein published a paper explaining Brown’sobservation with a mathematical model which helped solidifythe theory of atoms and molecules1908- Jean Perrin verified Einstein’s model experimentally

A Brownian Motion is a continuous-time stochastic process whichcan be looked at as the limiting process of a random walk.The derivative of a brownian motion is often referred to as whitenoise, which can be introduced into a ODE to gain insight.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 11: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Brownian Motion

A Brownian Motion, Bt , can be approximated with a normaldistribution if the time intervals are small enough.

Identity

∆Bi ≈ zi√

∆ti

0.5 1.0 1.5 2.0

10

15

20

25

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 12: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

The Euler-Maruyama Method

For first order Stochastic differential equations (SDEs), we canalways reduce down to the form∗:

dy = f (t, y)dt + g(t, y)dBt

The Euler-Maruyama Method (Order 12 ):

Denote fi = f (ti ,wi ) and gi = g(ti ,wi ),

w0 = y0

wi+1 = wi + fi∆ti + gi∆Bi

(Recall ∆Bi ≈ zi√

∆ti , this is where our order of 12 comes from)

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 13: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Other Methods

The Milstein Method (Order 1):

By taking Euler’s out another term in the Taylor expansion,

w0 = y0

wi+1 = wi + fi∆ti + gi∆Bi +1

2gi ·

∂gi∂y

((∆Bi )2 −∆ti )

First Order Runge-Kutta (Order 1):

Using a forward difference approximation on Milstein’s,

w0 = y0

wi+1 = wi + fi∆ti + gi∆Bi

+ 12√

∆ti[g(ti ,wi + gi

√∆ti )− gi ]((∆Bi )

2 −∆ti )

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 14: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Example

A Geometric Brownian Motion

Consider dy = µydt + σydBt

Solution: y = y0e(µ− 1

2σ2)t+σBt

Choosing µ = .1, σ = .1 and y0 = 1, and using Euler’s,

100 realizations of true solution. Approximations with step size .05.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 15: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Orders of Approximation

These standard methods of approximating SDEs have relatively loworders of approximation compared to ODEs. For example Eulersmethod is order 1 for ODEs but 1

2 for SDEs.A few reasons:

No predictable patterns in Stochastic Process

The error is a random variable

Each realization will be different

An order of 12 for a SDE approximation behaves quite well.

Higher orders are possible at the cost of intense calculations.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 16: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Orders of Approximation

These standard methods of approximating SDEs have relatively loworders of approximation compared to ODEs. For example Eulersmethod is order 1 for ODEs but 1

2 for SDEs.A few reasons:

No predictable patterns in Stochastic Process

The error is a random variable

Each realization will be different

An order of 12 for a SDE approximation behaves quite well.

Higher orders are possible at the cost of intense calculations.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 17: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Notes

Ito’s Lemma

If y = f (t, x), then

dy =∂f

∂t(t, x) dt +

∂f

∂x(t, x) dx +

1

2

∂2f

∂t2(t, x) dx dx

Where dt dt = 0, dt dBt = dBt dt = 0, and dBt dBt = dt

*-Using this lemma from Ito Calculus, we can reduce a SDE to

dy = f (t, y)dt + g(t, y)dBt

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 18: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Future Work

Re-write the Mathematica program!!!!

Further research into probability measures and stochasticcalculus

Perhaps more work in relating numerical and stochasticprocess through the use of functional spaces.

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations

Page 19: Numerical Solutions to Stochastic Differential Equations · Stochastic Di erential Equations Methods of Solution Example Orders of Approximation Future Work Numerical Solutions to

Stochastic Differential EquationsMethods of Solution

ExampleOrders of Approximation

Future Work

Thank you!

Questions?

Presented by:Cody Griffith Numerical Solutions to Stochastic Differential Equations