Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: ARIMA Forecasting and Evaluation | Implementing ARIMA for Forecasting
Time Series Forecasting with ARIMA

bookChallenge: ARIMA Forecasting and Evaluation

Завдання

Swipe to start coding

You will build, forecast, and evaluate an ARIMA model using the built-in AirPassengers dataset.

Perform the following steps:

  1. Load the dataset flights from seaborn and extract the "passengers" series as a time series indexed by month.

  2. Split the data into:

    • Training set → all data except the last 12 months
    • Testing set → last 12 months
  3. Fit an ARIMA(2,1,2) model on the training set using statsmodels.tsa.arima.model.ARIMA.

  4. Forecast the next 12 months.

  5. Compute and print the following metrics between the forecast and the actual test values:

    • Mean Absolute Error (MAE)
    • Root Mean Squared Error (RMSE)
  6. Plot:

    • The original series
    • The forecasted values over the test range.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

Awesome!

Completion rate improved to 6.67

bookChallenge: ARIMA Forecasting and Evaluation

Свайпніть щоб показати меню

Завдання

Swipe to start coding

You will build, forecast, and evaluate an ARIMA model using the built-in AirPassengers dataset.

Perform the following steps:

  1. Load the dataset flights from seaborn and extract the "passengers" series as a time series indexed by month.

  2. Split the data into:

    • Training set → all data except the last 12 months
    • Testing set → last 12 months
  3. Fit an ARIMA(2,1,2) model on the training set using statsmodels.tsa.arima.model.ARIMA.

  4. Forecast the next 12 months.

  5. Compute and print the following metrics between the forecast and the actual test values:

    • Mean Absolute Error (MAE)
    • Root Mean Squared Error (RMSE)
  6. Plot:

    • The original series
    • The forecasted values over the test range.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 4
single

single

some-alt