Skip to content
All library documents

Ornstein–Uhlenbeck Processes with Periodic Time-Varying Drift

Article Quant Q&A · Author: ght

Summary

The document extends the Ornstein–Uhlenbeck process by allowing its mean-reversion level to vary over time. Applying an integrating factor gives a closed-form stochastic solution: the initial value decays exponentially, the drift function contributes through an exponentially weighted integral, and the noise remains an integrated Brownian term. Taking expectations removes the noise and yields a first-order linear ordinary differential equation for the mean.

For periodic drift, the mean does not generally converge to one constant; instead it approaches a periodic steady pattern. The accepted response derives the limiting expected value at each period boundary using a weighted integral over one period. The result depends on the decay rate and the shape and period of the drift. The initial condition affects the transient but not the long-run periodic behavior. These expressions assume a well-behaved deterministic drift and the standard SDE setup; the text does not discuss estimation from data or applications to a particular trading strategy.

Key ideas

  • An integrating factor gives a closed-form solution for an OU process with deterministic time-varying drift.
  • The expected value solves a linear ODE and is an exponentially weighted history of the drift.
  • With periodic drift, the long-run mean generally follows a periodic pattern rather than settling at one constant.
  • The initial value affects the transient response but fades from the long-run periodic behavior.
  • The limiting mean at period boundaries depends on a weighted integral of drift over one cycle.

Tags

Full text
# Ornstein–Uhlenbeck process with time-varying drift


# Ornstein–Uhlenbeck process with time-varying drift












The Ornstein-Uhlenbeck process is defined as the stochastic process that solves the following stochastic differential equation (SDE)

$${\rm d} x_t = \theta (\mu-x_t)\,{\rm d}t + \sigma\, {\rm d}W_t$$

where $\theta > 0$, $\mu$ and $\sigma>0$ are parameters and $W_t$ is Brownian motion. The solution to this equation is well-known. In particular, it is known that

$$ {\Bbb E} \left(x_t\right) = x_0 e^{-\theta t} + \mu \left(1-e^{-\theta t}\right) $$

and

$$\operatorname{cov}(x_s,x_t) = \frac{\sigma^2}{2\theta}\left( e^{-\theta(t-s)} - e^{-\theta(t+s)} \right).$$

It can be easily seen that

$$\lim\limits_{t\to+\infty} {\Bbb E} (x_t) = \mu, \qquad \lim\limits_{t\to+\infty} \operatorname{Var}(x_t) = \frac{\sigma^2}{2\theta}$$

Assume that $f(t)$ is a well-behaved function. What is known about the following process?

$${\rm d} x_t = \theta (f(t)-x_t)\,{\rm d}t + \sigma\, {\rm d} W_t$$

Is there a closed-form expression for $x_t$ as in the constant case? In particular, assume that $f(t)$ is periodic with certain period $\tau$. What is the limit of ${\Bbb E}(x_t)$?

## Answer by Ulysses (score 6, accepted)

https://quant.stackexchange.com/a/18323

You can just take expectations on both sides of your SDE/corresponding integral equation and obtain an ODE on the expectation function $m_t = \Bbb E[x_t]$: $$ \dot m = \theta(f - m) $$ which you can easily solve using ansatz $m_t = c_t \mathrm e^{-\theta t}$ which brings you to $$ m_t = x_0\mathrm e^{-\theta t} + \theta\cdot\int_0^tf(s)\mathrm e^{\theta(s-t)}\mathrm ds $$ so for $x_0 = 0$ you get a truncated version of convolution $m = f*\exp$.

Now, assume for simplicity that $x_0 = 0$, that would not matter for the asymptotic analysis of periodic $f$ anyways. Let's $p>0$ be the period of $f$, then for any integer $n$ we have $$ \begin{align} m(np) &= \theta\mathrm e^{-\theta np}\cdot \sum_{k=0}^{n-1}\int\limits_{kp}^{(k+1)p}f(s)\mathrm e^{\theta s}\mathrm ds = \theta \mathrm e^{-\theta np}\cdot \sum_{k=0}^{n-1}F\mathrm e^{\theta kp} \\ &= \theta F\cdot\frac{1 - \mathrm e^{-\theta np}}{\mathrm e^{\theta p} - 1} \to \frac{\theta F}{\mathrm e^{\theta p} - 1} \end{align} $$ where $$ F = \int_0^pf(s)\mathrm e^{\theta s}\mathrm ds. $$ Notice that if $f \equiv \mu$ then we need to take a limit at $p\to 0$ in ratio, so we get $\mathrm e^{\theta p} -1\sim \theta p$ and $F \sim \mu p$ so that ratio is $\mu$, which confirms the case of constant $f$.

## Answer by Gordon (score 4)

https://quant.stackexchange.com/a/18324

For the general solution in the case where $f$ is not a constant, note that, from the SDE \begin{align*} dx_t = \theta(f(t)-x_t)dt + \sigma dW_t, \end{align*} we obtain that \begin{align*} d\big(e^{\theta t} x_t \big) = \theta e^{\theta t} f(t)dt + \sigma e^{\theta t} dW_t. \end{align*} Then \begin{align*} e^{\theta t} x_t = x_0 + \int_0^t \theta e^{\theta s} f(s)ds + \sigma \int_0^t e^{\theta s} dW_s. \end{align*} That is, \begin{align*} x_t = x_0e^{-\theta t} + \int_0^t \theta e^{-\theta (t-s)} f(s)ds + \sigma \int_0^t e^{-\theta (t-s)} dW_s. \end{align*}

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.