Ornstein–Uhlenbeck process explained

Ornstein–Uhlenbeck process should not be confused with Ornstein–Uhlenbeck operator.

In mathematics, the Ornstein–Uhlenbeck process is a stochastic process with applications in financial mathematics and the physical sciences. Its original application in physics was as a model for the velocity of a massive Brownian particle under the influence of friction. It is named after Leonard Ornstein and George Eugene Uhlenbeck.

The Ornstein–Uhlenbeck process is a stationary Gauss–Markov process, which means that it is a Gaussian process, a Markov process, and is temporally homogeneous. In fact, it is the only nontrivial process that satisfies these three conditions, up to allowing linear transformations of the space and time variables. Over time, the process tends to drift towards its mean function: such a process is called mean-reverting.

The process can be considered to be a modification of the random walk in continuous time, or Wiener process, in which the properties of the process have been changed so that there is a tendency of the walk to move back towards a central location, with a greater attraction when the process is further away from the center. The Ornstein–Uhlenbeck process can also be considered as the continuous-time analogue of the discrete-time AR(1) process.

Definition

The Ornstein–Uhlenbeck process

xt

is defined by the following stochastic differential equation:

dxt=-\thetaxtdt+\sigmadWt

where

\theta>0

and

\sigma>0

are parameters and

Wt

denotes the Wiener process.

An additional drift term is sometimes added:

dxt=\theta(\mu-xt)dt+\sigmadWt

where

\mu

is a constant.The Ornstein–Uhlenbeck process is sometimes also written as a Langevin equation of the form
dxt
dt

=-\thetaxt+\sigmaη(t)

where

η(t)

, also known as white noise, stands in for the supposed derivative

dWt/dt

of the Wiener process. However,

dWt/dt

does not exist because the Wiener process is nowhere differentiable, and so the Langevin equation only makes sense if interpreted in distributional sense. In physics and engineering disciplines, it is a common representation for the Ornstein–Uhlenbeck process and similar stochastic differential equations by tacitly assuming that the noise term is a derivative of a differentiable (e.g. Fourier) interpolation of the Wiener process.

Fokker–Planck equation representation

The Ornstein–Uhlenbeck process can also be described in terms of a probability density function,

P(x,t)

, which specifies the probability of finding the process in the state

x

at time

t

. This function satisfies the Fokker–Planck equation
\partialP
\partialt

=\theta

\partial
\partialx

(xP)+D

\partial2P
\partialx2

where

D=\sigma2/2

. This is a linear parabolic partial differential equation which can be solved by a variety of techniques. The transition probability, also known as the Green's function,

P(x,t\midx',t')

is a Gaussian with mean

x'e-\theta

and variance
D
\theta

\left(1-e-2\theta\right)

:

P(x,t\midx',t')=\sqrt{

\theta
2\piD(1-e-2\theta)
} \exp \left[-\frac{\theta}{2D} \frac{(x - x' e^{-\theta (t-t')})^2}{1 - e^{-2\theta (t-t')}}\right]

This gives the probability of the state

x

occurring at time

t

given initial state

x'

at time

t'<t

. Equivalently,

P(x,t\midx',t')

is the solution of the Fokker–Planck equation with initial condition

P(x,t')=\delta(x-x')

.

Mathematical properties

Conditioned on a particular value of

x0

, the mean is

\operatornameE(xt\midx0)=x0e-\theta+\mu(1-e-\theta)

and the covariance is

\operatorname{cov}(xs,xt)=

\sigma2
2\theta

\left(e-\theta|t-s|-e-\theta(t+s)\right).

For the stationary (unconditioned) process, the mean of

xt

is

\mu

, and the covariance of

xs

and

xt

is
\sigma2
2\theta

e-\theta|t-s|

.

The Ornstein–Uhlenbeck process is an example of a Gaussian process that has a bounded variance and admits a stationary probability distribution, in contrast to the Wiener process; the difference between the two is in their "drift" term. For the Wiener process the drift term is constant, whereas for the Ornstein–Uhlenbeck process it is dependent on the current value of the process: if the current value of the process is less than the (long-term) mean, the drift will be positive; if the current value of the process is greater than the (long-term) mean, the drift will be negative. In other words, the mean acts as an equilibrium level for the process. This gives the process its informative name, "mean-reverting."

Properties of sample paths

A temporally homogeneous Ornstein–Uhlenbeck process can be represented as a scaled, time-transformed Wiener process:

xt=

\sigma
\sqrt{2\theta
} e^ W_where

Wt

is the standard Wiener process. This is roughly Theorem 1.2 in . Equivalently, with the change of variable

s=e2

this becomes

Ws=

\sqrt{2\theta
} s^ x_, \qquad s > 0

Using this mapping, one can translate known properties of

Wt

into corresponding statements for

xt

. For instance, the law of the iterated logarithm for

Wt

becomes

\limsupt

xt
\sqrt{(\sigma2/\theta)lnt
} = 1, \quad \text

Formal solution

The stochastic differential equation for

xt

can be formally solved by variation of parameters. Writing

f(xt,t)=xte\theta

we get

\begin{align} df(xt,t)&=

\thetat
\thetax
te

dt+e\thetadxt\\[6pt] &=e\theta\theta\mudt+\sigmae\thetadWt. \end{align}

Integrating from

0

to

t

we get

xte\theta=x0+

t
\int
0

e\theta\theta\muds+

t
\int
0

\sigmae\thetadWs

whereupon we see

xt=

-\thetat
x
0e

+\mu(1-e-\theta)+\sigma

t
\int
0

e-\thetadWs.

From this representation, the first moment (i.e. the mean) is shown to be

\operatornameE(xt)=x0e-\theta+\mu(1-e-\theta)

assuming

x0

is constant. Moreover, the Itō isometry can be used to calculate the covariance function by

\begin{align} \operatorname{cov}(xs,xt)&=\operatornameE[(xs-\operatornameE[xs])(xt-\operatornameE[xt])]\\[5pt] &=\operatornameE\left[

s
\int
0

\sigmae\thetadWu

t
\int
0

\sigmae\thetadWv\right]\\[5pt] &=\sigma2e-\theta\operatornameE\left[

s
\int
0

e\thetadWu

t
\int
0

e\thetadWv\right]\\[5pt] &=

\sigma2
2\theta

e-\theta(e2\theta-1)\\[5pt] &=

\sigma2
2\theta

\left(e-\theta|t-s|-e-\theta(t+s)\right). \end{align}

Since the Itô integral of deterministic integrand is normally distributed, it follows that

xt=x0e-\theta+\mu(1-e-\theta)+\tfrac{\sigma}{\sqrt{2\theta}}

W
1-e-2

Kolmogorov equations

The infinitesimal generator of the process is[1] Lf = -\theta (x-\mu) f' + \frac 12 \sigma^2 fIf we let

y=x\sqrt{

2\mu
\sigma2
}, then the eigenvalue equation simplifies to:\frac\phi - y\frac\phi + \frac \phi = 0which is the defining equation for Hermite polynomials. Its solutions are

\phi(y)=Hen(y)

, with

λ=n\mu

, which implies that the mean first passage time for a particle to hit a point on the boundary is on the order of

\mu-1

.

Numerical simulation

By using discretely sampled data at time intervals of width

t

, the maximum likelihood estimators for the parameters of the Ornstein–Uhlenbeck process are asymptotically normal to their true values. More precisely,\sqrt \left(\begin \widehat\theta_n \\ \widehat\mu_n \\ \widehat\sigma_n^2 \end - \begin \theta \\ \mu \\ \sigma^2 \end\right) \xrightarrow \ \mathcal \left(\begin 0 \\ 0 \\ 0 \end,\begin \frac & 0 & \frac \\ 0 & \frac & 0 \\ \frac & 0 & \frac \end\right)

To simulate an OU process numerically with standard deviation

\Sigma

and correlation time

\tau=1/\Theta

, one method is to apply the finite-difference formulax(t+dt) = x(t) - \Theta \, dt \, x(t) + \Sigma \sqrt \nu_iwhere

\nui

is a normally distributed random number with zero mean and unit variance, sampled independently at every time-step

dt

.

Scaling limit interpretation

The Ornstein–Uhlenbeck process can be interpreted as a scaling limit of a discrete process, in the same way that Brownian motion is a scaling limit of random walks. Consider an urn containing

n

blue and yellow balls. At each step a ball is chosen at random and replaced by a ball of the opposite colour. Let

Xk

be the number of blue balls in the urn after

k

steps. Then
X[nt]-n/2
\sqrt{n
} converges in law to an Ornstein–Uhlenbeck process as

n

tends to infinity. This was obtained by Mark Kac.

Heuristically one may obtain this as follows.

Let

(n)
X
t:=
X[nt]-n/2
\sqrt{n
}, and we will obtain the stochastic differential equation at the

n\toinfty

limit. First deduce\Delta t = 1/n,\quad \Delta X^_t = X^_ -X^_t.With this, we can calculate the mean and variance of

\Delta

(n)
X
t
, which turns out to be

-2

(n)
X
t

\Deltat

and

\Deltat

. Thus at the

n\toinfty

limit, we have

dXt=-2Xtdt+dWt

, with solution (assuming

X0

distribution is standard normal)

Xt=e-2t

W
e4t
.

Applications

In physics: noisy relaxation

The Ornstein–Uhlenbeck process is a prototype of a noisy relaxation process. A canonical example is a Hookean spring (harmonic oscillator) with spring constant

k

whose dynamics is overdampedwith friction coefficient

\gamma

. In the presence of thermal fluctuations with temperature

T

, the length

x(t)

of the spring fluctuates around the spring rest length

x0

; its stochastic dynamics is described by an Ornstein–Uhlenbeck process with

\begin{align} \theta&=k/\gamma,\\ \mu&=x0,\\ \sigma&=\sqrt{2kBT/\gamma}, \end{align}

where

\sigma

is derived from the Stokes–Einstein equation
2/2=k
D=\sigma
B

T/\gamma

for the effective diffusion constant. This model has been used to characterize the motion of a Brownian particle in an optical trap.

At equilibrium, the spring stores an average energy

\langleE\rangle=k\langle

2
(x-x
0)

\rangle/2=kBT/2

in accordance with the equipartition theorem.

In financial mathematics

The Ornstein–Uhlenbeck process is used in the Vasicek model of the interest rate. The Ornstein–Uhlenbeck process is one of several approaches used to model (with modifications) interest rates, currency exchange rates, and commodity prices stochastically. The parameter

\mu

represents the equilibrium or mean value supported by fundamentals;

\sigma

the degree of volatility around it caused by shocks, and

\theta

the rate by which these shocks dissipate and the variable reverts towards the mean. One application of the process is a trading strategy known as pairs trade.[2] [3]

A further implementation of the Ornstein–Uhlenbeck process is derived by Marcello Minenna in order to model the stock return under a lognormal distribution dynamics. This modeling aims at the determination of confidence interval to predict market abuse phenomena.[4] [5]

In evolutionary biology

The Ornstein–Uhlenbeck process has been proposed as an improvement over a Brownian motion model for modeling the change in organismal phenotypes over time. A Brownian motion model implies that the phenotype can move without limit, whereas for most phenotypes natural selection imposes a cost for moving too far in either direction. A meta-analysis of 250 fossil phenotype time-series showed that an Ornstein–Uhlenbeck model was the best fit for 115 (46%) of the examined time series, supporting stasis as a common evolutionary pattern. This said, there are certain challenges to its use: model selection mechanisms are often biased towards preferring an OU process without sufficient support, and misinterpretation is easy to the unsuspecting data scientist.

Generalizations

It is possible to define a Lévy-driven Ornstein–Uhlenbeck process, in which the background driving process is a Lévy process instead of a Wiener process:

dxt=-\thetaxtdt+\sigmadLt

Here, the differential of the Wiener process

Wt

has been replaced with the differential of a Lévy process

Lt

.

In addition, in finance, stochastic processes are used where the volatility increases for larger values of

X

. In particular, the CKLS process (Chan–Karolyi–Longstaff–Sanders) with the volatility term replaced by

\sigmax\gammadWt

can be solved in closed form for

\gamma=1

, as well as for

\gamma=0

, which corresponds to the conventional OU process. Another special case is

\gamma=1/2

, which corresponds to the Cox–Ingersoll–Ross model (CIR-model).

Higher dimensions

A multi-dimensional version of the Ornstein–Uhlenbeck process, denoted by the N-dimensional vector

xt

, can be defined from

dxt=-\boldsymbol{\beta}xtdt+\boldsymbol{\sigma}dWt.

where

Wt

is an N-dimensional Wiener process, and

\boldsymbol{\beta}

and

\boldsymbol{\sigma}

are constant N×N matrices. The solution is

xt=e-\boldsymbol{\betat}x0+

t
\int
0

e-\boldsymbol{\beta(t-t')}\boldsymbol{\sigma}dWt'

and the mean is

\operatornameE(xt)=e-\boldsymbol{\betat}\operatornameE(x0).

These expressions make use of the matrix exponential.

The process can also be described in terms of the probability density function

P(x,t)

, which satisfies the Fokker–Planck equation
\partialP
\partialt

=\sumi,j\betaij

\partial
\partialxi

(xjP)+\sumi,jDij

\partial2P
\partialxi\partialxj

.

where the matrix

\boldsymbol{D}

with components

Dij

is defined by

\boldsymbol{D}=\boldsymbol{\sigma}\boldsymbol{\sigma}T/2

. As for the 1d case, the process is a linear transformation of Gaussian random variables, and therefore itself must be Gaussian. Because of this, the transition probability

P(x,t\midx',t')

is a Gaussian which can be written down explicitly. If the real parts of the eigenvalues of

\boldsymbol{\beta}

are larger than zero, a stationary solution

Pst(x)

moreover exists, given by

Pst(x)=(2\pi)-N/2(\det\boldsymbol{\omega})-1/2\exp\left(-

1
2

xT\boldsymbol{\omega}-1x\right)

where the matrix

\boldsymbol{\omega}

is determined from the Lyapunov equation

\boldsymbol{\beta}\boldsymbol{\omega}+\boldsymbol{\omega}\boldsymbol{\beta}T=2\boldsymbol{D}

.

See also

References

External links

Notes and References

  1. Web site: Holmes-Cerfon . Miranda . 2022 . Lecture 12: Detailed balance and Eigenfunction methods .
  2. http://www.cs.sunysb.edu/~skiena/691/lectures/lecture23.pdf Advantages of Pair Trading: Market Neutrality
  3. http://www.ms.unimelb.edu.au/publications/RampertshammerStefan.pdf An Ornstein–Uhlenbeck Framework for Pairs Trading
  4. Web site: Detecting Market Abuse . 2 November 2004 . Risk Magazine.
  5. Web site: The detection of Market Abuse on financial markets: a quantitative approach . Consob – The Italian Securities and Exchange Commission.