Module 1 · Demystifying Time Series Data and Modeling

Take a Series Apart

Decomposition breaks a series into parts, so you can look at each one alone: the trend, the seasonality, and the remainder. Do it for the airline passengers and for the Apple stock price, and you see why one of them is easy to forecast and the other is not.

Goes with Deep Forecasting, Module 1, Part 1: time series basics

Series
Recipe
Order of the values
Same numbers, random order. Press Shuffled again for a new order.

The series, taken apart

Move over the chart to read one date. Each row has its own scale: read the numbers on the left.

One season, up close

The season explains-of what is left once the trend is removed
Highest-
Lowest-
Remainder, early then late-

The two series of the course, side by side additive recipe, in time order

Airline passengersApple stock price
What it isOne number a month, 144 months, 1949 to 1960, in thousandsOne closing price per trading day, the last two years of the file, about 500 days
TrendOnly goes upDown, up, and up again: almost a copy of the data
The season explains of what the trend leaves of what the trend leaves
Size of the season
For a forecasterA trend and a season you can copy forward. That is why a year ahead is within 3 percent with no model at all.Nothing that repeats. Whatever moves this price sits in the trend, and the trend does not repeat.

1 · Trend, seasonality, remainder

The trend is the long-run direction, with the wiggles averaged out. It can go up, go down, stay flat, or turn. Seasonality is a pattern that repeats with a fixed, known length: every 12 months, every 7 days. The remainder is whatever is left.

2 · Additive or multiplicative?

If the seasonal swings stay the same size as the series grows, add the parts. If they grow with the level, multiply them. With the airline, the additive remainder swings more in the later years. That is the sign: July is not 64 thousand above the trend, it is 23 percent above it.

3 · How the trend row is made

Each point of the trend is the average of one full season around it: 6 months on each side for the airline. Averaging a whole season cancels the season. It is also why the trend has no value in the first and the last half season.

4 · A series lives in its order

Press Shuffled. The numbers are the same, but the trend goes flat and the season disappears. A time series carries its information in the order of its values, like the words of a sentence. Next: how strongly is each value tied to the ones before it? See ACF and PACF, bar by bar.