Path: blob/master/Time Forecasting using Python/2.2 Autocorrelation and Partial Correlation.ipynb
3074 views
Autocorrelation Definition:
Autocorrelation, also called serial correlation, is the correlation of a signal with a delayed copy of itself. It measures how a time series is related to its own previous values.
It seems the dataset size [1, 2, 3, 4, 5, 6, 7, 8] is too small to compute the Partial Autocorrelation Function (PACF) for 7 lags because PACF can only be computed for lags up to 50% of the sample size.
2. Partial Autocorrelation
ACF Plot shows how each value in the series is correlated with its lagged values.
PACF Plot shows the direct correlation between the values and their lagged counterparts after removing the effects of intermediate lags.
Difference Between Autocorrelation and Partial Autocorrelation:
1- Autocorrelation
Measure the correlation between a time series and its lagged Values
ACF plots the Correlation values values against different lasgs
2- Partial
Measure the corrlation between a time series and its lagged values controlling the effects of intermediate lags.
PACF curve
Visualizing and Interpreting the Results
Visualizing and Interpreting the Results: The autocorrelation plot (ACF) usually starts at 1 (since a series is perfectly correlated with itself at lag 0) and then decreases as the lag increases. The partial autocorrelation plot (PACF) typically drops sharply after a certain lag, especially in autoregressive processes