# Notes regarding seasonal adjustment

### From Statipedia

## **1) PURPOSE OF SEASONAL ADJUSTMENT**

The purpose of seasonal adjustment is to remove the more or less regular within year patterns often found in economic time series data. This is done to highlight the underlying trend and short run effects of various economic phenomena on the series.

Users of seasonally adjusted data include government officials responsible for formulating economic policy; businesses concerned with economic trends within their industry; and economic researchers.

## **2) SEASONALITY AND ECONOMIC THEORY**

Appropriate shifting of supply and demand curves can cause seasonal effects in a price series. Consider a market for an agricultural commodity, like the one in the graph. Typically, supply will be restricted at Sw during the winter season. However, the curve will shift to the right as more firms enter the industry during the late summer and fall harvest season. Thus prices will be characteristically high or low during different seasons of the year.

The demand curve could also shift for various reasons. Example - heating oil prices increase during the winter due to an increase in demand caused by lower temperatures.

## **3) THE X-11 SEASONAL ADJUSTMENT COMPUTER PACKAGE**

- Developed by the U.S. Bureau of the Census in 1967 - Shiskin, Young and Musgrave.

- First seasonal adjustment software package. It made seasonal adjustment practical in a large scale data production environment.

- Monthly or quarterly data - usually need 8 to 10 years of continuous data.

- X-11 assumes the data is decomposable in one of two ways:

Additive decomposition:

*X*_{t} = *T*_{t} + *S*_{t} + *I*_{t}

*S**A*_{t} = *X*_{t} − *S*_{t} = *T*_{t} + *I*_{t}

Multiplicative decomposition:

*X*_{t} = *T*_{t} * *S*_{t} * *I*_{t}

where:

- X = the original series
- T = trend-cycle component
- S = seasonal component
- I = irregular or random component
- SA= seasonally adjusted series

Note: These are statistical models. An econometric model of supply and demand would be too specialized and not manageable in large-scale data production.

As already discussed, the SEASONAL component models the within year pattern for the series. The TREND can be thought of as the long run or permanent component in the series. The IRREGULAR models the short run or transitory component in the series. A seasonally adjusted series is composed of the trend and irregular and has both the long run and short run effects.

Below are graphs of stylized series for these components:

## **4) OVERVIEW AND ORGANIZATION OF X-11**

**Part A:** The data may be adjusted by "prior adjustment factors" that are supplied by the user. Usually this option is used to adjust for the effects of exogenous events on the series. Example - the series to be seasonally adjusted is monthly production data, and a strike temporarily reduced the level of the series.

**Part B:** Preliminary trading-day adjustment factors (optional) are estimated in this section. Trading-day adjustment refers to cases where the number of weekdays in a month matters. Example - industrial production data. Preliminary weights for adjusting extreme values for the irregular are also estimated. The irregular component is meant to capture a variety of short run economic phenomena.

**Part C:** Final trading-day (optional) and extreme irregular adjustments are estimated for the data.

**Part D:** Final estimates of seasonal factors, trend and irregular components are calculated. Final seasonally adjusted data are also calculated.

**Part E:** Adjustments for extreme values in the original series and the seasonally adjusted series are made in this section. Typically these series are used for diagnostic purposes only.

**Part F:** Various diagnostic measures and quality control statistics are calculated.

**Part G:** Charts of seasonally adjusted series, final trend series, and other series.

## **5) Some Notes on X-11’s Estimation Methods**

## **5.1) X-11’s Extreme Value Adjustment**

• X-11 tries to identify extreme irregular values in parts B and C.

• The first step is to calculate standard errors of the irregular series using a 5-year moving sample of the irregular for each month (quarter).

• Upper and lower critical values for judging the irregulars can be chosen by the user, but the X-11 default values are 1.5 and 2.5 times the corresponding standard error for a given data point.

• Irregulars that are less than the lower critical value are viewed as normal and no adjustment is made. Values that are greater than the lower critical value are viewed as extreme and an adjustment is made. A full adjustment to the irregular is made when it exceeds the upper critical value and a linearly graduated adjustment is made between the lower and upper critical values.

• X-11’s adjustment to the series is:

## **5.2) X-11’s Moving Average Estimators for the Trend and Seasonal Components**

- X-11 uses a variety of moving averages (MA) to estimate the trend and seasonal components. The irregular componen is estimated as a residual. The general form of a moving average is:

- Regression techniques do exist for seasonally adjusting data. However, they do not account for "moving seasonality" (amplitude and phase shifts) as efficiently as moving average methods such as X-11.

- Part D of X-11 contains the most important steps of the seasonal adjustment algorithm. These steps also illustrate the methods used in parts B and C.

• Tables are presented in matrix format - year by month (or quarter).

D1: This table contains the series adjusted for:

- 1) user supplied "prior adjustment factors" from part A.
- 2) trading-day effects, if requested.
- 3) extreme irregular values as calculated in part C.

D2: A 2x12 MA of D1 is computed as a preliminary estimate of the trend component:

1) average every 12 consecutive observations:

2) average every 2 consecutive values of the 12-term averages.

Substituting the 12-term average into the expression for the 2-term average, we obtain the 2x12 MA:

We apply the 2x12 MA to the series:
*M**A*(*X*_{t}) = *M**A*(*T*_{t} + *S*_{t} + *I*_{t}) = *M**A*(*T*_{t}) + *M**A*(*S*_{t}) + *M**A*(*I*_{t})

Under the assumptions:

1) , then *M**A*(*S*_{t}) = 0 -- the sum of every 12 consecutive seasonals is zero for a a process with ‘stable seasonals’.

2) *T*_{t} = *a* + *b**t*, then *M**A*(*T*_{t}) = *a* + *b**t* - a linear trend component.

3) It is a purely random process, then *M**A*(*I**t*)0.

Then *M**A*(*X*_{t}) = *a* + *b**t* = *T*_{t}. That is, table D2 approximates the trend.

D3: This table is not used.

D4: Trend adjusted series is calculated as:

*D*4 = *D*1 − *D*2 = *S* + *I* These are referred to as the SI sums (or ratios for a multiplicative model).

D5: A 3x3 MA (a 5-term MA) is applied to the D4 data for each month separately.
This estimates the seasonal component from the SI sums.

*D*5 = *M**A*(*D*4) = *M**A*(*S*) + *M**A*(*I*)

*M**A*(*I*_{t}) = 0

The weights of this MA have a triangular distribution, where more central observations on S are given more weight. Thus a "smoothed" estimate of S is calculated in this step. Note that this filter will exactly replicate a stable seasonal pattern for and given month because the sum of the weights is 1.

D6: *D*6 = *D*1 − *D*5 = *T* + *I*

This is the original series less the seasonal factor estimates, or a preliminary seasonally adjusted series.

D7: In this step the Henderson (1917) moving average for trend is applied to the data of D6. The Henderson moving average is a symmetric,linear, unbiased filter that maximizes the smoothness of the trend estimates. It exactly replicates a cubic function in time. Asymmetric trend filters in X-11 are derived by minimizing the revision between it and the symmetric Henderson filter. MacCauley (1932), Durbin and Kenny (1982), Laniel (1985), Buszuwski (1989), and Thompson and Gray (1995) further discuss these filters.

D8: D8 = (C19 or B1) - D7 = S + I

B1 = original series adjusted for the user supplied prior adjustments of Part A, if any.

C19 = B1 adjusted for trading-day variation (if requested).

D9: *D*9 = *D*1 − *D*7*S* + *I*
Note that D1 is adjusted for any trading-day and user supplied prior adjustments. This is
also true of C19. However D1 is also adjusted for extreme irregular values whereas C19 is
not. Thus D8 and D9 are not always identical. The table entries for D9 are the values that
are not identical to D8. This highlights the observations that have extreme values for easy reference by the reader.

D10: To the D8 data, with extreme vlues replaced by the D9 entries, a 3x5 MA (a 7-term MA) is applied to the data for each month separately. This step is similar to D5 where a 3x3 MA is used.

*M**A*(*D*8) = *S* (final seasonal factors)

Also in this step seasonal factor forecasts are calculated for the next 12 months according to the formula:

where t is the month of the last year of the sample.

Note that BLS does not use this method of projecting the seasonal factors for the next year. Instead, the last year’s worth of factors are simply repeated.

D11: (C19 or B1) - D10 = T + I

This is the final seasonally adjusted series.