You are on page 1of 4

International Journal of Forecasting 20 (2004) 557 – 560

www.elsevier.com/locate/ijforecast

Implementation issues on shrinkage estimators for seasonal factors


within the X-11 seasonal adjustment method
Dominique Ladiray a,1, Benoit Quenneville b,*
a
INSEE, 18 Boulevard Adolphe Pinard, 75014 Paris, France
b
Business Survey Methods Division, Statistics Canada, 120 Parkdale Avenue, 17J-RHC-BSMD, Ottawa, ON, Canada K1A 0T6

Abstract

This commentary on Miller and Williams [Intl. J. Forecast. 20 (2004) 529 – 49] discusses how shrinkage can be implemented
within X12-ARIMA. We discuss how the seasonal factors are estimated in X12-ARIMA, how shrinkage can be translated into a
moving average, if this is compatible with the philosophy behind the X12-ARIMA method, and suggest possible improvements.
D 2004 International Institute of Forecasters. Published by Elsevier B.V. All rights reserved.

Keywords: Shrinkage estimators; Seasonal factors; X-11 seasonal adjustment method

The paper by Miller and Williams (2004) provides The main conclusion is therefore that you can only
two important results when X12-ARIMA estimated win (or gain) when X12-ARIMA estimated seasonal
seasonal factors are shrunk toward either 0 or 1, which factors are shrunk.
are their theoretical mean under the assumption of no Consider the second result. The basic idea is to
seasonality. decompose the series in parts which will be easier to
forecast, in order to improve forecasts. For this pur-
 The first result is that shrinkage reduces the pose, a seasonal adjustment algorithm is used. This
estimation error of the seasonal factors. algorithm is just a tool used to get a plausible decom-
 The second result is related to a three-step position. The tool itself is not that much important: any
forecasting method: (a) estimate the seasonal acceptable decomposition, even a very basic one such
factors with X12-ARIMA and seasonally adjust as the classical decomposition, should improve your
the series, (b) forecast the seasonally adjusted forecasts (see, for example, Miller and Williams,
series using a simple method such as exponential 2003). In this paper, X12-ARIMA is used because it
smoothing, and (c) re-apply the seasonal factors to is a widely used tool which also has a lot of nice
the forecasts. Under this scenario, the result is that features for forecasters such as automatic detection and
shrinkage reduces the forecasting error. correction for outliers and calendar effects. The
authors propose a correction, shrinkage of the seasonal
* Corresponding author. Tel.: +1-613-951-1605; fax: +1-613- factors, to improve the forecasts: basically, forecasting
951-5711. the seasonal component obtained by shrinking is
E-mail address: benoit.quenneville@statcan.ca
(B. Quenneville).
easier. But the purpose of this correction is in fact
1
This work was done while Dominique Ladiray was visiting forecasting, not seasonal adjustment. It is clear that
Statistics Canada. some series should not be seasonally adjusted with

0169-2070/$ - see front matter D 2004 International Institute of Forecasters. Published by Elsevier B.V. All rights reserved.
doi:10.1016/j.ijforecast.2004.03.003
558 D. Ladiray, B. Quenneville / International Journal of Forecasting 20 (2004) 557–560

X12-ARIMA but, for forecasting purposes, it does not values, February values and so on). Next follow a
matter: shrinkage of the X12-ARIMA seasonal factors normalization of the seasonal factors, using a 2  12
reduces the forecasting errors over using them alone. moving average, to assure that they add up to 0
We are most concerned with the first result because (additive decomposition model) or 1 (multiplicative
it points to a possible improvement for the estimation decomposition model) over 12 months. These nor-
of the seasonal factors by X12-ARIMA: this is a very malized seasonal factors are used to obtain a season-
serious point for seasonal adjustment. ally adjusted series, from which a second trend-cycle
One advantage of the proposed shrinkage methods is component is extracted using a Henderson moving
that they can be applied outside X12-ARIMA; conse- average4 instead of the 2  12 moving average. This
quently, X12-ARIMA does not need to be modified, updated trend-cycle component is removed from the
and shrinkage can be applied at the users’ discretion. original series and a new seasonal-irregular compo-
In what follows, we will discuss how shrinkage can nent is obtained. Finally, the seasonal factors are
be implemented within X12-ARIMA. We will discuss obtained with a 3  5 moving average followed with
how the seasonal factors are estimated in X12- normalization using a 2  12 moving average.
ARIMA, how shrinkage can be translated into a The selection of the length of the Henderson
moving average, if this is compatible with the philos- moving average is based on the so-called I/C-ratio,
ophy behind the X12-ARIMA method, and suggest which quantifies the contribution of the irregular
possible improvements. component on the series. A large I/C-ratio calls for
a longer Henderson moving average. The symmetric
Henderson moving average is complemented with a
1. X12-ARIMA seasonal factor estimation set of Musgrave asymmetric averages to allow for
the estimation of the trend-cycle component at the
The estimation of the seasonal factors in X12- end points of the series. Quenneville, Ladiray, and
ARIMA is done within an X11 statement that imple- Lefrancßois (2003) show that Musgrave asymmetric
ments the X11 Variant of the Census Method II averages are obtained by forecasting a linear trend-
Seasonal Adjustment Program (Shiskin et al., 1967). cycle shrinking the estimate of the slope toward
Ladiray and Quenneville (2001) provide a full de- zero.
scription of the X11 variant as it is implemented in The 3  5 moving average can also be replaced by
X12-ARIMA. For the purpose of our comment, we a 3  1, a 3  3 or a 3  9. The choice is done using
only need to summarize the basic algorithm used to an I/S-ratio that quantifies the contribution of the
estimate the seasonal factors. irregular component in the seasonal-irregular. Once
Assume the monthly series can be decomposed again, a large I/S-ratio calls for a longer moving
into trend-cycle (C), seasonal factors (S) and irregular average. These composite symmetric moving aver-
(I) with no extreme value. X112 implements a simple ages are complemented with asymmetric averages to
algorithm to iteratively estimate the components by a allow for the estimation of the most recent seasonal
judicious choice of moving averages. First X11 esti- factors. Only the asymmetric moving averages asso-
mate a trend-cycle with a 2  12 moving average3. ciated with the 3  9 seem to have been derived from
This trend-cycle is then removed from the series to get Musgrave’s formula.
a seasonal-irregular component (SI-ratio). Seasonal At this point, we want to stress the following:
factors are estimated from these SI-ratios with a
3  3 moving average over each month (on January 1. The choice of the length of the moving averages is
based on the contribution of the irregular.
2
We mean the X11 statement of X12-ARIMA.
3 4
A P  Q moving average is obtained by composing a simple Henderson moving averages have been designed to extract a
moving average of order P, whose coefficients are all equal to 1/P, smooth component from a non-seasonal time series, which is the
and a simple moving average of order Q, whose coefficients are all case at this stage of the algorithm. In particular, Henderson moving
equal to 1/Q. In concrete terms, this amounts to applying both averages preserve local quadratic trends, which is not the case with
simple moving averages in succession. a 2  12 moving average.
D. Ladiray, B. Quenneville / International Journal of Forecasting 20 (2004) 557–560 559

2. The filter lengths of the seasonal and trend filters months. This would prevent from possible distortions
are chosen in a data-dependent fashion, but after due to the use of asymmetric filters. Obviously, the
the lengths are determined, there is no further use of moving averages raises the issue of what to do
dependence of the filter weights on the data. at the end of the series with the most recent data
3. The seasonal factors are estimated with moving points, those of interest in current economic analysis.
averages. Finally, official statisticians are very concerned with
data revisions; hence, the impact of shrinkage on
revisions of the seasonal factors after new data be-
2. Shrinkage estimation for the seasonal factors come available has to be investigated.

Now its time to ask the question if the proposed


shrinkage methods can be implemented within X11. 3. Shrinkage as a new diagnostic
One of the features of the shrinkage methods is that it
is based on the contribution of the irregular in the One important conclusion of the authors is that
seasonal-irregular component, like the selection of the X12-ARIMA seasonal factors remain virtually un-
seasonal moving average, but both the James-Stein or damped for series with little random variation and great
Lemon-Krutchkoff shrinkage estimators will produce seasonal variation, see Fig. 1, Series N2337 for an
an overall X11 filter that is data-dependent. This is in example. We conjecture that this will often be the case
contradiction with X11’s philosophy that tries to use a for a large class of ‘‘important’’ time series, especially
small set of data-independent filters to estimate the those that National Statistical Offices (NSO) take great
components in order to minimize revisions. care in measuring with a lot of precision.
The proposed shrinkage methods are applied in a NSO also publishes time series with an important
moving fashion but this need to be revised. To apply irregular component. This is the case for series specific
them in a truly moving manner consistent with X11, to small industrial aggregate or small geographic areas.
the shrinkage weights must be calculated using the The irregular component can sometime be so impor-
past six and future six observations. For example, the tant, that X12-ARIMA concludes that it cannot identify
December seasonal factor would be computed from seasonality. Fig. 1, series N1949 is a typical example of
the values of the previous 6 months, the current such series. So, although X12-ARIMA produces sea-
December values and the values of the next six sonal factors, a careful analysis of X12-ARIMA diag-

Fig. 1. Gain functions of the central X11 moving average, with the 3  5 and a Henderson-type moving average.
560 D. Ladiray, B. Quenneville / International Journal of Forecasting 20 (2004) 557–560

nostics may indicate that it should not be seasonally function of the central X11 moving average as
adjusted. In this case, shrinkage can be used as a shown in Fig. 16. The two moving averages remove
safeguard by re-centering the seasonal factors. This seasonal frequencies but the filter with the Hender-
could lead to a new diagnostic method, but that needs to son-type moving averages preserves better the other
be investigated further. For example, shrinkage reduces frequencies. Sutcliffe (1999) made a similar prop-
the prediction mean square errors for non-seasonal osition, using more complex moving averages.
series over using X12-ARIMA seasonal factors alone, 3. Musgrave derived asymmetric moving averages for
but not as much as not using them at all, which is what both trend-cycle and seasonal factor curves; how-
should have been observed. Additional tables of ever, these moving averages were never imple-
Shrunk Seasonal Factors, and corresponding seasonal- mented in X11 for the seasonal factor estimation
ly adjusted, trend-cycle and irregular series would best except for the 3  9. The asymmetric averages used
fit in a new Part of X11, assuming the concerns raised in for the 3  3, the 3  5 and the 3  7 are simplistic
the previous section can be satisfactorily solved. and we advocate for the use of Musgrave-type’s
asymmetric averages7.
4. The 2  12 used to normalize the seasonal factors
4. Some propositions to improve X11 seasonal performs some shrinkage of the seasonal factors.
factor estimation This is most likely at this stage of the X11
algorithm that shrinkage of the seasonal factors
The simulation experiment made by the authors would be implemented.
concludes that X12-ARIMA consistently overesti-
mates the seasonal variation. The program has several
options which could be used to correct this default in References
some particular cases. For example, a longer compos-
ite moving average, or a different average for each Dagum, E. B. (1988). The X-11-ARIMA/88 Seasonal Adjustment
month can be used. Nevertheless, this is a serious Method, Ottawa. ON: Statistics Canada Methodology Branch.
Ladiray, D., & Quenneville, B. (2001). Seasonal Adjustment with
problem which deserves more attention and we be- the X-11 Method, Springer. New York: Springer-Verlag (Lecture
lieve that the seasonal factor estimation process could Notes in Statistics #158).
be improved. Miller, D. M., & Williams, D. (2003). Shrinkage estimators of time
series seasonal factors and their effect on forecasting accuracy.
International Journal of Forecasting, 19(4), 669 – 684.
1. The procedure to select the composite simple
Miller, D. M., & Williams, D. (2004). Damping seasonal factors:
moving average from the I/S-ratio was set up in Shrinkage estimators for the X12-ARIMA Program. Interna-
X11-ARIMA/80 and modified in X11-ARIMA/88 tional Journal of Forecasting, 20(4), 529 – 549 (this issue).
(Dagum, 1988). Large-scale simulation studies Quenneville, B., Ladiray, D., & Lefrancßois, B. (2003). A note on
should be done to check the adequacy of this Musgrave asymmetrical trend-cycle filters. International Jour-
procedure. nal of Forecasting, 19(4), 727 – 734.
Shiskin, J., Young, A. H., & Musgrave, J. C. (1967). The X-11
2. The rational for using a composite simple moving variant of the Census II method seasonal adjustment program.
average (3  1, a 3  3, a 3  5 or a 3  9) to smooth Washington, DC: US Bureau of the Census (Technical Paper
the seasonal-irregular component has never been No. 15).
clear and these moving averages do not have good Sutcliffe, A., (1999). Seasonal adjustment: Comparison of Philos-
properties, except their simplicity. We suggest using ophies. Canberra, Australia: Working paper in Econometrics and
Applied Statistics No. 99-2, Australian Bureau of Statistics.
Henderson-type moving averages, only preserving
linear trends, in the estimation of the seasonal
component. The use of this kind of moving average5
6
has a surprising and very positive effect on the gain The gain function of an ideal seasonal adjustment moving
average is equal to one everywhere except at seasonal frequencies
(30j, 60j,. . ., 180j) where it is equal to zero.
5 7
The coefficients of the 3-, 5-, 7- and 11-term are all positive. The additional constraint that the resulting coefficients are all
For example, the coefficients of the 7-term are {42, 112, 175, 200, positive has to be added. This is to prevent obtaining a negative
175, 112, 42}/858. factor with a multiplicative decomposition model.

You might also like