ETS (Exponential Smoothing) › Visualizing Exponential Smoothing

Michael BrenndoerferAugust 8, 20255 min read
Machine Learning from ScratchAll chapters
Part 8 of 9Time Series
Chapter 57ETS (Exponential Smoothing) › Visualizing Exponential Smoothing
Reading section 3 of 8 · Visualizing Exponential Smoothing · 5 minSection 3 of 8 · 5 min

Book contents

Section 3 of 8 · 5 min read

ETS (Exponential Smoothing) › Visualizing Exponential SmoothingOne section · Sections in this chapter3 / 8 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Let's create visualizations that demonstrate how exponential smoothing works with different parameter values and time series patterns.

Out[7]:
Visualization
Time series plot showing how different alpha values affect exponential smoothing responsiveness.
This visualization shows how different smoothing parameters (α) affect the responsiveness of exponential smoothing to recent changes. Higher α values (0.9) make the forecast more responsive to recent observations, while lower α values (0.1) create smoother forecasts that change more slowly. The optimal α value depends on the noise level and how quickly the underlying pattern changes.

Now let's visualize how exponential smoothing handles different types of time series patterns:

Out[8]:
Visualization
Time series plot showing exponential smoothing adapting to changing trends.
This shows how exponential smoothing adapts to a time series with a changing trend. The method gradually adjusts to the new trend direction, with the adaptation speed controlled by the smoothing parameter. The forecast follows the trend while smoothing out random fluctuations.
Time series plot showing exponential smoothing handling seasonal patterns.
This demonstrates exponential smoothing applied to seasonal data. The method captures the seasonal pattern while adapting to changes in the seasonal amplitude over time. The forecast maintains the seasonal structure while smoothing out noise.

Let's also visualize the weight structure of exponential smoothing:

Out[9]:
Visualization
Bar chart showing exponential decay of weights for different time periods in exponential smoothing.
This visualization shows the exponential decay of weights in exponential smoothing. Each bar represents the weight given to an observation from a specific time period in the past. The weights decrease exponentially as we go further back in time, with the most recent observation receiving the highest weight. Different α values create different decay patterns, with higher α values giving more weight to recent observations.