← Module 11 overview
Module 11 · Project 6 · Due the date on Canvas · Time-Series Visualization · adaptive competency DV19

Build a series from trend, seasonality, and an irregular term

Module 11 · Step 2 of 9 · Guided8–10 min

Why this lab Build a series from trend, seasonality, and an irregular term, and observe what each component contributes.

A time series can combine a long-run direction, repeating cycles, and irregular variation. Adjust each component until the series matches the stated target pattern. Classical seasonal adjustment procedures, such as the moving-average filters of the Census X-11 program, can be justified approximately by an additive model of this kind with trend, seasonal and irregular components (Cleveland & Tiao, 1976).

Additive model\(y_t=T_t+S_t+e_t\)Use an additive view when seasonal swings remain roughly constant in size.

This lab constructs a synthetic additive series using a linear trend, a fixed six-period sine cycle and a deterministic oscillatory irregular term. It does not estimate these components from real observations or simulate independent random errors.

When the swings grow with the level. If the seasonal swing widens as the series rises, the components multiply, \( y_t = T_t \times S_t \times e_t \), and a seasonal effect is a proportion of the level rather than a fixed amount. For a series with positive values, the logarithm turns the product into a sum, \( \log y_t = \log T_t + \log S_t + \log e_t \), so the additive methods of this module apply to \( \log y_t \). Differencing is a second transformation: the first difference \( y_t - y_{t-1} \) removes a linear trend, and the lag-12 difference \( y_t - y_{t-12} \) removes a fixed monthly pattern. Each transformation changes what the plotted quantity means, so a caption names it.

Signal decomposition lab loading…