ARIMA Models in R
David Stoffer
Professor of Statistics at the University of Pittsburgh
A time series is stationary when it is "stable", meaning:
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
Reasonable to assume stationary, but perhaps some slight trend.
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.
Not stationary, but differenced data are stationary.
Stationarity around a trend, differencing still works!
First log, then difference
ARIMA Models in R