Learning Outcomes
Implement the Holt-Winter method to forecast time series
- Justify the need for the Holt-Winters method
- Describe how to obtain initial parameters for the Holt-Winters algorithm
- Explain the Holt-Winters update equations for additive decomposition models
- Explain the purpose of the parameters , , and
- Interpret the coefficient estimates , , and of the Holt-Winters algorithm
- Explain the Holt-Winters forecasting equation for additive decomposition models, Equation (3.22)
Preparation
- Read Section 3.4.2 (Page 59 - top of page 60 only)
Learning Journal Exchange (10 min)
Review another student’s journal
What would you add to your learning journal after reading another student’s?
What would you recommend the other student add to their learning journal?
Sign the Learning Journal review sheet for your peer
Introduction to the Holt-Winters Method–Additive Model (35 min)
We will describe the historical progression that led to the Holt-Winters method.
Review: Exponentially Weighted Moving Average (EWMA) or Simple Exponential Smoothing
The exponential weighted moving average (EWMA) is a simple method for smoothing (or filtering) a time series. The update equation for the estimate of the level of the time series is
where is the estimate of the level of the time series at time and is the smoothing paramter.
This is known as the level update equation, because at each time step, we can update our estimate of the level (or the center) of the time series. It is called exponential smoothing, because at each preceding value has exponentially decreasing influence on the estimate.
- Explain the level update equation to your partner.
These computations are based on previous values and . The number is a smoothing parameter. This determines how much weight is given to previous values when creating the updated level estimate.
If you were to use this model for forecasting, you would not be able to consider any trend or seasonality in the forecast. Hence, the future values would all be forecasted as the last value of :
where is the estimate of the time series time units in the future past time . Frankly, this is not very useful, because many time series have trends or seasonality.
Holt’s Exponential Smoothing
In 1957, Charles Holt published a new procedure that introduced a trend into this model. The forecasted values were:
where is the slope indicating how much the time series changes on average from one time point to another and is the number of time periods past you are forecasting.
This method uses the same level update equation as EMWA. The slope update equation is:
where is a smoothing parameter, is the slope estimate at time , and is the estimate of the level of the time series at time .
Holt-Winters Filtering (Winters’ Exponential Smoothing)
Peter Winters, a colleague of Holt’s at the Carnagie Institute of Technology, published an enhancement of Winters’ technique in 1960 that allowed for seasonal variation. This is known as the Holt-Winters Method or Holt-Winters Filtering.
Forecast Equation
The forecast equation is:
where is the forecasted value of the time series units in the future after time , and the time series is assumed to have seasonality with a period of time units; is the level of the time series at time ; is the slope of the time series at time ; and is the estimated seasonal component at time . Note that we must look back one full period to get the estimated seasonal component.
Update Equations
There are three update equations, one each for (level), (slope), and (seasonal component).
where is a time series from to that has seasonality with a period of time units; at time , is the estimated level of the time series, is the estimated slope, and is the estimated seasonal component; and , , and are parameters (all between 0 and 1).
Work with your partner to answer the following questions about the update equations.
- Interpret the term .
- Interpret the term .
- Explain why this expression for estimates the level of the time series at time .
- Interpret the term .
- Interpret the term .
- Explain why this expression for estimates the slope of the time series at time .
- Interpret the term .
- Interpret the term .
- Explain why this expression for estimates the seasonal component of the time series at time .
- When the seasonal component appears on the right-hand side of the update equations, it always given as . Why do we use the estimate of the seasonal effect periods ago? Why not apply a more recent value?
- What do the following sets of terms have in common?
- Explain why the Holt-Winters method works.
Initial Estimates of , , and
We can use the update equations to compute the next value of , , and , once we get going. Yet, how do we get started? What are the initial values of these estimates?
Estimating :
It is reasonable to let . We simply start our estimate of the level of the time series at the initial data value.
- Explain why it is reasonable to let .
Estimating :
For the value of , the Cowpertwait textbook vaguely suggests estimating this from the data or setting it to zero. Setting to zero is problematic, because it adversely affects the level and slope estimates at the beginning of the time series. We need a better way.
We will approximate by averaging the slope between pairs of points one period apart. Recall that is the number of observations per period. (Monthly data which have an annual cycle would have . Daily data with a weekly cycle have .) Note that the fraction in the “Check Your Understanding” box above is an estimate of the slope of the time series as it moves from time to time . These are the first observations in the first two cycles. We compute these estimated slopes for all the paired observations in the first two cycles, then we compute the mean of these slopes. This is reflected in the expression for :
Estimating :
The initial values of the seasonal effects, , can be determined either by estimating based on the data or your prior experience; alternatively, they could be set to 0. For iterations, use your estimate for when the formulas call for .
- What does the term estimate?
- Why does the average of the values give a good estimate of the slope at the beginning of the time series?
- Suppose you needed to estimate for monthly sales data, where sales are highest in the summer months and lowest in the winter months. If January corresponds to month 1, which values of would you set to be positive? negative? near zero?
To implement the initial seasonality estimates, we include them in the model as This allows us to begin using the data to update the values in the first cycle of seasonality ().
Application of the Holt-Winters Method to a Sample Time Series (10 min)
The Holt-Winters method provides a way to model a time series in which we consider the time series in layers. first, there is the level (the smoothed values from the time series) at time . We will denote the level by . The level can change from time to time. We introduce a value , which we call the slope. This is the change in the level of the series from one time period to another. (As the book points out, R and many textbooks call the slope the trend.) Finally, we include a seasonal estimate, , which indicates how much the time series rises or falls above the level and trend values at time .
To visualize these terms, it can be helpful to consider the forecasting model. Suppose we have computed that Holt-Winters estimate of a time series with observations. In other words, we have just fit a curve to the entire time series. We will use a very simple time series for this illustration.
First, consider a time series that has a seasonal pattern of (100, 104, 100, 100) with zero trend and random components. This is illustrated in Figure 1.
Now, we add a slope of to this time series. In Figure 2, we observe the same sample time series, but with the added component of a slope.
Next, we apply the Holt-Winters method to these data. Figure 3 illustrates the Holt-Winters filter plotted against the data.
Simulation of Holt-Winters Filtering (10 min)
Homework Preview (5 min)
- Review upcoming homework assignment
- Clarify questions