Ornstein–Uhlenbeck process

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Distinguish

Five simulations with θ = 1, σ = 1 and μ = 0.
A 3D simulation with θ = 1, σ = 3, μ = (0, 0, 0) and the initial position (10, 10, 10).

In mathematics, the Ornstein–Uhlenbeck process is a stochastic process with applications in financial mathematics, the physical sciences, and evolutionary biology. 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 Gaussian, time-homogeneous Markov process. For θ>0, it admits the invariant Gaussian distribution

X∼𝒩(μ,σ22θ).

The process is stationary when its initial value is distributed according to this invariant distribution. If instead it begins from a fixed value or another nonstationary initial distribution, the process is generally not stationary; its distribution approaches the invariant Gaussian distribution as time increases.[1][2] Its restoring drift toward μ gives the process its characteristic mean-reverting behavior.

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

Simplified formula for the Ornstein–Uhlenbeck process from the mural shown below.
Dutch artist collective De Strakke Hand: Leonard Ornstein mural, showing Ornstein as a cofounder of the Dutch Physical Society (Netherlands Physical Society) at his desk in 1921, and illustrating twice the random walk of a drunkard with a simplified formula for the Ornstein–Uhlenbeck process. Oosterkade, Utrecht, The Netherlands, not far from Ornstein's laboratory. Translated text: Prof. Ornstein researches random motion 1930.

The Ornstein–Uhlenbeck process xt is defined by the following stochastic differential equation:

dxt=−θxtdt+σdWt

where θ>0 and σ>0 are parameters and Wt denotes the Wiener process.Template:SfnTemplate:SfnTemplate:Sfn

An additional term is sometimes added:

dxt=−θ(xt−μ)dt+σdWt

where μ is a constant called the (long-term) mean. The Ornstein–Uhlenbeck process is sometimes also written as a Langevin equation of the form

dxtdt=−θxt+ση(t)

where η(t), also known as white noise, stands in for the supposed derivative dWt/dt of the Wiener process.Template:Sfn However, dWt/dt does not exist because the Wiener process is nowhere differentiable,Template:Sfn 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.Template:Sfn This function satisfies the Fokker–Planck equation

∂P∂t=θ∂∂x((x−μ)P)+D∂2P∂x2

where D=σ2/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∣x0,t0) is a Gaussian with mean x0e−θ(t−t0)+μ(1−e−θ(t−t0)) and variance Dθ(1−e−2θ(t−t0)):

P(x,t∣x0,t0)=θ2πD(1−e−2θ(t−t0))exp⁡[−θ2D(x−x0e−θ(t−t0)−μ(1−e−θ(t−t0)))21−e−2θ(t−t0)]

This gives the probability of the state x occurring at time t given initial state x0 at time t0<t. Equivalently, P(x,t∣x0,t0) is the solution of the Fokker–Planck equation with initial condition P(x,t0)=δ(x−x0).

Mathematical properties

Conditioned on a particular value of x0, the mean is

𝔼⁡(xt∣x0)=x0e−θt+μ(1−e−θt)

and the covariance is

cov⁡(xs,xt)=σ22θ(e−θ|t−s|−e−θ(t+s)).

For the stationary (unconditioned) process, the mean of xt is μ, and the covariance of xs and xt is σ22θe−θ|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 starting at x0=0 can be represented as a scaled, time-transformed Wiener process:

xt=σ2θe−θtWe2θt−1

where Wt is the standard Wiener process. This is roughly Theorem 1.2 in Template:Harvnb. Equivalently, with the change of variable s=e2θt this becomes

Ws=2θσs1/2x(ln⁡s)/(2θ),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 becomesTemplate:Sfn

lim supt→∞xt(σ2/θ)ln⁡t=1,with probability 1.

Formal solution

The stochastic differential equation for xt can be formally solved by variation of parameters.Template:Sfn Writing

f(xt,t)=xteθt

we get

df(xt,t)=θxteθtdt+eθtdxt=eθtθμdt+σeθtdWt.

Integrating from 0 to t we get

xteθt=x0+∫0teθsθμds+∫0tσeθsdWs

whereupon we see

xt=x0e−θt+μ(1−e−θt)+σ∫0te−θ(t−s)dWs.

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

E⁡(xt)=x0e−θt+μ(1−e−θt) 

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

cov⁡(xs,xt)=E⁡[(xs−E⁡[xs])(xt−E⁡[xt])]=E⁡[∫0sσeθ(u−s)dWu∫0tσeθ(v−t)dWv]=σ2e−θ(s+t)E⁡[∫0seθudWu∫0teθvdWv]=σ22θe−θ(s+t)(e2θmin⁡(s,t)−1)=σ22θ(e−θ|t−s|−e−θ(t+s)).

Kolmogorov equations

The infinitesimal generator of the process is[3]Lf=−θ(x−μ)f′+12σ2f″If we let y=(x−μ)2θσ2, then the eigenvalue equation simplifies to: d2dy2ϕ−yddyϕ−λθϕ=0which is the defining equation for Hermite polynomials. Its solutions are ϕ(y)=Hen(y), with λ=−nθ, which implies that the mean first passage time for a particle to hit a point on the boundary is on the order of θ−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.Template:Sfn More precisely,Template:Failed verificationn((θ^nμ^nσ^n2)−(θμσ2))→d 𝒩((000),(e2tθ−1t20σ2(e2tθ−1−2tθ)t2θ0σ2(etθ+1)2(etθ−1)θ0σ2(e2tθ−1−2tθ)t2θ0σ4[(e2tθ−1)2+2t2θ2(e2tθ+1)+4tθ(e2tθ−1)]t2(e2tθ−1)θ2))

Four sample paths of different OU-processes with θ = 1, σ = 2:
blue: initial value a = 10, μ = 0
orange: initial value a = 0, μ = 0
green: initial value a = −10, μ = 0
red: initial value a = 0, μ = −10

To simulate an OU process numerically with standard deviation Σ and correlation time τ=1/Θ, one method is to apply the finite-difference formula

x(t+dt)=x(t)−Θdtx(t)+Σ2dtΘνi where νi is a normally distributed random number with zero mean and unit variance, sampled independently at every time-step dt.Template:Sfn

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 black and white 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 black balls in the urn after k steps. Then X[nt]−n/2n converges in law to an Ornstein–Uhlenbeck process as n tends to infinity. This was obtained by Mark Kac.Template:Sfn

Heuristically one may obtain this as follows.

Let Xt(n):=X[nt]−n/2n, and we will obtain the stochastic differential equation at the n→∞ limit. First deduce Δt=1/n,ΔXt(n)=Xt+Δt(n)−Xt(n). With this, we can calculate the mean and variance of ΔXt(n), which turns out to be −2Xt(n)Δt and Δt. Thus at the n→∞ limit, we have dXt=−2Xtdt+dWt, with solution (assuming X0 distribution is standard normal) Xt=e−2tWe4t.

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 overdamped with friction coefficient γ. 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

θ=k/γ,μ=x0,σ=2D=2kBT/γ,

where σ2 is derived from the Stokes–Einstein equation D=kBT/γ for the effective diffusion constant.Template:SfnTemplate:Sfn Rewritten as Langevin equation as common in physics, γx˙=−k(x−x0)+ξ(t), where ξ(t) denotes Gaussian white noise with ⟨ξ(t)ξ(t′)⟩=2Dδ(t−t′); hence, we have for the auto-correlation function (same as above in mathematics notation) ⟨[x(t)−x0][x(t′)−x0]⟩=(kBT/k)exp⁡[−(k/γ)|t−t′|] with variance kBT/k independent from γ and relaxation time-scale γ/k as expected from dimensional analysis.

This model has been used to characterize the motion of a Brownian particle in an optical trap.Template:SfnTemplate:Sfn At equilibrium, the spring stores an average energy ⟨E⟩=k⟨(x−x0)2⟩/2=kBT/2 in accordance with the equipartition theorem.Template:Sfn

In financial mathematics

The Ornstein–Uhlenbeck process is used in the Vasicek model of the interest rate.Template:Sfn 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 μ represents the equilibrium or mean value supported by fundamentals; σ the degree of volatility around it caused by shocks, and θ 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.Template:Sfn[4][5]

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.[6][7]

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.Template:Sfn 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.Template:Sfn 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.Template:Sfn

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:Template:SfnTemplate:Sfn

dxt=−θxtdt+σdLt

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)Template:Sfn with the volatility term replaced by σxγdWt can be solved in closed form for γ=1, as well as for γ=0, which corresponds to the conventional OU process. Another special case is γ=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 𝐱t, can be defined from

d𝐱t=−𝜷𝐱tdt+𝝈d𝐖t.

where 𝐖t is an N-dimensional Wiener process, and 𝜷 and 𝝈 are constant N×N matrices.Template:Sfn The solution is

𝐱t=e−𝜷t𝐱0+∫0te−𝜷(t−t′)𝝈d𝐖t′

and the mean is

E⁡(𝐱t)=e−𝜷tE⁡(𝐱0).

These expressions make use of the matrix exponential.

The process can also be described in terms of the probability density function P(𝐱,t), which satisfies the Fokker–Planck equationTemplate:Sfn

∂P∂t=∑i,jβij∂∂xi(xjP)+∑i,jDij∂2P∂xi∂xj,

where the matrix 𝑫 with components Dij is defined by 𝑫=𝝈𝝈T/2. Like for the one-dimensional case, the process is a linear transformation of Gaussian random variables, and therefore itself must be Gaussian. Because of this, the transition probability P(𝐱,t∣𝐱′,t′) is a Gaussian which can be written down explicitly. If the real parts of the eigenvalues of 𝜷 are larger than zero, a stationary solution Pst(𝐱) moreover exists, given by

Pst(𝐱)=(2π)−N/2(det⁡𝝎)−1/2exp⁡(−12𝐱T𝝎−1𝐱),

where the matrix 𝝎 is determined from the Lyapunov equation 𝜷𝝎+𝝎𝜷T=2𝑫.Template:Sfn

See also

Notes

Template:Reflist

References

Template:Refbegin

Template:Refend

Template:Commons category

Template:Stochastic processes