Skip to content

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 ​

Yt=β0+β1t+εt.

The slope β1 is the expected absolute change per period. For example, β1=3 means the series rises by approximately three units each period.

Log-Linear Trend ​

When a series grows at an approximately constant percentage rate, model its logarithm:

ln⁡(Yt)=β0+β1t+εt.

Equivalently,

Yt=exp⁡(β0+β1t+εt).

The continuously compounded growth rate is β1. The exact growth rate per period is

g=eβ1−1,

which is approximately β1 when β1 is small.

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 Yt is covariance stationary when:

  1. its expected value is finite and constant through time:E(Yt)=μ;
  2. its variance is finite and constant through time:Var(Yt)=σ2;
  3. its covariance with a lagged value depends only on the lag j, not on calendar time:Cov(Yt,Yt−j)=γj.

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:

AR(p):Yt=β0+ϕ1Yt−1+⋯+ϕpYt−p+εt.

The error εt should be white noise: it has mean zero, constant variance, and no serial correlation.

AR(1) Model and Mean Reversion ​

For

Yt=β0+ϕYt−1+εt,

the process is covariance stationary when

|ϕ|<1.

Its long-run or mean-reverting level is

μ=β01−ϕ.

The model can be rewritten as

Yt−μ=ϕ(Yt−1−μ)+εt.

This form makes the dynamics clear:

  • 0<ϕ<1: deviations decay gradually while keeping the same sign;
  • −1<ϕ<0: 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 t is

Y^t+1∣t=β^0+ϕ^Yt.

Longer-horizon forecasts are produced recursively. For a stationary AR(1), forecasts converge toward μ^=β^0/(1−ϕ^) as the horizon increases.

Autocorrelation and Model Adequacy ​

The lag-j autocorrelation is

ρj=Corr(Yt,Yt−j).

An autocorrelation function (ACF) plot displays the sample autocorrelations ρ^j across several lags. Under the approximation that observations are white noise, the standard error of an individual sample autocorrelation is approximately

SE(ρ^j)≈1T.

Therefore, approximate 5% bounds are

±1.96T.

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 j measures the correlation between Yt and Yt−j after controlling for lags 1 through j−1. It therefore isolates the direct contribution of lag j, whereas the ACF includes both direct and indirect dependence transmitted through shorter lags.

The ACF and PACF provide useful clues about model order:

ProcessACFPACF
AR(p)Tails off graduallyCuts off after lag p
MA(q)Cuts off after lag qTails off gradually
ARMA(p,q)Tails offTails 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 MA(q) model uses current and lagged white-noise shocks:

MA(q):Yt=μ+εt+θ1εt−1+⋯+θqεt−q.

For a theoretical MA(q) process, autocorrelations are zero beyond lag q. In a finite sample, estimated autocorrelations beyond q will not be exactly zero but should be statistically indistinguishable from zero.

ARMA and ARIMA ​

  • ARMA(p,q) combines p autoregressive terms and q moving-average terms for a stationary series.
  • ARIMA(p,d,q) applies differencing d times to make a nonstationary series stationary, then models the differenced series with an ARMA(p,q) 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 Yt−12 for monthly data;
  • seasonal differencing, such as Yt−Yt−12; 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 ϕ=1, the AR(1) equation becomes

Yt=β0+Yt−1+εt.
  • If β0=0, this is a random walk.
  • If β0≠0, 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 R2 and significant t-statistics even when no meaningful relationship exists—a spurious regression.

Dickey–Fuller Test ​

Subtract Yt−1 from both sides of the AR(1) model:

ΔYt=β0+γYt−1+εt,γ=ϕ−1.

The hypotheses are

H0:γ=0(unit root)

against

Ha:γ<0(stationary alternative).

The usual Student's t critical values are invalid under the unit-root null. The Dickey–Fuller statistic uses a nonstandard distribution with special critical values. Reject the unit-root null when the statistic is sufficiently negative—below the relevant Dickey–Fuller critical value.

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,

Yt=β0+Yt−1+εt,

first differencing gives

ΔYt=Yt−Yt−1=β0+εt.

Only a random walk without drift reduces to ΔYt=εt. Differencing can stabilize a unit-root series, but unnecessary differencing can introduce avoidable noise and moving-average behavior.

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(q) model specifies the conditional error variance as

σt2=α0+α1εt−12+⋯+αqεt−q2,

with restrictions such as α0>0 and αj≥0 to keep the variance nonnegative.

The observation error can be written as

εt=σtzt,

where zt is a standardized white-noise shock. ARCH models the conditional variance, not the conditional mean.

GARCH Model ​

A GARCH(p,q) model adds lagged conditional variances:

σt2=α0+∑i=1qαiεt−i2+∑j=1pβjσt−j2.

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:

  1. Test each series for a unit root.
  2. If both are integrated of the same order, estimate the proposed long-run regression in levels:Yt=β0+β1Xt+ut.
  3. Apply an Engle–Granger residual-based unit-root test to u^t.
  4. 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(p,d,q) model is appropriate only when differencing the series d times produces a stationary ARMA(p,q) process.

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 ​

FeatureDiagnostic ideaTypical response
Deterministic level trendPlot and trend regressionLinear or log-linear trend
Persistent dependence in a stationary seriesACF and residual testsAR, MA, or ARMA terms
Unit rootDF or ADF testDifference, then model the stationary transformation
Repeating calendar patternSeasonal plot and lag structureSeasonal dummies, lags, or differencing
Volatility clusteringACF of squared residuals or ARCH testARCH/GARCH when variance forecasting matters
Several nonstationary seriesResidual-based cointegration testLevels relation only if cointegrated