CommencerCommencer gratuitement

Fitting an ARMA model

In this exercise you will fit an ARMA model to the earthquakes dataset. You saw before that the earthquakes dataset is stationary so you don't need to transform it at all. It comes ready for modeling straight out the ground. You can remind yourself what it looks like below.

The earthquakes dataset is available in your environment as earthquake. The ARIMA class is also available in your environment.

Cet exercice fait partie du cours

ARIMA Models in Python

Afficher le cours

Instructions

  • Instantiate an ARMA(3,1) model and pass it the earthquakes dataset.
  • Fit the model.
  • Print the summary of the model fit.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Instantiate the model
model = ____

# Fit the model
results = ____

# Print model fit summary
____
Modifier et exécuter le code