Time Series, lesson 5
Stationarity
Which series you can model directly, and how to transform the rest.
You know returns, autocorrelation and the random walk.
Part 1. Make it settle
Below are two simulated prices. Each quarter of the chart shows its own average and spread. Transform the series until every quarter looks alike.
A wandering price has a different average in every quarter, so no one average describes it. Its daily changes have the same average and spread throughout. The growing price needed a log first, so that its moves were measured as fractions of the price rather than in money.
Stationary
A series is stationary when its average, its spread and its autocorrelations stay the same whichever stretch you look at. Formally, for weak stationarity: E[xₜ] = μ and Var(xₜ) = σ² for every t, and Cov(xₜ, xₜ₋ₖ) depends only on the lag k.
It matters because everything you estimate from the past, an average, a correlation, a regression, describes the future only if the rules don't change. Fit a model to a series whose average moves and you've fitted one stretch of history.
Your turn
Is a random walk stationary?
Part 2. Unit roots
Keep going with Pro
You've done the first part. Pro opens the rest of this lesson, and every other one.
- Unit roots
- Too much differencing
- A worked problem
- The same thing, for real
Time Series overviewSpotted a mistake? Tell us.