Edd's Knowledge Base

A stationary series has statistical properties that do not change over time; a non-stationary one does not. Models such as AR, ARMA, and VAR (Autoregressive Models, ARMA and ARIMA Models, Vector Autoregression) learn stable relationships from the past, which only makes sense if the process behaves the same way in the future.

Definitions

Weak (covariance) stationarity, the version used in practice, requires:

  1. Constant mean:
  2. Constant variance:
  3. Autocovariance depends only on the lag:

Strict stationarity says the whole joint distribution is unchanged by a time shift. It is stronger and rarely testable; the two coincide for Gaussian processes.

SeriesStationary?Why
White noiseYesConstant mean and variance, no autocorrelation
AR(1) with YesShocks fade, reverts to the mean
Stock price levelNoWanders like a random walk
Monthly retail salesNoTrend and seasonality
Daily returns (price changes)RoughlyDifferencing removes the wander
Sensor with a drifting baselineNoThe mean changes over time

Types of Non-Stationarity

TypeWhat changesTypical fix
Deterministic trend (trend-stationary)Mean follows a fixed line; deviations around it are stationaryDetrend, or include a time term
Stochastic trend / unit root (difference-stationary)Shocks accumulate permanently (random walk, )Difference the series
SeasonalityMean repeats in a cycleSeasonal differencing , seasonal dummies, or SARIMA
Changing varianceSpread grows or shrinksLog or Box-Cox transform; ARCH/GARCH for volatility
Structural breakMean, variance, or dynamics shift at some dateModel regimes separately, or regime-switching models

The first two differ importantly: detrending a unit-root series leaves residual non-stationarity, and differencing a trend-stationary series over-differences it. This is why both ADF and KPSS are used.

Why It Matters

  • Forecasts: a stationary model reverts to a mean; a non-stationary one has no stable mean, and its forecast uncertainty grows without bound.
  • Inference: standard t-tests, confidence intervals, and are unreliable on non-stationary data.
  • Spurious regression: two unrelated trending series can show a high correlation and impressive purely because both trend, so correlation analysis (Correlation Coefficients) on raw trending data can mislead.
  • Cointegration: the exception. Non-stationary series can share a stable long-run relationship, handled by a vector error-correction model (see Vector Autoregression).

Detecting It

MethodWhat to look for
PlotTrend, changing spread, cycles, level shifts
ACFStationary: decays quickly. Non-stationary: stays high for many lags
Rolling mean and varianceThey drift over time
ADF (Augmented Dickey-Fuller)Null: unit root. Small p-value suggests stationary
KPSSNull: stationary. Small p-value suggests non-stationary
Phillips-PerronAlternative unit-root test, robust to some serial correlation

Read ADF and KPSS together (the four-way table is in Autoregressive Models) and always plot. Both tests have low power on short series.

Fixing It

  1. Transform for variance: log or Box-Cox.
  2. Difference for a stochastic trend, (the “I” in ARIMA), with the smallest order that works.
  3. Seasonally difference for cycles.
  4. Detrend for a deterministic trend.
  5. Re-test after each step, and undo the transformations on the forecasts to return to the original scale.
StationaryNon-stationary
MeanConstantChanges
VarianceConstantMay change
ACFDecays fastDecays slowly
ShocksFade outPersist or accumulate
Long-horizon forecastReverts to the meanDrifts or wanders
ModelsAR, ARMA, VAR directlyDifference or transform first (ARIMA, VECM)