Exponential Smoothing-Trend and Seasonal
Exponential Smoothing-Trend and Seasonal
com
Chapter 467
Exponential Smoothing –
Trend & Seasonal
Introduction
This module forecasts seasonal series with upward or downward trends using the Holt-Winters exponential
smoothing algorithm. Two seasonal adjustment techniques are available: additive and multiplicative.
Additive Seasonality
Given observations X 1 , X 2 , , X t of a time series, the Holt-Winters additive seasonality algorithm computes an
evolving trend equation with a seasonal adjustment that is additive. Additive means that the amount of the
adjustment is constant for all levels (average value) of the series.
The forecasting algorithm makes use of the following formulas:
a t = α ( X t − Ft − s ) + (1 − α )(a t −1 + bt −1 )
bt = β (a t − a t −1 ) + (1 − β )bt −1
Ft = γ ( X t − a t ) + (1 − γ ) Ft − s
Here α , β , and γ are smoothing constants which are between zero and one. Again, a t gives the y-intercept (or
level) at time t, while bt is the slope at time t. The letter s represents the number of periods per year, so the
quarterly data is represented by s = 4 and monthly data is represented by s = 12.
The forecast at time T for the value at time T+k is aT + bT k + F[( T + k −1)/ s ]+1 . Here [(T+k-1)/s] is means the
remainder after dividing T+k-1 by s. That is, this function gives the season (month or quarter) that the observation
came from.
Multiplicative Seasonality
Given observations X 1 , X 2 , , X t of a time series, the Holt-Winters multiplicative seasonality algorithm
computes an evolving trend equation with a seasonal adjustment that is multiplicative. Multiplicative means that
the amount of the adjustment is varies with the level (average value) of the series. Note that the nature of most
economic time series make the multiplicative model more popular than the additive model.
The forecasting algorithm makes use of the following formulas:
a t = α ( X t / Ft − s ) + (1 − α )(a t −1 + bt −1 )
bt = β (a t − a t −1 ) + (1 − β )bt −1
Ft = γ ( X t / a t ) + (1 − γ ) Ft − s
467-1
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Here α , β , and γ are smoothing constants which are between zero and one. Again, a t gives the y-intercept (or
level) at time t, while bt is the slope at time t. The letter s represents the number of periods per year, so the
quarterly data is represented by s = 4 and monthly data is represented by s = 12.
The forecast at time T for the value at time T+k is (aT + bT k )F[( T + k −1) / s ]+1 . Here [(T+k-1)/s] is means the
remainder after dividing T+k-1 by s. That is, this function gives the season (month or quarter) that the observation
came from.
Smoothing Constants
Notice that the smoothing constants determines how fast the weights of the series decays. The values may be
chosen either subjectively or objectively. Values of a smoothing constant near one put almost all weight on the
most recent observations. Values of a smoothing constant near zero allow the distant past observations to have a
large influence.
Note that α is associated with the level of the series, β is associated with the trend, and γ is associated with the
seasonality factors.
When selecting the smoothing constant subjectively, you use your own experience with this, and similar, series.
Also, specifying the smoothing constant yourself lets you tune the forecast to your own beliefs about the future of
the series. If you believe that the mechanism generating the series has recently gone through some fundamental
changes, use a smoothing constant value of 0.9 which will cause distant observations to be ignored. If, however,
you think the series is fairly stable and only going through random fluctuations, use a value of 0.1.
To select the value of the smoothing constants objectively, you search for values that are best in some sense. Our
program searches for that values that minimize the size of the combined forecast errors of the currently available
series. Three methods of summarizing the amount of error in the forecasts are available: the mean square error
(MSE), the mean absolute error (MAE), and the mean absolute percent error (MAPE). The forecast error is the
difference between the forecast of the current period made at the last period and the value of the series at the
current period. This is written as
et = X t − Ft −1
Using this formulation, we can define the three error-size criterion as follows:
∑e
1
MSE = 2
t
n
∑e
1
MAE = t
n
∑X
100 et
MAPE =
n t
To find the value of the smoothing constants objectively, we select one of these criterion and search for those
values of α and β that minimize this function. The program conducts a search for the appropriate values using
an efficient grid-searching algorithm.
Initial Values
Winters method requires initialization since the forecast for period one requires the forecast at period zero, which we
do not, by definition, have. It also requires the seasonal adjustment factors. Several methods have been proposed
for generating starting values. NCSS uses the initialization method described in Bowerman and O’Connell (1993).
467-2
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Data Structure
The data are entered in a single variable.
Missing Values
When missing values are found in the series, they are either replaced or omitted. The replacement value is the
average of the nearest observation in the future and in the past or the nearest non-missing value in the past.
If you do not feel that this is a valid estimate of the missing value, you should manually enter a more reasonable
estimate before using the algorithm. These missing value replacement methods are particularly poor for seasonal
data. We recommend that you replace missing values manually before using the algorithm.
Procedure Options
This section describes the options available in this procedure.
Variables Tab
Specify the variable(s) on which to run the analysis.
467-3
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Forecasting Options
Number of Forecasts
This option specifies the number of forecasts to be generated.
Seasonality Options
Seasons
Specify the number of seasons per year in the series. Use ‘4’ for quarterly data or ‘12’ for monthly data.
First Season
Specify the first season of the series. This value is used to format the reports and plots. For example, if you have
monthly data beginning with March, you would enter a ‘3’ here.
First Year
Specify the first year of the series. This value is used to format the reports and plots.
Smoothing Constant Search Options
Search Method
This option specifies whether a search is conducted for the best values of the smoothing constants and what the
criterion for the search will be.
• Specified Value
No search is conducted. The values of the smoothing constants given in the next options are used.
• Search on MSE
A search is conducted to find the values of the smoothing constants that minimize MSE.
• Search on MAE
A search is conducted to find the values of the smoothing constants that minimize MAE.
• Search on MAPE
A search is conducted to find the values of the smoothing constants that minimize MAPE.
467-4
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Reports Tab
The following options control which reports are displayed.
Select Reports
Summary Report
This option specifies whether the indicated report is displayed.
Forecast Report
This option specifies which parts of the series are listed on the numeric reports: the original data and forecasts,
just the forecasts, or neither.
Report Options
Precision
Specify the precision of numbers in the report. Single precision will display seven-place accuracy, while the
double precision will display thirteen-place accuracy. Note that all reports are formatted for single precision only.
Variable Names
Specify whether to use variable names or (the longer) variable labels in report headings.
Page Title
Specify a title to be shown at the top of the reports.
Plots Tab
This section controls the forecast and residual plots.
467-5
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Select Plots
Forecast Plot - Residual Plot
Each of these options specifies whether the indicated plot is displayed. Click the plot format button to change the
plot settings.
Storage Tab
The forecasts and residuals may be stored on the current dataset for further analysis. These options let you
designate which statistics (if any) should be stored by designating which columns should receive the statistics.
Note that existing data is replaced. Be careful that you do not specify columns that contain important data.
467-6
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
467-7
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Variable Sales
Number of Rows 144
Missing Values None
Mean 174.2847
Pseudo R-Squared 0.980145
Mean Square Error 16.10279
Mean |Error| 3.114085
Mean |Percent Error| 1.786407
467-8
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
467-9
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Forecast Plot
The forecast plot lets you analyze how closely the forecasts track the data. The plot also shows the forecasts at the
end of the data series.
Residual Plot
This plot lets you analyze the residuals themselves. You are looking for patterns, outliers, or any other
information that may help you improve the forecasting model. The first thing to compare is the scale of the
Residual Plot versus the scale of the Forecast Plot. If your forecasting algorithm is working well, the vertical scale
of the Residual Plot will be much less than the scale of the Forecast Plot.
467-10
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Exponential Smoothing – Trend & Seasonal
Forecasts Section
Forecasts Section
This section shows the values of the forecasts, the dates, the actual values, and the residuals.
467-11
© NCSS, LLC. All Rights Reserved.