7. Stochastic Differential Equations Driven by a Wiener Process

Contents

7. Stochastic Differential Equations Driven by a Wiener Process#

We wish to consider a class of stochastic differential equations driven by a Wiener process,

(33)#\[ dx(t) = f\left(x(t),\, t\right) dt + g\left(x(t),\,t\right) dW(t). \]

We shall derive rules for manipulating such equations by regarding (33) as the limit as \(\lambda \to \infty\) of

(34)#\[ dx(t) = f\left(x(t),\, t\right) dt + \frac{1}{\sqrt\lambda}\ g\left(x(t),\, t\right)\ \left(dN_1(t) - dN_2(t)\right), \]

where \(N_1\) and \(N_2\) are two independent Poisson counters with identical rates \(\lambda/2\).

The first rule we seek is the counterpart of rule (20). Where \(\Psi(x)\) is a function of \(x\), \(\Psi(x)\) obeys the differential equation

\[\begin{split} \begin{aligned} d\Psi(x) &= \left\langle \frac{\partial\Psi}{\partial x}\, , \ f\left(x(t),\, t\right)\right\rangle dt + 1/2\, \left\langle \frac{\partial^2\Psi}{\partial x^2}\, g,\, g(x,\, t)\right\rangle dt \\ &+ \left\langle \frac{\partial\Psi}{\partial x}\, ,\ g(x,\, t)\right\rangle dW(t). \end{aligned} \end{split}\]

Note

Throughout this chapter, \(\langle u,\, v\rangle\) denotes the Euclidean inner product of two vectors \(u\) and \(v\) in \(\mathbb{R}^n\),

\[ \langle u,\, v\rangle = u^\top v = \sum_{i=1}^{n} u_i\, v_i . \]

Here \(x\) is a vector-valued state, \(\Psi(x)\) is a scalar-valued function, \(\dfrac{\partial\Psi}{\partial x}\) is its gradient, a column vector with entries \(\partial\Psi/\partial x_i\), and \(\dfrac{\partial^2\Psi}{\partial x^2}\) is its Hessian, the matrix of second partials \(\partial^2\Psi/\partial x_i\,\partial x_j\). With this reading,

  • \(\left\langle \dfrac{\partial\Psi}{\partial x}\, ,\ f\right\rangle = \sum_i \dfrac{\partial\Psi}{\partial x_i}\, f_i\) pairs the gradient with the drift vector \(f\); and

  • \(\left\langle \dfrac{\partial^2\Psi}{\partial x^2}\, g,\ g\right\rangle = g^\top \dfrac{\partial^2\Psi}{\partial x^2}\, g = \sum_{i,\,j} \dfrac{\partial^2\Psi}{\partial x_i\,\partial x_j}\, g_i\, g_j\) is the quadratic form in the diffusion vector \(g\). The Hessian acts on \(g\), and then we take the inner product with \(g\) again.

When \(x\) is scalar, every inner product collapses to ordinary multiplication: \(\langle \Psi', f\rangle = \Psi' f\) and \(\langle \Psi'' g,\, g\rangle = \Psi'' g^2\). The scalar example at the end of this chapter uses that form.

To generate this rule, we use (34) for \(\lambda > 0\) and using rule (20) to obtain

(35)#\[\begin{split}\begin{aligned} d\Psi(x) &= \left\langle \frac{\partial\Psi}{\partial x}\, ,\ f(x,\, t)\right\rangle dt \\ &+ \left[ \Psi\left(x + \frac{1}{\sqrt\lambda}\ g(x,\, t)\right) - \Psi(x) \right] dN_1(t) \\ &+ \left[ \Psi\left(x - \frac{1}{\sqrt\lambda}\ g(x,\, t)\right) - \Psi(x) \right] dN_2(t). \end{aligned}\end{split}\]

Obtain for \(\Psi(x \pm\, \frac{1}{\sqrt\lambda}\ g(x,\, t))\) its Taylor series expansion about \(x\),

\[\begin{split} \begin{aligned} \Psi\left(x \pm \frac{1}{\sqrt\lambda}\ g\left(x,\, t\right)\right) &= \Psi(x) \pm\ \left\langle \frac{\partial\Psi}{\partial x}\, ,\ \frac{1}{\sqrt\lambda}\ g(x,\, t)\right\rangle \\ &+ \frac{1}{2}\ \left(\frac{1}{\sqrt\lambda}\right)^2\ \left\langle \frac{\partial^2\Psi}{\partial x^2}\ g,\ g(x,\, t)\right\rangle + 0\, \left(\frac{1}{\lambda^{3/2}}\right) \end{aligned} \end{split}\]

where \(0\, (\frac{1}{\lambda^{3/2}}) \to 0\) as \(\lambda \to \infty\). Substituting the Taylor expansions in (35), we obtain

(36)#\[\begin{split}\begin{aligned} d\Psi(x) &= \left\langle \frac{\partial\Psi}{\partial x}\, ,\ f(x,\, t)\right\rangle dt + \left\langle \frac{\partial\Psi}{\partial x}\, ,\ g(x,\, t)\right\rangle\ \frac{1}{\sqrt\lambda}\ (dN_1 - dN_2) \\ &+ \frac{1}{2}\ \left\langle \frac{\partial^2\Psi}{\partial x^2}\, g,\, g(x,\, t)\right\rangle\ \frac{1}{\lambda}\ (dN_1 + dN_2) + 0\, \left(\frac{1}{\lambda^{3/2}}\right) \end{aligned}\end{split}\]

Now consider the process \(z(t)\) governed by

\[ dz(t) = \frac{1}{\lambda}\ (dN_1 + dN_2) \]

Applying our rules, we find that

\[ \frac{d}{dt}\ Ez(t) = 1 \]

so that

\[ Ez(t) = t. \]

We also find that

\[ \frac{d}{dt}\ Ez(t)^2 = 2Ez + 1/\lambda, \]

so that as \(\lambda \to \infty\)

\[ \frac{d}{dt}\ Ez(t)^2 = 2Ez(t) = 2t. \]

Therefore

\[ Ez(t)^2 = t^2. \]

It follows that

\[ E\left(z(t) - Ez(t)\right)^2 = 0, \]

which implies that as \(\lambda \to \infty\),

\[ z(t) = t \]

with probability 1.

Thus returning to (36) and taking limits as \(\lambda \to \infty\), we obtain

\[\begin{split} \begin{aligned} d\Psi(x) &= \left\langle \frac{\partial\Psi}{\partial x}\, ,\ f(x,\, t)\right\rangle dt + 1/2\, \left\langle \frac{\partial^2\Psi}{\partial x^2}\, g,\, g(x,\, t)\right\rangle dt \\ &+ \left\langle \frac{\partial\Psi}{\partial x}\, ,\ g(x,\, t)\right\rangle dW(t). \end{aligned} \end{split}\]

This is known as Ito’s rule for the stochastic differential equation

\[ dx = f(x,\, t)dt + g(x,\, t)dW(t). \]

Later chapters use Itô’s rule sparingly. The linear theory of 11. Linear Stochastic Differential Equations and 12. Linear Least Squares Prediction integrates white noise against a deterministic kernel \(p(\tau)\). For such an integrand the second-order term above vanishes, and the Itô integral, the Stratonovich integral, and the ordinary mean square integral coincide. A note in 11. Linear Stochastic Differential Equations records this.

The correction does work in one place, the derivation of the Riccati equation of the Kalman–Bucy filter in 15. State-Space Models, the Kalman Filter, and Spectral Factorization. Applying the rule to the quadratic function \(\Psi(e) = e\,e^\top\) of the estimation error, the second-order term supplies the noise-intensity terms \(BB^\top + KRK^\top\) that the Riccati equation balances against \(\Sigma C^\top R^{-1} C\,\Sigma\). Chapters 5 through 7 otherwise serve to construct the white noise that the linear theory takes as given, from Poisson and Wiener cases by one limiting argument.

Our second rule is

(37)#\[ \frac{d}{dt}\ E\Psi(x) = E\ \left\langle \frac{\partial\Psi}{\partial x}\, ,\ f(x,\, t)\right\rangle + \frac{1}{2}\, E\ \left\langle \frac{\partial^2\Psi}{\partial x^2}\, g,\, g\right\rangle. \]

This rule can be derived by the same limiting process. For \(\lambda > 0\), we have

\[\begin{split} \begin{aligned} d\Psi(x) &= \left\langle \frac{\partial\Psi}{\partial x}\, , \ f(x,\, t)\right\rangle dt + \left( \Psi\Bigl(x + \tfrac{1}{\sqrt\lambda}\ g(x,\, t)\Bigr) - \Psi(x) \right) dN_1 \\ &+ \left(\Psi\Bigl(x - \tfrac{1}{\sqrt\lambda}\ g(x,\, t)\Bigr) - \Psi(x)\right)dN_2 \end{aligned} \end{split}\]

which implies that

\[\begin{split} \begin{aligned} \frac{d}{dt}\ E\Psi(x) &= E\, \left\langle \frac{\partial\Psi}{\partial x}\, ,\ f(x,\, t)\right\rangle + E\, \left[\Psi(x + \frac{1}{\sqrt\lambda}\ g(x,\, t)) \right. \\ &+ \left. \Psi\left( x - \frac{1}{\sqrt\lambda}\ g(x,\, t) \right) - 2\ \Psi(x) \right]\frac{\lambda}{2}, \end{aligned} \end{split}\]

the factor \(\lambda/2\) being the common rate of each of the two counters.

Now take Taylor series expansions of \(\Psi\, (x \pm\, \frac{1}{\sqrt\lambda}\ g(x,\, t))\) about \(x\) to get

\[\begin{split} \begin{aligned} \frac{d}{dt}\ E\Psi(x) &= E\, \left\langle \frac{\partial\Psi}{\partial x}\, ,\ f(x,\, t)\right\rangle + E\, \left\langle \frac{\partial\Psi}{\partial x}\, ,\ \frac{1}{\sqrt\lambda}\ \left(g(x,\, t) - g(x,\, t)\right)\right\rangle \\ &+ E\, \left\langle \frac{\partial^2\Psi}{\partial x^2}\, g,\ g\right\rangle\ \frac{1}{\lambda} \cdot \frac{\lambda}{2} + 0(\lambda^{-1/2}). \end{aligned} \end{split}\]

The first-order terms cancel between the two counters; the two second-order terms are identical, so together they contribute \((1/\lambda)\langle \Psi_{xx} g,\, g\rangle\), which the rate \(\lambda/2\) converts into \(\tfrac12 \langle \Psi_{xx} g,\, g\rangle\).

Taking the limit as \(\lambda \to \infty\) gives the desired result (37).

The next result that we desire is for \(\tau > 0\),

\[ \frac{d}{d\tau}\ Ex(t) x(t + \tau) = Ex\, (t) f\left(x(t+\tau),\ t+\tau\right). \]

To obtain this, we take limits as \(\lambda \to \infty\) in the formula

\[ \frac{d}{d\tau}\ Ex(t) x(t+\tau) = Ex\, (t)f\left(x(t+\tau),\ t+\tau\right) + Ex\, (t)\ \left[\frac{1}{\sqrt\lambda}\ \left( \frac{\lambda}{2}\ - \ \frac{\lambda}{2}\right)\right]. \]

As an example of the use of these formulas, we take the linear stochastic differential equation, the Ornstein–Uhlenbeck process, the simplest member of the constant-coefficient class that 11. Linear Stochastic Differential Equations studies systematically,

\[ dx(t) = -ax(t)dt + bdW(t),\ x(0) = 0,\ a,\ b > 0. \]

Applying our formulas, we find that

\[\begin{split} \begin{aligned} dx(t)^2 &= \left(-2ax(t)^2 + b^2\right) dt + 2bx(t)\, dW(t). \\ \frac{d}{dt}\ Ex(t)^2 &= -2a Ex(t)^2 + b^2 \\ \frac{d}{dt}\ Ex(t) &= -a Ex(t) \\ \frac{d}{d\tau}\ Ex(t) x(t + \tau) &= -aEx(t) x(t + \tau),\ \tau > 0. \end{aligned} \end{split}\]

Exercises#

The linear stochastic differential equation

\[ dx(t) = -a\, x(t)\, dt + b\, dW(t), \qquad a, b > 0, \]

is the Ornstein–Uhlenbeck process. The exercises below simulate it and check the moment formulas just derived. We simulate using the Euler–Maruyama scheme: on a grid of spacing \(dt\),

\[ x_{k+1} = x_k - a\, x_k\, dt + b\,\sqrt{dt}\; \varepsilon_k, \qquad \varepsilon_k \sim \mathcal{N}(0, 1)\ \text{i.i.d.}, \]

which simply discretizes \(dx = -a x\, dt + b\, dW\) with \(dW = \sqrt{dt}\,\varepsilon\).

import numpy as np
import matplotlib.pyplot as plt

def ou_paths(a, b, T, dt, n, rng, x0=0.0):
    """Simulate n Ornstein-Uhlenbeck paths on [0, T] via Euler-Maruyama."""
    steps = int(T / dt)
    X = np.empty((n, steps + 1))
    X[:, 0] = x0
    s = b * np.sqrt(dt)
    for k in range(steps):
        X[:, k + 1] = X[:, k] - a * X[:, k] * dt + s * rng.normal(size=n)
    return X

Exercise 6

Take \(a = 1\), \(b = 0.7\), and start all paths at \(x(0) = 0\).

The text’s equations integrate (with \(x(0)=0\)) to the transient variance

\[ E\,x(t)^2 = \frac{b^2}{2a}\bigl(1 - e^{-2at}\bigr), \]

which approaches the stationary variance \(b^2/(2a)\) as \(t \to \infty\).

(a) Simulate an ensemble of paths and plot a handful of them together with the theoretical \(\pm\) one-standard-deviation band \(\pm\sqrt{E\,x(t)^2}\).

(b) Check that the variance across paths at the final time matches the stationary value \(b^2/(2a)\).

Exercise 7

In the stationary regime the text shows the autocovariance decays exponentially,

\[ R(\tau) = R(0)\, e^{-a|\tau|}. \]

Continuing the simulation from Exercise 6, discard an initial burn-in so the process is (approximately) stationary, then estimate the normalized autocovariance \(R(\tau)/R(0)\) by averaging \(x(t)\,x(t+\tau)\) over both time and paths. Compare it with \(e^{-a\tau}\).