AR(1): persistence and the φ = 1 boundary
The question
Sixty readings of Xₜ = φXₜ₋₁ + εₜ, one hidden φ: can you find it from the path, and what changes at φ = 1?
Match three paths, then push φ to the boundary.
- 1 SeeFind the hidden φ behind three paths.
- 2 TryPredict what happens at φ = 1.
- 3 ProveBuild the variance formula, line by line.
- 4 ApplyHalf-lives, log prices and explosive growth.
Before you start · 3 quick checks on variance rules and the AR(1) ACF, about 3 min
Two ideas before you start
2 ideasEach reading keeps a share φ of the one before
Figure: twelve shocks as thin bars and the readings built from them as a dashed line. It needs JavaScript.
Xₜ = 0.5 Xₜ₋₁ + εₜ
The thin bars are shocks: new, unpredictable pieces of noise. Each reading, on the dashed line, is φ times the reading before plus the newest shock. With φ = 0 the readings are the shocks themselves.
Exact definition
White noise. A sequence \((\varepsilon_t)_{t \ge 1}\) is white noise with variance \(\sigma^2 \gt 0\) if \(\operatorname{E}[\varepsilon_t] = 0\), \(\operatorname{Var}(\varepsilon_t) = \sigma^2\) and \(\operatorname{Cov}(\varepsilon_s, \varepsilon_t) = 0\) for \(s \ne t\). The shocks need not be independent or normal.
AR(1) model from a fixed start. For a real coefficient \(\varphi\) and a fixed real number \(x_0\), set \(X_0 = x_0\) and
\[X_t = \varphi X_{t-1} + \varepsilon_t \quad (t \ge 1).\]It is the autoregressive model of order 1: each reading is regressed on the one before. The card's figure uses \(x_0 = 0\) and fixed whole-number shocks \(\varepsilon_1, \dots, \varepsilon_{12}\), so that the arithmetic is easy to follow.
A single shock fades by the factor φ each step
Figure: one shock of size 1 at time 1 and no others, and the readings that follow it as bars. It needs JavaScript.
After h steps: 0.8ʰ half-life ≈ 3.11 steps
Start at 0, add one shock of size 1 at time 1, and no other shock. Each step multiplies the reading by φ, so h steps later it is φʰ. At φ = 1 nothing fades.
Exact definition
Effect of one shock. With \(x_0 = 0\), \(\varepsilon_1 = 1\) and every other shock 0, the rule gives \(X_1 = 1\) and \(X_{1+h} = \varphi^h\) for \(h \ge 0\). The bars of the figure are these readings for \(h = 0, \dots, 11\).
Half-life. For \(0 \lt \lvert\varphi\rvert \lt 1\), the half-life of a shock is the number of steps \(h\) with \(\lvert\varphi\rvert^h = \tfrac{1}{2}\):
\[h_{1/2} = \frac{\ln(1/2)}{\ln\lvert\varphi\rvert}.\]It need not be a whole number. For \(\lvert\varphi\rvert \ge 1\) the size \(\lvert\varphi\rvert^h\) never falls below 1, so there is no half-life.
Fine print: the start, the shocks and the mean
Every model on this page starts from a fixed number \(x_0\), not from a random draw. A random start with the right mean and variance can make the AR(1) stationary from the first step; 3 Prove says when.
Every exact statement about means, variances and covariances uses only the white-noise assumptions: mean 0, constant variance \(\sigma^2\) and no correlation between different times. The simulated paths use the stronger assumption of independent standard normal shocks, so \(\sigma = 1\) there. A model with a nonzero long-run mean \(\mu\) is written \(X_t - \mu = \varphi(X_{t-1} - \mu) + \varepsilon_t\); every result on this page then holds for \(X_t - \mu\).
Find the hidden φ
- The solid path is 60 readings of Xₜ = φXₜ₋₁ + εₜ from X₀ = 0, with a hidden φ from −1 to 1.
- Set φ to your guess by eye and press Commit my guess. Your path then appears, dashed, driven by the same shocks.
- Move φ until the dashed path lies on the solid one, then press Check my match. There are three rounds.
How the paths are made, and how to read them
Round \(m\) uses 60 independent standard normal shocks from seed \(m\) of the page's random generator. The seeds are simply 1, 2 and 3; none was picked to make a round easier or harder. Your dashed path uses the same shocks and the same start \(X_0 = 0\), so it lies exactly on the solid path only when your \(\varphi\) equals the hidden one.
Reading a path by eye: with \(\varphi\) near 1, a path stays on one side of 0 for long stretches; with \(\varphi\) near 0, it looks like the shocks themselves; with \(\varphi \lt 0\), it tends to jump from one side of 0 to the other at each step.
What this φ means
At φ = 1 and past it
A prediction first. The explorer below it opens once you check your answer.
Explorer: thirty paths from one start
Every path starts at \(X_0 = 0\) and follows \(X_t = \varphi X_{t-1} + \varepsilon_t\) for 100 steps with independent standard normal shocks, so \(\sigma = 1\). Path \(m\) uses the shocks of seed \(m\), for \(m = 1, \dots, 30\); no seed was picked. The shaded band is \(\pm 2\) standard deviations of \(X_t\), computed exactly from the model, not from the paths.
Goals
Just past the boundary
The slider above stops at \(\lvert\varphi\rvert = 1\). Predict first; the paths past the boundary open when you check.
The same thirty seeds as above, now with \(\varphi = 1\) and just above it. The vertical scale changes with \(\varphi\), so that every path fits.
The variance of Xₜ from a fixed start
Assumptions. \((\varepsilon_t)_{t \ge 1}\) is white noise: \(\operatorname{E}[\varepsilon_t] = 0\), \(\operatorname{Var}(\varepsilon_t) = \sigma^2 \gt 0\), and \(\operatorname{Cov}(\varepsilon_s, \varepsilon_t) = 0\) for \(s \ne t\). The coefficient \(\varphi\) is real with \(\varphi \ne 0\) (with \(\varphi = 0\) the readings are the shocks and there is nothing to prove). The start \(x_0\) is a fixed real number, \(X_0 = x_0\), and
\[X_t = \varphi X_{t-1} + \varepsilon_t \quad (t \ge 1).\]Conclusion. For every \(t \ge 1\), \(\operatorname{E}[X_t] = \varphi^t x_0\) and
\[\begin{aligned} \operatorname{Var}(X_t) &= \sigma^2\sum_{j=0}^{t-1} \varphi^{2j} \\ &= \frac{\sigma^2(1 - \varphi^{2t})}{1 - \varphi^2} \quad (\lvert\varphi\rvert \ne 1), \\ \operatorname{Var}(X_t) &= t\sigma^2 \quad (\lvert\varphi\rvert = 1). \end{aligned}\]So for \(\lvert\varphi\rvert \lt 1\) the variance stays below \(\sigma^2/(1 - \varphi^2)\) and tends to it as \(t \to \infty\); for \(\lvert\varphi\rvert \ge 1\) it is at least \(t\sigma^2\) and grows without bound.
Facts the proof uses.
- Expectation is linear, and a constant has variance 0: \(\operatorname{Var}(c + Y) = \operatorname{Var}(Y)\).
- The variance of a sum of uncorrelated terms is the sum of their variances, and \(\operatorname{Var}(aY) = a^2\operatorname{Var}(Y)\).
- A geometric sum with ratio \(r \ne 1\) and \(n\) terms: \[\begin{aligned} &1 + r + \dots + r^{n-1} \\ &= \frac{1 - r^n}{1 - r}. \end{aligned}\]
Each option is one step of the proof. Pick the one that is true for every \(\varphi \ne 0\) in the range the line names, every start \(x_0\) and every \(\sigma \gt 0\).
Problems
The theorem of 3 Prove and the effect \(\varphi^h\) of one shock give every model value you need. Each problem states its own model and assumptions.
Further reading
- P. J. Brockwell and R. A. Davis, Introduction to Time Series and Forecasting, 3rd ed. (Springer, 2016), chapters 2 and 3 on stationary processes and the AR(1) model.
- J. D. Hamilton, Time Series Analysis (Princeton University Press, 1994), chapter 3 on autoregressive processes and chapter 17 on unit roots.
- R. S. Tsay, Analysis of Financial Time Series, 3rd ed. (Wiley, 2010), chapter 2 on autoregressive models and the random-walk model of log prices.