Stationarity and nonstationarity

ARIMA Models in R

David Stoffer

Professor of Statistics at the University of Pittsburgh

Stationarity

A time series is stationary when it is "stable", meaning:

  • the mean is constant over time (no trend)
  • the correlation structure remains constant over time

ch1_2.005.png

ARIMA Models in R

Stationarity

Given data, $ \ x_1,...,x_n \ $ we can estimate by averaging

For example, if the mean is constant, we can estimate it by the sample average $\bar x$

Pairs can be used to estimate correlation on different lags:

$(x_1, x_2), (x_2, x_3), (x_3, x_4), ...$ for lag 1

$(x_1, x_3), (x_2, x_4), (x_3, x_5), ...$ for lag 2

ARIMA Models in R

Southern Oscillation Index

Reasonable to assume stationary, but perhaps some slight trend.

ch1_2.014.png

ARIMA Models in R

Southern Oscillation Index

To estimate autocorrelation, compute the correlation coefficient between the time series and itself at various lags.

Here you see how to get the correlation at lag 1 and lag 6.

ch1_2.018.png

ARIMA Models in R

Random Walk Trend

Not stationary, but differenced data are stationary.

ch1_2.021.png

ARIMA Models in R

Trend Stationarity

Stationarity around a trend, differencing still works!

ch1_2.024.png

ARIMA Models in R

Nonstationarity in trend and variability

First log, then difference

ch1_2.027.png

ARIMA Models in R

Let's practice!

ARIMA Models in R

Preparing Video For Download...