Box-Jenkins method

Modelli ARIMA in Python

James Fulton

Climate informatics researcher

The Box-Jenkins method

From raw data $\rightarrow$ production model

  • identification
  • estimation
  • model diagnostics
Modelli ARIMA in Python

Identification

  • Is the time series stationary?
  • What differencing will make it stationary?
  • What transforms will make it stationary?
  • What values of p and q are most promising?

Modelli ARIMA in Python

Identification tools

  • Plot the time series
    • df.plot()
  • Use augmented Dicky-Fuller test
    • adfuller()
  • Use transforms and/or differencing
    • df.diff(), np.log(), np.sqrt()
  • Plot ACF/PACF
    • plot_acf(), plot_pacf()

Modelli ARIMA in Python

Estimation

  • Use the data to train the model coefficients
  • Done for us using model.fit()
  • Choose between models using AIC and BIC
    • results.aic, results.bic

Modelli ARIMA in Python

Model diagnostics

  • Are the residuals uncorrelated
  • Are residuals normally distributed
    • results.plot_diagnostics()
    • results.summary()

Modelli ARIMA in Python

Decision

Modelli ARIMA in Python

Repeat

  • We go through the process again with more information
  • Find a better model

Modelli ARIMA in Python

Production

  • Ready to make forecasts
    • results.get_forecast()

Modelli ARIMA in Python

Box-Jenkins

Modelli ARIMA in Python

Let's practice!

Modelli ARIMA in Python

Preparing Video For Download...