Method · Statistics Library

Exponential smoothing (Holt-Winters)

Holt-Winters exponential smoothing forecasts a series from smoothed level, trend, and seasonal components whose influence decays exponentially into the past, reporting in-sample SSE/AIC and a multi-step forecast.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

This method forecasts by averaging past values, but not equally: recent observations count more than older ones, with the weight on each past point shrinking exponentially the further back it sits. The Holt-Winters version can track up to three moving pieces at once: the current LEVEL, a slowly-updating TREND (the slope), and a repeating SEASONAL pattern of a fixed length (say, 12 months).

You choose which pieces to turn on. If the series has no real trend, turn trend off; if it has no repeating cycle, turn seasonal off. Getting this choice roughly right matters more than fine-tuning anything else, because the model can only track the pieces you've told it exist.

This family of models overlaps heavily with ARIMA (many exponential smoothing models have an equivalent ARIMA form), but exponential smoothing is usually easier to read off directly (there's a level, a trend, a seasonal shape) and is a strong, simple default for business series with an obvious seasonal cycle.

Exponential smoothing models are also called ETS models, for error, trend and seasonality. Triple exponential smoothing, also called Holt-Winters, adds a seasonal part and is a common choice for seasonal forecasting.

Practitioner explanation

KernelStats fits an additive-only Holt-Winters model (statsmodels' ExponentialSmoothing): trend and seasonal components are each either additive or switched off entirely; there is no multiplicative option, so a seasonal swing that grows with the level should be log-transformed first. SSE and AIC come directly from that fit, and the smoothing parameters (level/trend/seasonal) are reported alongside the forecast.

Everything on the card comes from that ONE Holt-Winters fit: the point forecasts are built from its final level, trend and seasonal states, and the 95% prediction interval is computed in closed form from the same fitted weights, so the band is centered on the forecast line by construction. For step h it is forecast ± 1.96·σ̂·√(1 + Σ_{j<h} c_j²), with c_j = α(1 + β·j) + γ·[j is a multiple of m] (the class-1 additive-error ETS variance of Hyndman et al., 2008, Table 6.1, where α, β and γ are the fitted level, trend and seasonal weights, and β and γ are 0 when that component is switched off) and σ̂² = SSE/n. It treats the fitted smoothing weights and starting states as known. Omitting parameter uncertainty can make coverage too optimistic, especially in short series; misspecification can affect coverage in either direction. R's forecast::ets() uses its own parameter-count variance adjustment; any interval comparison must account for the fitted model and variance convention rather than assume a guaranteed ordering.

Four diagnostics are actually computed on the card: a component check that refits the other trend/seasonal configurations and warns when one of them beats the chosen configuration on AIC; an equal-spacing check that flags missing values inside the series (they are dropped and the series closed up, shifting later points in the calendar and the seasonal cycle) and, when the optional period column is given (a date, 2023-01, Jan 2023, 2023Q1 or a year), checks the calendar itself: a changing gap is flagged with its table rows, repeated periods are reported as several series stacked (a panel), and the plot axis and forecast steps carry real dates, without changing any number; a Ljung-Box test on the one-step errors (lag 10, or 2m for a seasonal model, capped at n/5), which the card itself notes over-rejects somewhat for a correctly specified model; and a variance-ratio F test comparing the errors at high and low fitted values, the check on the constant-error-size assumption behind the intervals. Normality of the errors is not tested. The card itself runs no outlier screen on the series; the table-level check that runs before every card does warn, naming the row, when a row looks like a TOTAL of the rows above it (a spreadsheet's grand-total trailer parsed as an observation), but any other aberrant observation is yours to spot, so look at the raw series before fitting. Forecasts and their intervals print in the series' own units with thousands separators, never in scientific notation.

When to use it

Consider it when

You want a straightforward, easily interpreted forecast that weights recent observations more heavily, optionally with a trend and a repeating additive seasonal pattern (at least two full cycles of data).

Use caution when

The seasonal swing grows with the level (log-transform first, or reconsider the additive-only model), the series' structure is dominated by complex autocorrelation an ARIMA model would capture better, or you have not yet checked out-of-sample accuracy (use the forecast backtest before trusting the forecast).

Formulas and symbols

Additive Holt-Winters forecast

y^t+h∣t=ℓt+hbt+st+h−m(k+1),k=⌊h−1m⌋\hat y_{t+h\mid t}=\ell_t+h b_t+s_{t+h-m(k+1)},\qquad k=\left\lfloor\frac{h-1}{m}\right\rfloor

Full additive trend-and-seasonal model: ell_t is the fitted level, b_t the fitted trend, m the seasonal period and h >= 1 the horizon. The wrapped seasonal index reuses the most recent fitted seasonal cycle for any horizon. Set b_t = 0 when trend is off and omit s when seasonality is off.

Level update (smoothing parameter alpha)

ℓt=α(yt−st−m)+(1−α)(ℓt−1+bt−1)\ell_t=\alpha(y_t-s_{t-m})+(1-\alpha)(\ell_{t-1}+b_{t-1})

Level update for the full additive Holt-Winters model. Subtract the previous seasonal component before smoothing the observation; alpha is the level weight. Omit s when seasonality is off and b when trend is off.

Sum of squared errors (in-sample)

SSE=∑t(yt−y^t)2SSE = \sum_t (y_t - \hat y_t)^2

One-step-ahead fitted errors over the training data; smaller is a tighter in-sample fit, not a forecast-accuracy guarantee.

Assumptions and checks

  • No (residual) autocorrelation. Structured pattern in the fitted errors can indicate that the chosen components have not captured relevant series behavior. Forecasts and interval coverage may then be unreliable; misspecification does not guarantee a particular direction of error or interval-width change.

    In KernelStats: Ljung-Box test on the one-step-ahead errors (lag 10, or 2m for a seasonal model, at most n/5), reported directly on the card; the card notes that with estimated weights and starting states it flags a correctly specified model somewhat more often than 5% of the time, so a rejection is a prompt to inspect the residuals rather than a verdict.

Alternatives

  • ARIMA Forecast. The series has complex autocorrelation beyond a simple trend and seasonal cycle (for example the Ljung-Box check on the one-step errors keeps failing), or you want an explicit (p,d,q) model of that autocorrelation; the two families overlap and are best compared by out-of-sample accuracy.
  • STL Decomposition. You want to inspect the trend and seasonal components themselves rather than get a forecast.
  • Forecast Backtest (Rolling-Origin). You want an honest, out-of-sample judgment of this model's forecast accuracy instead of trusting in-sample SSE/AIC.

Worked example

Scenario

48 months of retail sales with both a trend and a 12-month seasonal cycle, fit with additive trend and additive seasonal components (m = 12).

Result

SSE = 502.46, AIC = 144.72; the one-step-ahead fitted value is 344.87, and the forecast continues with the fitted seasonal pattern repeating into the 12-month-ahead forecast.

Interpretation

As with any in-sample fit statistic, SSE and AIC describe how well the model reproduces the training months, not how well it will forecast next year; that judgment belongs to Forecast Backtest (Rolling-Origin). Before trusting the width of the prediction band, check the card's variance-ratio test (swings that grow with the level call for a log transform) and the Ljung-Box row on the one-step errors.

Common misconceptions

Misconception

The 95% prediction interval tells me the range future values will almost certainly fall in.

Correction

The interval is centered on the card's own forecast line and built from the same fitted model's one-step error variance (σ̂² = SSE/n), widened step by step by the closed-form ETS multipliers; it treats the fitted smoothing weights and starting states as if they were known exactly, and it assumes additive, constant-size, roughly normal errors. Omitting parameter uncertainty can make coverage too optimistic, especially for short series and long horizons; misspecification can affect coverage in either direction. It says nothing about structural breaks the history never showed. Treat it as a model-based approximation rather than a guaranteed lower bound, and check the card's variance-ratio test before trusting its width at high or low levels.

Misconception

Because this configuration has a lower SSE or AIC, it will forecast the future better.

Correction

SSE describes training fit and can favor excessive flexibility. AIC adds a complexity penalty and targets expected predictive fit under modeling assumptions, but a lower AIC does not guarantee better realized future forecasts. Compare models on appropriate held-out or rolling-origin data.

Read more: Misconception: a model's training-set accuracy is its real-world performance

References

  1. Forecasting Sales by Exponentially Weighted Moving Averages, Winters, P. R. (1960), Management Science, 6(3), 324-342.
  2. Forecasting with Exponential Smoothing: The State Space Approach, Hyndman, R. J., Koehler, A. B., Ord, J. K. and Snyder, R. D. (2008).
  3. Forecasting: Principles and Practice: exponential smoothing, Hyndman, R. J. and Athanasopoulos, G..