Relating AR(2) Dynamics to a Second-Order Stochastic Differential Equation
Summary
The document explores how autoregressive models can be connected to stochastic differential equations. It begins with the Vasicek short-rate model, showing that with a unit time step its discrete form is an AR(1) process. It then treats the difference operator as an operator that can be applied repeatedly and rewrites an AR(2) equation using first and second differences. This illustrates why moving from higher-order autoregressions to continuous-time dynamics requires attention to how coefficients scale with the time step.
The proposed continuous-time analogue is a second-order stochastic equation resembling a damped harmonic oscillator driven by white noise. Discretizing it and rescaling its coefficients yields an AR(2)-type expression. The answer cautions that the limit is not automatic: coefficients must scale appropriately as the time step shrinks. It also suggests moment-based estimation from an SDE as an alternative to deriving parameters through an AR regression. The discussion is conceptual and does not provide a complete general AR(p) derivation or empirical validation.
Key ideas
- With a unit time step, the Vasicek model can be written as an AR(1) process.
- Repeated differencing provides a way to express an AR(2) equation in terms of first and second differences.
- A second-order stochastic differential equation can motivate an AR(2)-type discretization.
- The continuous-time limit requires coefficients to scale with the time step.
- The discussion does not complete a general AR(p) mapping or demonstrate an empirical estimation procedure.
Tags
Full text
# From $AR(p)$ to SDE
# From $AR(p)$ to SDE
Let the Vasicek model to be
$$\Delta r_{t}=k(\theta - r_{t-1})\Delta t+\sigma\Delta z_{t}$$
Due to the fact that
$$\Delta r_{t}=r_{t}-r_{t-1}$$
if you let $\Delta t=1$, it is easy to see by replacement that
$$r_{t}=k\theta+(1-k)r_{t-1}+\sigma\Delta z_{t}=\alpha+\beta r_{t-1}+\epsilon _{t}$$
which is a simple $AR(1)$ model.
This is quite useful because it allows you to estimate the SDE's parameters value through an easy OLS regression, without involving QMLE.
Questions:
- Could you show me the same proceeding starting from the formulation of an $AR(2)$ model and coming to the related SDE?
- Could you show me the general case of an $AR(p)$ process whose $p$-order is greater than $2$?
## Answer by H. Arponen (score 5)
https://quant.stackexchange.com/a/9201
Note that you can understand the $\Delta$ as an "operator" acting on $r$. So just act on $r$ twice:
$$\Delta^2 r_t = r_t - 2 r_{t-1} + r_{t-2}. $$
In fact if you write the $r$ as a vector, $r = (r_1, r_2, \ldots, r_N)$, then $\Delta$ is an $N\times N$ matrix with elements $\Delta_{i,j} = \delta_{i,j} - \delta_{i-1,j}$.
The AR(2) model can be written as
$$ r_t - \phi_1 r_{t-1} - \phi_2 r_{t-2} = \epsilon_t.$$
We can choose $a, b$ and $c$ such that
$$ a \Delta^2 r_t + b \Delta r_t +c r_{t-2} = r_t - \phi_1 r_{t-1} - \phi_2 r_{t-2} ,$$
which gives $a= 2-\phi_1$, $b=\phi_1 - 1$ and $c = \phi_1 - \phi_2 -2$. So the AR(2) equation can be written as
$$ (2-\phi_1) \Delta^2 r_t + (\phi_1 - 1) \Delta r_t = -(\phi_1 - \phi_2 -2) r_{t-2}+ \epsilon_t.$$
It's not quite trivial to take the limit to the SDE from here... that's because the coefficients of $\Delta^2 r_t$ and $\Delta r_t$ are of the same "dimension" (physicist's l33t sp33k), but the differentials are not, because they are of different order. In fact, I think the limit only exists (or rather, converges to a second order SDE) only if you replace the $\epsilon_t$ with e.g. $\epsilon_t - \epsilon_{t-1}$, i.e. consider an ARMA(2,2) model instead of AR(2), but it's getting late... I can maybe edit/ add something more here tomorrow, if there's interest(?)
EDIT: by the way, you can use OLS with SDEs without setting $\Delta t = 1$ and/or writing the SDE as an AR model etc. Just multiply the (original) equation by $r_t$, take the expectation $\mathbb E()$ and replace with sample mean :) That gives an estimate for the drift term. Do the same but multiply with $\Delta r_t$ to get an estimate for $\sigma$.
ADDITIONAL STUFF:
So as Richard commented on the question, it's probably easier to start with an SDE. SO let's think of the following equation:
$$ \frac{d^2 x(t)}{dt^2} + a \frac{d x(t)}{dt} + c x(t) = \sigma \eta(t)$$
with $\mathbb E (\eta(t) \eta(t')) = \delta (t-t')$ with the Dirac delta function $\delta(t)$. Although mathematicians won't like this, this is a well defined 2nd order SDE describing a harmonic oscillator (for $c>0$) with a linear drag (for $a>0$) and random kicks by $\eta(t)$. Now discretize by letting $dt \to \Delta t$ etc. and multiply the equation by $\Delta t ^2$ (and denote $X(t) = r_t$). We get
$$\Delta^2 r_t + a \Delta t \Delta r_t + b \Delta t^2 r_t = \sigma \Delta t^2 \eta(t).$$
The key to arriving at an AR(2) model is the observation that, formally speaking, $\delta(t-t') = \frac{1}{dt} \delta_{t,t'}$ (you can check this by the Dirac delta definition and Riemann sums). Then $\Delta W_t := \Delta t \eta(t)$ is a standard white noise, and by defining new variables $\tilde a = a \Delta t, \tilde b = b \Delta t^2$ and $\tilde \sigma = \sigma \Delta t$, we get
$$\Delta^2 r_t + \tilde a \Delta r_t + \tilde b r_t = \tilde \sigma \Delta W_t.$$
From this you can go to AR(2), as described above. So if you start from this eqution with the $\tilde a, \tilde b, \tilde \sigma$, if you don't do these rescalings, the SDE limit won't exist because the coefficients blow up! So e.g. $\tilde a$ has to approach zero linearly in $\Delta t$ when $\Delta t \to 0$.
EDIT: and forget about my blabberings about ARMA...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.