MulaiMulai sekarang secara gratis

Diagnostics

You have arrived at the model diagnostic stage. So far you have found that the initial time series was stationary, but may have one outlying point. You identified promising model orders using the ACF and PACF and confirmed these insights by training a lot of models and using the AIC and BIC.

You found that the ARMA(1,2) model was the best fit to our data and now you want to check over the predictions it makes before you would move it into production.

The time series savings has been loaded and the ARIMA class has been imported into your environment.

Latihan ini adalah bagian dari kursus

ARIMA Models in Python

Lihat Kursus

Petunjuk latihan

  • Retrain the ARMA(1,2) model on the time series, setting the trend to constant.
  • Create the 4 standard diagnostics plots.
  • Print the model residual summary statistics.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create and fit model
model = ____
results = ____

# Create the 4 diagostics plots
____
plt.show()

# Print summary
____
Edit dan Jalankan Kode