Machine Learning Tutorial 0/98 lessons ~6 min read Lesson 88
SARIMA
SARIMA — Seasonal extension of ARIMA.
Course progress0%
Focus
9 guided sections
Practice signal
Examples included
Career prep
Foundation builder
Introduction
SARIMA — Seasonal extension of ARIMA. This lesson pairs the idea with a minimal Python/sklearn workflow you can extend in a notebook.
Understanding the topic
Concept Seasonal extension of ARIMA.
Workflow Load data → preprocess → fit or apply technique → measure on hold-out data.
In practice Start with a small public dataset before jumping to proprietary production data.
- Concept — Seasonal extension of ARIMA.
- Workflow — Load data → preprocess → fit or apply technique → measure on hold-out data.
- In practice — Start with a small public dataset before jumping to proprietary production data.
Step-by-step explanation
- Concept — Seasonal extension of ARIMA.
- Workflow — Load data → preprocess → fit or apply technique → measure on hold-out data.
- In practice — Start with a small public dataset before jumping to proprietary production data.
Informative example
Python starter:
python
import numpy as npfrom sklearn.metrics import root_mean_squared_errorfrom statsmodels.tsa.statespace.sarimax import SARIMAXrng = np.random.default_rng(42)t = np.arange(72)y = 100 + 0.5 * t + 15 * np.sin(2 * np.pi * t / 12) + rng.normal(0, 1.5, size=72)train, test = y[:60], y[60:]fit = SARIMAX(train, order=(1, 1, 0), seasonal_order=(1, 1, 0, 12)).fit(disp=False)fc = fit.forecast(steps=len(test))print(f"SARIMA(1,1,0)(1,1,0,12) AIC={fit.aic:.1f} | Hold-out RMSE={root_mean_squared_error(test, fc):.2f}")
Output
SARIMA(1,1,0)(1,1,0,12) AIC=208.7 | Hold-out RMSE=2.14
Execution workflow
1SARIMA — workflow
1 / 3Concept
Seasonal extension of ARIMA.
Best practices
- Hold out a test set before hyperparameter tuning.
- Scale numeric columns for distance-based models.
- Track multiple metrics — not accuracy alone on skewed labels.
Common mistakes
- Leaking test statistics into preprocessing fit on full data.
- Training on the same rows you report as test performance.
- Chasing complex models before a simple baseline.
Hands-on exercise
Practice:
- Apply SARIMA on a sample dataset
- Write down one metric that proves the technique helped
Summary
SARIMA: Seasonal extension of ARIMA.
Ready to mark this lesson complete?Track your journey across the entire course.