Identifying and Fitting Candidate Models
Explore how to identify candidate ARIMA and SARIMA models for time series data by analyzing autocorrelation functions, fitting models with statsmodels, and evaluating their fit using maximum likelihood estimation and diagnostic criteria.
Now that we know how the different ARIMA model specifications work, we can find the one that best describes our temperature data in San Francisco. In this lesson, we will propose a simple flow to fit some candidate models.
Let’s return now to the temperatures data, but aggregated at the monthly average level. This will make our calculations easier and faster without the loss of generality.
Autocorrelogram exploration
The first step in fitting an ARIMA model is to know the order of its AR and MA components. These are the most important hyperparameters of any ARIMA(
To identify the components of the model that our temperature series might be following, we can plot its ACF and PACF. ...