From the course: Python for Time Series Forecasting
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
ACF and PACF - Python Tutorial
From the course: Python for Time Series Forecasting
ACF and PACF
- [Instructor] To configure the p and q parameters in the ARIMA model, we visualize the partial autocorrelation function and the autocorrelation function to determine the autoregressive and moving average components. The ultimate goal is to establish which are the best numbers for the ARIMA model order. So from statsmodels in the graphics.tsaplots, we will import the plot_acf, and also the plot_pacf, the partial. First the partial, which is the autoregressive part, in the parameters, they ask for the x, which is the series. Remember that it must be the differentiated one, values_diff, we execute, and then we see the plot, which is being duplicated. To keep only one, let's put a semicolon, and there we have it. Now the same for the autocorrelation function, which is plot_acf, and the differentiated values. And then we see the other plot, which is very similar to the partial. Now, let me tell you that this interpretation is very subjective because it can go in many directions. For…
Contents
-
-
-
-
-
-
-
-
(Locked)
Introduction to developing ARIMA models2m 27s
-
(Locked)
Fit mathematical equation model4m 28s
-
(Locked)
How ARIMA changes with parameters P, D, and Q1m 38s
-
(Locked)
Differencing to achieve stationarity5m 14s
-
(Locked)
ACF and PACF6m 17s
-
(Locked)
Playground to try different configurations5m 3s
-
(Locked)
Diagnostics to validate assumptions9m 36s
-
(Locked)
Summary: Important steps to consider in ARIMA modeling2m 37s
-
(Locked)
-
-
-
-
-
-
-
-
-
-