Winters' method: forecast seasonal data with trend

Updated

Winters' method, also called Holt-Winters exponential smoothing, forecasts series that have both a trend and a seasonal pattern. It extends double exponential smoothing with a third smoothed quantity: one seasonal factor for each season of the cycle. Every period updates the level, the trend and the factor for the current season, so the forecast follows changes in growth and in the shape of the season.

When to use it

  • A time series plot shows a repeating seasonal pattern and a trend.
  • The trend or the seasonal pattern may change slowly over the years, so fixed indices from a decomposition would go stale.
  • You need forecasts for the next cycle (the next four quarters or twelve months) that update with each new period.
  • You have at least two or three full cycles of data.

How it works

Choose the form first. In the multiplicative form the seasonal factors are ratios (1.30 means 30% above the level), suitable when the seasonal swings grow with the level. In the additive form they are amounts added to the level, suitable when the swings stay the same size.

For the multiplicative form with season length p and weights α (level), γ (trend) and δ (season), each period t updates:

Lₜ = α·(yₜ / Sₜ₋ₚ) + (1 − α)·(Lₜ₋₁ + Tₜ₋₁) Tₜ = γ·(Lₜ − Lₜ₋₁) + (1 − γ)·Tₜ₋₁ Sₜ = δ·(yₜ / Lₜ) + (1 − δ)·Sₜ₋ₚ F(t+h) = (Lₜ + h·Tₜ) · Sₜ₊ₕ₋ₚ for h = 1, …, p

The level update deseasonalizes the new observation with last year's factor for this season. The trend update is the same as in Holt's method. The seasonal update mixes this period's ratio to the level with last year's factor.

Starting values. This article uses a simple start from the first year: the level is the mean of year 1, the trend is the change from the mean of year 1 to the mean of year 2, divided by 4, and the seasonal factors are the year-1 values divided by the year-1 mean. Updating starts with the first quarter of year 2. Other starts, such as a decomposition of the first few years, are also common and change the early forecasts.

Weights. Values of 0.2 for all three are a common starting choice; you can also search for the weights that minimize the squared one-step-ahead errors.

Example

A maker of air-conditioning compressors ships most units in spring and summer. Quarterly shipments for five years:

YearQ1Q2Q3Q4
1438592687351
2506684751428
3522699850446
4551747898483
5610806951502

The swings grow with the level, so the multiplicative form fits. Starting values: L = 517.0 (the year-1 mean), T = (592.25 − 517.0) / 4 = 18.81 per quarter, and seasonal factors 0.8472, 1.1451, 1.3288 and 0.6789.

With α = γ = δ = 0.2, the first update (year 2, Q1):

  • Forecast: (517.0 + 18.81) × 0.8472 = 453.9. Actual: 506.
  • Level: 0.2 × (506 / 0.8472) + 0.8 × 535.81 = 548.10.
  • Trend: 0.2 × (548.10 − 517.0) + 0.8 × 18.81 = 21.27.
  • Q1 factor: 0.2 × (506 / 548.10) + 0.8 × 0.8472 = 0.8624.
Quarterly compressor shipments and Winters' one-step forecasts4006008001000Compressors shippedShipmentsForecast, α = γ = δ = 0.2Y2 Q1Y2 Q3Y3 Q1Y3 Q3Y4 Q1Y4 Q3Y5 Q1Y5 Q3Quarter
Quarterly compressor shipments and Winters' one-step forecasts

Over years 2 to 5, the one-step forecasts have MAPE 4.11%, MAD 26.4 and MSD 953.8. At the end of year 5 the level is 749.60, the trend 10.94 per quarter, and the seasonal factors 0.8457, 1.1243, 1.3025 and 0.6769. The trend came down from the starting 18.81 because growth slowed after year 2: the yearly means went 517.0, 592.25, 629.25, 669.75 and 717.25.

Forecasts for year 6:

QuarterQ1Q2Q3Q4
α = γ = δ = 0.2643.2867.41019.1537.0
α = 0.5, γ = 0.1, δ = 0.3638.5864.01021.3540.0

For Q1: (749.60 + 10.94) × 0.8457 = 643.2. The second row uses the weights that minimize the squared errors on a grid with steps of 0.05 (MSD 763.9). The two sets of forecasts differ by 5 units at most, so the plan does not depend on the exact weights. The plant schedules about 1,020 compressors for the third quarter.

How to read the results

  • Seasonal factors read like decomposition indices: 1.3025 means Q3 runs about 30% above the level.
  • Level and trend give the deseasonalized size of the business and its current growth per period.
  • Weights show what adapts fast. A large δ means the seasonal shape changes from year to year; a small one means it is stable.
  • Accuracy measures describe one-step-ahead errors. Forecasts a full cycle ahead carry more error.

Common mistakes

  • Too little history. With fewer than two or three cycles, the seasonal factors rest on one or two values each.
  • Using the additive form when swings grow. The forecasts then understate the peaks and overstate the troughs as the level rises.
  • Over-fitting the weights. With 16 forecast errors, a three-way search can fit noise; check that the chosen weights give sensible forecasts.
  • Forgetting the starting values. Different starts change the early fits and, in short series, the weights that look best.

Frequently asked questions

Multiplicative or additive?

Look at how the seasonal swings change as the level rises. Here the gap between Q3 and Q4 grew from 336 units in year 1 to 449 in year 5, so multiplicative fits. If the gap stays about the same, use additive.

How is Winters' method different from decomposition?

Decomposition estimates one trend line and one fixed set of seasonal indices from the whole history. Winters' method updates all three parts every period, so recent years count more. With a stable pattern they give similar forecasts.

How far ahead can I forecast?

Mechanically, as far as you like: the trend line continues and the seasonal factors repeat. In practice, one or two cycles ahead is reasonable; beyond that, the assumption that the trend continues dominates.

Does Winters' method give prediction intervals?

The smoothing equations alone give point forecasts. Intervals require a statistical model behind them, such as a state space form of exponential smoothing or a seasonal ARIMA model. Comparing the forecasts with those of an ARIMA model is also a useful check.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab