Time-Series Models
A time series is a sequence of observations indexed through time. Unlike cross-sectional observations, nearby values may be dependent, the mean may trend, and volatility may cluster. A useful time-series model must address these features before its coefficient tests and forecasts can be trusted.
Deterministic Trend Models
Trend models treat time itself as an explanatory variable. They are appropriate when the series moves around a stable deterministic path and the remaining errors are not serially correlated.
Linear Trend
The slope
Log-Linear Trend
When a series grows at an approximately constant percentage rate, model its logarithm:
Equivalently,
The continuously compounded growth rate is
which is approximately
IMPORTANT
A visually good trend fit is insufficient. If the trend-model residuals are serially correlated, conventional OLS inference is unreliable and the series still contains predictable dynamics. See M3: Serial Correlation.
Covariance Stationarity
Many time-series models require covariance stationarity. A series
- its expected value is finite and constant through time:
- its variance is finite and constant through time:
- its covariance with a lagged value depends only on the lag
, not on calendar time:
A deterministic upward trend violates the constant-mean condition. A unit-root process also fails to be covariance stationary because shocks have permanent effects and its variance generally changes over time.
Autoregressive Models
An autoregressive model uses lagged values of the dependent variable as predictors:
The error
AR(1) Model and Mean Reversion
For
the process is covariance stationary when
Its long-run or mean-reverting level is
The model can be rewritten as
This form makes the dynamics clear:
: deviations decay gradually while keeping the same sign; : deviations decay while alternating around the mean; and - a
close to 1 implies very slow mean reversion.
AR Forecasts
The one-step-ahead AR(1) forecast at time
Longer-horizon forecasts are produced recursively. For a stationary AR(1), forecasts converge toward
Autocorrelation and Model Adequacy
The lag-
An autocorrelation function (ACF) plot displays the sample autocorrelations
Therefore, approximate 5% bounds are
Autocorrelations outside these bounds are evidence—not proof—of dependence at that lag. Examining many lags raises a multiple-comparison issue, so the overall pattern and joint tests also matter.
Partial Autocorrelation Function
The partial autocorrelation function (PACF) at lag
The ACF and PACF provide useful clues about model order:
| Process | ACF | PACF |
|---|---|---|
| AR( | Tails off gradually | Cuts off after lag |
| MA( | Cuts off after lag | Tails off gradually |
| ARMA( | Tails off | Tails off |
Here, cuts off describes the population function: correlations beyond the relevant order are theoretically zero. In a finite sample, estimates beyond the cutoff usually fluctuate around zero, so use the confidence bounds and the overall pattern rather than expecting exact zeros.
After fitting an AR model, inspect the residual ACF. Significant residual autocorrelation indicates that the model has not captured all serial dependence. The Breusch–Godfrey test can test several residual lags jointly; see M3: Breusch–Godfrey Test.
NOTE
The standard Durbin–Watson test is not appropriate when a lagged dependent variable appears among the predictors. Use residual autocorrelations or a suitable Breusch–Godfrey test for an AR model.
Moving-Average and ARIMA Models
Moving-Average Model
An
For a theoretical
ARMA and ARIMA
- ARMA
combines autoregressive terms and moving-average terms for a stationary series. - ARIMA
applies differencing times to make a nonstationary series stationary, then models the differenced series with an ARMA structure.
Therefore, simply combining AR and MA terms produces an ARMA model. It becomes ARIMA only when integration—represented by differencing—is included.
Seasonality
Seasonality is a recurring pattern at a fixed calendar frequency, such as monthly retail peaks or quarterly tax payments. It differs from an ordinary trend because it repeats within a larger cycle.
Possible treatments include:
- seasonal dummy variables;
- seasonal autoregressive lags, such as
for monthly data; - seasonal differencing, such as
; and - models that combine regular and seasonal AR or MA terms.
The treatment should match the pattern. Adding one seasonal lag is not the only possible response.
Unit Roots and Random Walks
Random Walk
When
- If
, this is a random walk. - If
, this is a random walk with drift.
The process has a unit root. Shocks have permanent effects, and the level of the series is not covariance stationary. Running ordinary regressions on unrelated unit-root series can produce high
Dickey–Fuller Test
Subtract
The hypotheses are
against
The usual Student's
The test equation must be specified consistently with the data-generating process: it may contain no deterministic term, an intercept, or an intercept plus a time trend. The augmented Dickey–Fuller test adds lagged differences to absorb higher-order serial correlation.
First Differencing
For a random walk with drift,
first differencing gives
Only a random walk without drift reduces to
Conditional Heteroskedasticity
Financial return series may have little autocorrelation in their levels but strong autocorrelation in their squared residuals. This is volatility clustering: high-volatility periods tend to follow high-volatility periods.
ARCH Model
An ARCH
with restrictions such as
The observation error can be written as
where
GARCH Model
A GARCH
GARCH captures persistent volatility more parsimoniously than a high-order ARCH model. ARCH and GARCH models are generally estimated using maximum likelihood—not automatically by generalized least squares.
To detect ARCH effects, examine the ACF of squared residuals or use an ARCH LM test. If volatility dynamics matter for forecasting or risk measurement, model the conditional variance explicitly. If only coefficient inference is required, heteroskedasticity-consistent standard errors may sometimes be sufficient; see M3: Heteroskedasticity.
Multiple Time Series and Cointegration
Regressing one nonstationary series on another can create a spurious relationship. The key exception is cointegration.
Two unit-root series are cointegrated when a linear combination of them is stationary. Economically, they may wander individually but share a stable long-run equilibrium relationship.
Engle–Granger Procedure
For two candidate series:
- Test each series for a unit root.
- If both are integrated of the same order, estimate the proposed long-run regression in levels:
- Apply an Engle–Granger residual-based unit-root test to
. - Use the Engle–Granger critical values, which differ from ordinary Dickey–Fuller critical values because the residuals are estimated.
If the residuals are stationary, the series are cointegrated and the levels regression represents a long-run relationship. If the residuals retain a unit root, the levels regression is likely spurious and the series should generally be transformed, such as through differencing.
IMPORTANT
Cointegration does not mean that each individual series is stationary. It means that a particular linear combination of the nonstationary series is stationary.
Model-Selection Workflow
IMPORTANT
A unit root does not rule out ARIMA. It rules out fitting a stationary AR, MA, or ARMA model directly to the nonstationary level. An ARIMA(
For a regression involving multiple nonstationary series, test for cointegration before interpreting a levels relationship.
Model selection is iterative rather than mechanical. Prefer a parsimonious specification that has economically sensible coefficients, approximately white-noise residuals, stable parameters, and credible out-of-sample performance.
Summary
| Feature | Diagnostic idea | Typical response |
|---|---|---|
| Deterministic level trend | Plot and trend regression | Linear or log-linear trend |
| Persistent dependence in a stationary series | ACF and residual tests | AR, MA, or ARMA terms |
| Unit root | DF or ADF test | Difference, then model the stationary transformation |
| Repeating calendar pattern | Seasonal plot and lag structure | Seasonal dummies, lags, or differencing |
| Volatility clustering | ACF of squared residuals or ARCH test | ARCH/GARCH when variance forecasting matters |
| Several nonstationary series | Residual-based cointegration test | Levels relation only if cointegrated |