Module · 5 lessons

Exponential Smoothing

Build the exponential smoothing family from the ground up: simple smoothing, Holt's linear trend, and Holt-Winters seasonal smoothing, fit with statsmodels and compared against SARIMA.

At a glance

Level
Intermediate
Lessons
5 lessons
Time to complete
1 week
Cost
Free forever · no sign-up

Welcome to Exponential Smoothing, the seventh module of the course. Modules 5 and 6 (AR, MA, ARMA, ARIMA; Seasonality: SARIMA) built one classical forecasting family: models based on autocorrelation, differencing, and seasonal terms. This module builds a second, older, and in many settings simpler family: exponential smoothing. Instead of modeling autocorrelation directly, these models forecast with a weighted average of past values, where more recent values count for more. The weights shrink exponentially as you look further back, which is where the name comes from.

You will build the family in the same three stages every textbook does, and see exactly why each stage exists. Simple exponential smoothing handles a level with no trend and no season, and you will watch it fail on Cyclepath in a very specific way: with no trend to work with, it converges on the naive forecast from Module 1. Holt’s linear trend adds a trend component, and you will watch it fail even more dramatically on Cyclepath, because a strongly seasonal series can trick it into extrapolating a seasonal dip as if it were a real decline. Holt-Winters seasonal smoothing finally adds a seasonal component, and it recovers almost the exact trend slope and seasonal shape that classical decomposition found back in Module 2, this time through smoothing rather than decomposition.

Every model in this module is fit for real with statsmodels.tsa.holtwinters, on the same seeded Cyclepath series used in every module before it. The two failures along the way are not simplifications for teaching purposes. They are the actual, verified output of fitting those models to this series, and they explain exactly why the next component gets added. Start with Lesson 1 on simple exponential smoothing.

Lessons in this module

Achievement

Complete all 5 lessons to finish the Exponential Smoothing module.

Start module
Sponsor

Keep DATATWEETS free. Help fund practical data, AI, and engineering lessons for learners worldwide.

Buy Me a Coffee at ko-fi.com