Autoregression is a time series model that uses observations from previous time steps as input to a regression equation to predict the value at the next time step. It is a very simple idea that can result in accurate forecasts on a range of time series problems.
A constraint to using auto regression is that the time series data needs to be stationary.
Stationarity means that:
-
$\mu$ is constant -
$\sigma$ is constant - There is no seasonality
- Visually
- Global vs Local Tests
- Augmented Dickey Fuller (ADF)
A very common idea to transform a non-stationary data to a stationary one is differnecing. If
Let's explain this by an example:
x | y |
---|---|
January | March |
February | April |
March | May |
ACF contains the effect of both direct route ( |
In PACF we only care about the direct effect
See this file for code example