## 3.4 Classical decomposition

The classical decomposition method originated in the 1920s. It is a relatively simple procedure, and forms the starting point for most other methods of time series decomposition. There are two forms of classical decomposition: an additive decomposition and a multiplicative decomposition. These are described below for a time series with seasonal period $$m$$ (e.g., $$m=4$$ for quarterly data, $$m=12$$ for monthly data, $$m=7$$ for daily data with a weekly pattern).

In classical decomposition, we assume that the seasonal component is constant from year to year. For multiplicative seasonality, the $$m$$ values that form the seasonal component are sometimes called the “seasonal indices”.

Step 1
If $$m$$ is an even number, compute the trend-cycle component $$\hat{T}_t$$ using a $$2\times m$$-MA. If $$m$$ is an odd number, compute the trend-cycle component $$\hat{T}_t$$ using an $$m$$-MA.
Step 2
Calculate the detrended series: $$y_t - \hat{T}_t$$.
Step 3
To estimate the seasonal component for each season, simply average the detrended values for that season. For example, with monthly data, the seasonal component for March is the average of all the detrended March values in the data. These seasonal component values are then adjusted to ensure that they add to zero. The seasonal component is obtained by stringing together these monthly values, and then replicating the sequence for each year of data. This gives $$\hat{S}_t$$.
Step 4
The remainder component is calculated by subtracting the estimated seasonal and trend-cycle components: $$\hat{R}_t = y_t - \hat{T}_t - \hat{S}_t$$.

Figure 3.13 shows a classical decomposition of the total retail employment series across the US.

us_retail_employment %>%
model(
) %>%
components() %>%
autoplot() +
labs(title = "Classical additive decomposition of total
US retail employment") Figure 3.13: A classical additive decomposition of US retail employment.

### Multiplicative decomposition

A classical multiplicative decomposition is similar, except that the subtractions are replaced by divisions.

Step 1
If $$m$$ is an even number, compute the trend-cycle component $$\hat{T}_t$$ using a $$2\times m$$-MA. If $$m$$ is an odd number, compute the trend-cycle component $$\hat{T}_t$$ using an $$m$$-MA.
Step 2
Calculate the detrended series: $$y_t/ \hat{T}_t$$.
Step 3
To estimate the seasonal component for each season, simply average the detrended values for that season. For example, with monthly data, the seasonal index for March is the average of all the detrended March values in the data. These seasonal indexes are then adjusted to ensure that they add to $$m$$. The seasonal component is obtained by stringing together these monthly indexes, and then replicating the sequence for each year of data. This gives $$\hat{S}_t$$.
Step 4
The remainder component is calculated by dividing out the estimated seasonal and trend-cycle components: $$\hat{R}_{t} = y_t /( \hat{T}_t \hat{S}_t)$$.

• The estimate of the trend-cycle is unavailable for the first few and last few observations. For example, if $$m=12$$, there is no trend-cycle estimate for the first six or the last six observations. Consequently, there is also no estimate of the remainder component for the same time periods.