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
Move over the chart to read one date. Each row has its own scale: read the numbers on the left.
| Airline passengers | Apple stock price | |
|---|---|---|
| What it is | One number a month, 144 months, 1949 to 1960, in thousands | One closing price per trading day, the last two years of the file, about 500 days |
| Trend | Only goes up | Down, 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 forecaster | A 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. |
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.
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.
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.
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.