# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

Economists and other practitioners are sometimes interested in extracting the global trends and business cycles of a time series, free from the effect of known seasonality. Small movements in the trend can be masked by a seasonal component, a trend with fixed and known periodicity (e.g., monthly or quarterly). The presence of seasonality can make it difficult to compare relative changes in two or more series.

Seasonal adjustment is the process of removing a nuisance periodic component. The result of a seasonal adjustment is a deseasonalized time series. Deseasonalized data is useful for exploring the trend and any remaining irregular component. Because information is lost during the seasonal adjustment process, you should retain the original data for future modeling purposes.

### Deseasonalized Series

Consider decomposing a time series, yt, into three components:

• Trend component, Tt

• Seasonal component, St with known periodicity s

• Irregular (stationary) stochastic component, It

To seasonally adjust a time series, first obtain an estimate of the seasonal component, ${\stackrel{^}{S}}_{t}$. The estimate${\stackrel{^}{S}}_{t}$ should be constrained to fluctuate around zero (at least approximately) for additive models, and around one, approximately, for multiplicative models. These constraints allow the seasonal component to be identifiable from the trend component.

Given ${\stackrel{^}{S}}_{t}$, the deseasonalized series is calculated by subtracting (or dividing by) the estimated seasonal component, depending on the assumed decomposition.

• For an additive decomposition, the deseasonalized series is given by ${d}_{t}={y}_{t}-{\stackrel{^}{S}}_{t}.$

• For a multiplicative decomposition, the deseasonalized series is given by ${d}_{t}={y}_{t}/{\stackrel{^}{S}}_{t}.$

To best estimate the seasonal component of a series, you should first estimate and remove the trend component. Conversely, to best estimate the trend component, you should first estimate and remove the seasonal component. Thus, seasonal adjustment is typically performed as an iterative process. The following steps for seasonal adjustment resemble those used within the X-12-ARIMA seasonal adjustment program of the U.S. Census Bureau [1].

1. Obtain a first estimate of the trend component, ${\stackrel{^}{T}}_{t},$ using a moving average or parametric trend estimate.

2. Detrend the original series. For an additive decomposition, calculate ${x}_{t}={y}_{t}-{\stackrel{^}{T}}_{t}$. For a multiplicative decomposition, calculate ${x}_{t}={y}_{t}/{\stackrel{^}{T}}_{t}$.

3. Apply a seasonal filter to the detrended series,${x}_{t}$, to obtain an estimate of the seasonal component, ${\stackrel{^}{S}}_{t}$. Center the estimate to fluctuate around zero or one, depending on the chosen decomposition. Use an S3×3 seasonal filter if you have adequate data, or a stable seasonal filter otherwise.

4. Deseasonalize the original series. For an additive decomposition, calculate ${d}_{t}={y}_{t}-{\stackrel{^}{S}}_{t}$. For a multiplicative decomposition, calculate ${d}_{t}={y}_{t}/{\stackrel{^}{S}}_{t}.$.

5. Obtain a second estimate of the trend component, ${\stackrel{^}{T}}_{t},$, using the deseasonalized series ${d}_{t}.$ Consider using a Henderson filter [1], with asymmetric weights at the ends of the series.

6. Detrend the original series again. For an additive decomposition, calculate ${x}_{t}={y}_{t}-{\stackrel{^}{T}}_{t}$. For a multiplicative decomposition, calculate ${x}_{t}={y}_{t}/{\stackrel{^}{T}}_{t}$.

7. Apply a seasonal filter to the detrended series, ${x}_{t}$, to obtain an estimate of the seasonal component, ${\stackrel{^}{S}}_{t}$. Consider using an S3×5 seasonal filter if you have adequate data, or a stable seasonal filter otherwise.

8. Deseasonalize the original series. For an additive decomposition, calculate ${d}_{t}={y}_{t}-{\stackrel{^}{S}}_{t}$. For a multiplicative decomposition, calculate ${d}_{t}={y}_{t}/{\stackrel{^}{S}}_{t}.$ This is the final deseasonalized series.

## References

[1] Findley, D. F., B. C. Monsell, W. R. Bell, M. C. Otto, and B.-C. Chen. "New Capabilities and Methods of the X-12-ARIMA Seasonal-Adjustment Program." Journal of Business & Economic Statistics. Vol. 16, Number 2, 1998, pp. 127–152.