Get startedGet started for free

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.

This exercise is part of the course

ARIMA Models in Python

View Course

Exercise instructions

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

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Instantiate the model
model = ____

# Fit the model
results = ____

# Print model fit summary
____
Edit and Run Code