## 8.3 Methods with seasonality

Holt (1957) and Winters (1960) extended Holt’s method to capture seasonality. The Holt-Winters seasonal method comprises the forecast equation and three smoothing equations — one for the level \(\ell_t\), one for the trend \(b_t\), and one for the seasonal component \(s_t\), with corresponding smoothing parameters \(\alpha\), \(\beta^*\) and \(\gamma\). We use \(m\) to denote the frequency of the seasonality, i.e., the number of seasons in a year. For example, for quarterly data \(m=4\), and for monthly data \(m=12\).

There are two variations to this method that differ in the nature of the seasonal component. The additive method is preferred when the seasonal variations are roughly constant through the series, while the multiplicative method is preferred when the seasonal variations are changing proportional to the level of the series. With the additive method, the seasonal component is expressed in absolute terms in the scale of the observed series, and in the level equation the series is seasonally adjusted by subtracting the seasonal component. Within each year, the seasonal component will add up to approximately zero. With the multiplicative method, the seasonal component is expressed in relative terms (percentages), and the series is seasonally adjusted by dividing through by the seasonal component. Within each year, the seasonal component will sum up to approximately \(m\).

### Holt-Winters’ additive method

The component form for the additive method is: \[\begin{align*} \hat{y}_{t+h|t} &= \ell_{t} + hb_{t} + s_{t+h-m(k+1)} \\ \ell_{t} &= \alpha(y_{t} - s_{t-m}) + (1 - \alpha)(\ell_{t-1} + b_{t-1})\\ b_{t} &= \beta^*(\ell_{t} - \ell_{t-1}) + (1 - \beta^*)b_{t-1}\\ s_{t} &= \gamma (y_{t}-\ell_{t-1}-b_{t-1}) + (1-\gamma)s_{t-m}, \end{align*}\] where \(k\) is the integer part of \((h-1)/m\), which ensures that the estimates of the seasonal indices used for forecasting come from the final year of the sample. The level equation shows a weighted average between the seasonally adjusted observation \((y_{t} - s_{t-m})\) and the non-seasonal forecast \((\ell_{t-1}+b_{t-1})\) for time \(t\). The trend equation is identical to Holt’s linear method. The seasonal equation shows a weighted average between the current seasonal index, \((y_{t}-\ell_{t-1}-b_{t-1})\), and the seasonal index of the same season last year (i.e., \(m\) time periods ago).

The equation for the seasonal component is often expressed as \[ s_{t} = \gamma^* (y_{t}-\ell_{t})+ (1-\gamma^*)s_{t-m}. \] If we substitute \(\ell_t\) from the smoothing equation for the level of the component form above, we get \[ s_{t} = \gamma^*(1-\alpha) (y_{t}-\ell_{t-1}-b_{t-1})+ [1-\gamma^*(1-\alpha)]s_{t-m}, \] which is identical to the smoothing equation for the seasonal component we specify here, with \(\gamma=\gamma^*(1-\alpha)\). The usual parameter restriction is \(0\le\gamma^*\le1\), which translates to \(0\le\gamma\le 1-\alpha\).

### Holt-Winters’ multiplicative method

The component form for the multiplicative method is: \[\begin{align*} \hat{y}_{t+h|t} &= (\ell_{t} + hb_{t})s_{t+h-m(k+1)} \\ \ell_{t} &= \alpha \frac{y_{t}}{s_{t-m}} + (1 - \alpha)(\ell_{t-1} + b_{t-1})\\ b_{t} &= \beta^*(\ell_{t}-\ell_{t-1}) + (1 - \beta^*)b_{t-1} \\ s_{t} &= \gamma \frac{y_{t}}{(\ell_{t-1} + b_{t-1})} + (1 - \gamma)s_{t-m} \end{align*}\]

### Example: Domestic overnight trips in Australia

We apply Holt-Winters’ method with both additive and multiplicative seasonality to forecast quarterly visitor nights in Australia spent by domestic tourists. Figure 8.6 shows the data from 1998–2017, and the forecasts for 2018–2020. The data show an obvious seasonal pattern, with peaks observed in the March quarter of each year, corresponding to the Australian summer.

```
tourism %>%
aus_holidays <- filter(Purpose == "Holiday") %>%
summarise(Trips = sum(Trips))
aus_holidays %>%
fit <- model(
additive = ETS(Trips ~ error("A") + trend("A") + season("A")),
multiplicative = ETS(Trips ~ error("M") + trend("A") + season("M"))
) fit %>% forecast(h = "3 years")
fc <-
%>%
fc autoplot(aus_holidays, level = NULL) + xlab("Year") +
ylab("Overnight trips (millions)") +
scale_color_brewer(type = "qual", palette = "Dark2")
```

Quarter | Time | Observation | Level | Slope | Season | Forecast |
---|---|---|---|---|---|---|

\(t\) | \(y_t\) | \(\ell_t\) | \(b_t\) | \(s_t\) | \(\hat{y}_{t+1|t}\) | |

1997 Q1 | 0 | 1511.9 | ||||

1997 Q2 | 1 | -289.7 | ||||

1997 Q3 | 2 | -684.0 | ||||

1997 Q4 | 3 | 9898.7 | -37.4 | -538.2 | ||

1998 Q1 | 4 | 11806.0 | 9963.6 | -24.5 | 1512.0 | 11373.2 |

1998 Q2 | 5 | 9275.7 | 9850.8 | -35.6 | -289.8 | 9649.4 |

1998 Q3 | 6 | 8642.5 | 9699.6 | -50.2 | -684.0 | 9131.1 |

1998 Q4 | 7 | 9299.5 | 9693.9 | -44.6 | -538.2 | 9111.2 |

⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |

2017 Q1 | 80 | 12406.4 | 10837.2 | 93.8 | 1512.1 | 12331.6 |

2017 Q2 | 81 | 10471.2 | 10890.7 | 88.7 | -289.7 | 10641.3 |

2017 Q3 | 82 | 10499.2 | 11027.6 | 94.8 | -683.9 | 10295.5 |

2017 Q4 | 83 | 11210.8 | 11270.5 | 113.4 | -538.1 | 10584.2 |

\(h\) | \(\hat{y}_{T+h|T}\) | |||||

2018 Q1 | 1 | 12896.0 | ||||

2018 Q2 | 2 | 11207.7 | ||||

2018 Q3 | 3 | 10926.9 | ||||

2018 Q4 | 4 | 11186.1 | ||||

2019 Q1 | 5 | 13349.7 | ||||

2019 Q2 | 6 | 11661.4 | ||||

2019 Q3 | 7 | 11380.6 | ||||

2019 Q4 | 8 | 11639.8 | ||||

2020 Q1 | 9 | 13803.4 | ||||

2020 Q2 | 10 | 12115.1 | ||||

2020 Q3 | 11 | 11834.3 | ||||

2020 Q4 | 12 | 12093.5 |

Quarter | Time | Observation | Level | Slope | Season | Forecast |
---|---|---|---|---|---|---|

\(t\) | \(y_t\) | \(\ell_t\) | \(b_t\) | \(s_t\) | \(\hat{y}_{t+1|t}\) | |

1997 Q1 | 0 | 1.2 | ||||

1997 Q2 | 1 | 1.0 | ||||

1997 Q3 | 2 | 0.9 | ||||

1997 Q4 | 3 | 9852.8 | -33.4 | 0.9 | ||

1998 Q1 | 4 | 11806.0 | 9883.1 | -24.9 | 1.2 | 11409.0 |

1998 Q2 | 5 | 9275.7 | 9803.1 | -32.3 | 1.0 | 9562.0 |

1998 Q3 | 6 | 8642.5 | 9690.0 | -43.0 | 0.9 | 9043.8 |

1998 Q4 | 7 | 9299.5 | 9687.9 | -37.6 | 0.9 | 9092.9 |

⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |

2017 Q1 | 80 | 12406.4 | 10802.8 | 96.1 | 1.2 | 12585.3 |

2017 Q2 | 81 | 10471.2 | 10879.6 | 93.5 | 1.0 | 10571.6 |

2017 Q3 | 82 | 10499.2 | 11042.1 | 102.7 | 0.9 | 10156.7 |

2017 Q4 | 83 | 11210.8 | 11284.4 | 121.2 | 0.9 | 10504.7 |

\(h\) | \(\hat{y}_{T+h|T}\) | |||||

2018 Q1 | 1 | 13252.3 | ||||

2018 Q2 | 2 | 11180.7 | ||||

2018 Q3 | 3 | 10781.5 | ||||

2018 Q4 | 4 | 11093.4 | ||||

2019 Q1 | 5 | 13815.6 | ||||

2019 Q2 | 6 | 11651.0 | ||||

2019 Q3 | 7 | 11230.3 | ||||

2019 Q4 | 8 | 11550.4 | ||||

2020 Q1 | 9 | 14378.9 | ||||

2020 Q2 | 10 | 12121.2 | ||||

2020 Q3 | 11 | 11679.0 | ||||

2020 Q4 | 12 | 12007.4 |

The applications of both methods (with additive and multiplicative seasonality) are presented in Tables 8.3 and 8.4 respectively. Because both methods have exactly the same number of parameters to estimate, we can compare the training RMSE from both models. In this case, the method with multiplicative seasonality fits the data best. This was to be expected, as the time plot shows that the seasonal variation in the data increases as the level of the series increases. This is also reflected in the two sets of forecasts; the forecasts generated by the method with the multiplicative seasonality display larger and increasing seasonal variation as the level of the forecasts increases compared to the forecasts generated by the method with additive seasonality.

The estimated states for both models are plotted in Figure 8.7. The small value of \(\gamma\) for the multiplicative model means that the seasonal component hardly changes over time. The small value of \(\beta^{*}\) for the additive model means the slope component hardly changes over time (check the vertical scale).

### Holt-Winters’ damped method

Damping is possible with both additive and multiplicative Holt-Winters’ methods. A method that often provides accurate and robust forecasts for seasonal data is the Holt-Winters method with a damped trend and multiplicative seasonality: \[\begin{align*} \hat{y}_{t+h|t} &= \left[\ell_{t} + (\phi+\phi^2 + \dots + \phi^{h})b_{t}\right]s_{t+h-m(k+1)}. \\ \ell_{t} &= \alpha(y_{t} / s_{t-m}) + (1 - \alpha)(\ell_{t-1} + \phi b_{t-1})\\ b_{t} &= \beta^*(\ell_{t} - \ell_{t-1}) + (1 - \beta^*)\phi b_{t-1} \\ s_{t} &= \gamma \frac{y_{t}}{(\ell_{t-1} + \phi b_{t-1})} + (1 - \gamma)s_{t-m}. \end{align*}\]

`ETS(y ~ error("M") + trend("Ad") + season("M"))`

### Example: Holt-Winters method with daily data

The Holt-Winters method can also be used for daily type of data, where the seasonal period is \(m=7\), and the appropriate unit of time for \(h\) is in days. Here we forecast pedestrian traffic at a busy Melbourne train station in July 2016.

```
pedestrian %>%
sth_cross_ped <- filter(Sensor == "Southern Cross Station", yearmonth(Date) == yearmonth("2016 July")) %>%
index_by(Date) %>%
summarise(Count = sum(Count))
%>%
sth_cross_ped model(hw = ETS(Count ~ error("M") + trend("Ad") + season("M"))) %>%
forecast(h = "2 weeks") %>%
autoplot(sth_cross_ped)
```

Clearly the model has identified the weekly seasonal pattern and the increasing trend at the end of the data, and the forecasts are a close match to the test data.

### Bibliography

Holt, C. E. (1957). *Forecasting seasonals and trends by exponentially weighted averages* (O.N.R. Memorandum No. 52). Carnegie Institute of Technology, Pittsburgh USA. https://doi.org/10.1016/j.ijforecast.2003.09.015

Winters, P. R. (1960). Forecasting sales by exponentially weighted moving averages. *Management Science*, *6*, 324–342. https://doi.org/10.1287/mnsc.6.3.324