Stochastic ODEs

Introduction

See my video.
See Itô integral#Next step SDEs.


2. Stochastic Differential Equations (SDEs)

dx(t)=F(x(t),t)dt+G(x(t),t)dW(t)

Think of dWdt as if it were a random number from a normal N(0,) distribution. Then,

dW(t)=dWdtdt

is a random number from a N(0,dt) distribution.

Related: Itô integral.

3. Real Example: Stock Prices

dS(t)=μS(t)dt+σS(t)dW(t) S(t)=S0exp((μσ22)t+σW(t))

This is a random curve over time — each realization gives one possible stock price trajectory.

S(t)=S0exp((μσ22)t+σW(t)),

you might expect the chain rule to apply like in standard calculus, and wonder why this form solves the SDE:

dS(t)=μS(t)dt+σS(t)dW(t).

But you're forgetting that Itô lemma (the stochastic analog of the chain rule) introduces extra terms due to the randomness of W(t).

Let:

f(t,W(t))=exp(At+σW(t)),where A=μσ22.

Then:

Now plug into Ito’s formula:

dS=(Af+12σ2f)dt+σfdW=f((A+12σ2)dt+σdW)

Recall A=μσ22, so:

A+12σ2=μ

Therefore:

dS=f(μdt+σdW)=S(t)(μdt+σdW)

Stratonovich form

From Stratonovich integral#Conversion rule we can show the following. Suppose you have an Itô SDE

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

with XtR, Wt one-dimensional Brownian motion.
The Stratonovich version is

dXt=(a(t,Xt)12b(t,Xt)xb(t,Xt))dt+b(t,Xt)dWt.

That is:

0tb(s,Xs)dWs=0tb(s,Xs)dWs+120txb(s,Xs)b(s,Xs)ds.

Another example: bottle cap race

See bottle cap race SDE.

Another example: growth of a tree

See growth of a tree SDE.

Exercises

See [[SDEs exercises.pdf]] for the solutions

Block 1 — Basic manipulations with Itô’s formula

Goal: Learn to differentiate stochastic processes correctly.

  1. Let Xt=Wt2. Compute dXt using Itô’s formula.
  2. Let Xt=eWt. Compute dXt.
  3. Let Xt=Wt33tWt. Show that Xt is a martingale.
  4. Let Xt=sin(Wt). Compute dXt and find E[sin(Wt)].
  5. For a constant aR, let Xt=eaWt12a2t. Prove that Xt is a martingale. (Hint: apply Itô’s formula.)

Block 2 — Solving linear SDEs

  1. Solve dXt=aXtdt+bXtdWt,X0=x0.

  2. Solve dXt=adt+bdWt,X0=0.

  3. Show that the solution in (6) satisfies

    Xt=x0exp((a12b2)t+bWt)
  4. Compute E[Xt] and Var(Xt) for (6).

  5. Compute E[Xt] and E[Xt2] for (7).


Block 3 — Ornstein–Uhlenbeck and mean reversion

Goal: Learn integration factor method.

  1. Solve dXt=θXtdt+σdWt,X0=x0.

  2. Compute E[Xt] and Var(Xt).

  3. Show that Xt has a stationary Gaussian distribution as t, and find its mean and variance.

  4. Compute the covariance E[XtXs] for s<t.


Block 4 — Itô vs Stratonovich

Goal: Be comfortable switching between the two forms.

  1. Convert the Itô SDE

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

    into the Stratonovich form.

  2. Apply your formula to dXt=XtdWt and write both Itô and Stratonovich versions explicitly.

  3. For the Stratonovich SDE

    dXt=XtdWt

    compute d(Xt2) using ordinary calculus and check that it matches the Itô version.

  4. Check that Stratonovich calculus satisfies the usual chain rule for f(Xt).


Block 5 — Multidimensional SDEs

Goal: Manipulate SDEs with several Brownian components.

Let Wt=(Wt1,Wt2) be a 2D Brownian motion.

  1. Compute d(Wt1Wt2).

  2. Given dXt=Wt1dWt2, compute d(Xt2).

  3. Solve the linear vector SDE

    dXt=AXtdt+BXtdWt

    for constant 2×2 matrices A,B that commute.

  4. Compute d|Wt|2 for WtRn.

  5. Show that Rt=|Wt| satisfies

    dRt=n12Rtdt+dβt

    where βt is a 1D Brownian motion.


Block 6 — Long-term behaviour and generators

Goal: Connect SDEs to their infinitesimal generators.

  1. For dXt=a(Xt)dt+b(Xt)dWt, write the generator L acting on smooth f:

    Lf=af+12b2f
  2. Compute L for the Ornstein–Uhlenbeck process and find the invariant measure by solving Lp=0.

  3. For the geometric Brownian motion dXt=aXtdt+bXtdWt, compute L and verify that E[Xt]=eatX0.

  4. Check the martingale property: find a function f such that f(Xt) is a martingale for the OU process.

  5. (Optional) Verify that for any smooth f,

    Mt=f(Xt)f(X0)0tLf(Xs)ds

    is a martingale.