Skip to content

Seasonal adjustment and calendar effects

In the app: Help → Help contents, Seasonal adjustment and calendar effects.

Monthly and quarterly data move with the seasons: retail sales rise before Christmas, construction slows in winter, tourism peaks in the dry season. Seasonal adjustment removes the regular within-year pattern so that underlying movements can be seen and compared from one period to the next.

STL (seasonal-trend decomposition by LOESS) fits the seasonal pattern with local regressions, letting it change slowly; a longer seasonal smoother keeps it more stable, and the robust option stops outliers from distorting it. X-13ARIMA-SEATS, the US Census Bureau's program used by most statistical offices, first fits an ARIMA model (extending the series with forecasts, correcting outliers and, if asked, trading-day and Easter effects), then applies the X-11 moving-average filters (multiplicative, additive, pseudo-additive or log-additive; filters chosen by X-13 or set) or SEATS, which derives the filters from the ARIMA model itself. TRAMO-SEATS, from the Bank of Spain and the standard in Europe, does the same with TRAMO's model: here as Eurostat's JDemetra+ computes it, from its predefined specifications (RSA0, the airline model in levels, to RSAfull, with an automatic model, outliers, trading days and Easter), which any setting can change. The classical decomposition takes a centred moving average as the trend and averages each season's deviation from it, so its seasonal pattern never changes.

Multiplicative adjustment, used for positive series, treats the seasonal effect as a percentage (a factor around 1); additive adjustment treats it as an amount. Months differ in their numbers of each weekday, and Easter moves between March and April: calendar regressors capture these effects, in regressions or in X-13.

In an equation, seasonal() adds seasonal dummies: one 0/1 regressor per quarter of quarterly data or month of monthly data, leaving out the first when the equation has a constant (named seasonal[Q2], seasonal[Q3], ...; with - 1 every season has one). C(quarter) and C(month) do the same with the quarter or month taken from the dates. C(g, base="b") leaves out the level b instead of the first, as R's relevel and patsy's Treatment(reference="b"): the fit is the same, the coefficients are each level's difference from b. The dummies follow each observation's period, whatever the sample's start; a Wald test of them all being zero (seasonal[Q2] = 0, seasonal[Q3] = 0, seasonal[Q4] = 0) tests for deterministic seasonality.

Adjusted series are revised as new data arrive, because two-sided filters use observations on both sides; this is why adjusted series here are derived series, recomputed when the original changes.

See also

References

  • Cleveland, R. B., Cleveland, W. S., McRae, J. E. and Terpenning, I. (1990). STL: a seasonal-trend decomposition procedure based on loess. Journal of Official Statistics 6. (search)
  • Findley, D. F., Monsell, B. C., Bell, W. R., Otto, M. C. and Chen, B.-C. (1998). New capabilities and methods of the X-12-ARIMA seasonal-adjustment program. Journal of Business and Economic Statistics 16(2), 127-152. doi:10.1080/07350015.1998.10524743
  • US Census Bureau (2017). X-13ARIMA-SEATS Reference Manual, version 1.1. (search)
  • Ladiray, D. and Quenneville, B. (2001). Seasonal Adjustment with the X-11 Method. Springer. doi:10.1007/978-1-4613-0175-2
  • Gómez, V. and Maravall, A. (1996). Programs TRAMO and SEATS: instructions for the user (beta version: September 1996). Banco de España working paper 9628. (search)
  • Eurostat (2015). ESS Guidelines on Seasonal Adjustment. (search)