Time series analysis
Time series analysis studies a set of observations recorded in time order, such as monthly sales or daily balances, to describe its structure: trend, seasonal pattern, dependence between neighbouring values and random remainder. The description supports explanation, monitoring and forecasting.
What it is
Time series analysis is the statistical study of a time series, a sequence of observations of one quantity taken in time order, usually at regular intervals. Order matters: neighbouring values tend to resemble one another, so the methods for independent observations do not apply directly.
A series is commonly described by four parts:
- Trend: the slow, long-run movement of the level.
- Seasonal pattern: a regular rise and fall that repeats within a fixed period, such as a year or a week.
- Cycle: longer swings of uneven length.
- Irregular part: the random remainder once the other parts are removed.
The National Institute of Standards and Technology (NIST) lists decomposing a series into trend, seasonal and residual components as one common approach. It also lists frequency-domain methods, which use a spectral plot, and autoregressive and moving average models.
Two ideas recur. Autocorrelation is the correlation between a series and a lagged copy of itself, and it measures how strongly past values relate to later ones. Stationarity means that the mean, variance and autocorrelation structure do not change over time. NIST states that stationarity can usually be judged from a run sequence plot, and that differencing can make a series with a trend closer to stationary.
Additive decomposition writes each value as trend plus seasonal plus irregular. Multiplicative decomposition multiplies the parts, which suits series whose seasonal swings grow with the level.
Why it matters
Sales, balances and prices are recorded over time, and a movement in such a series can come from trend, season or noise. Reading a raw figure without separating them leads to wrong conclusions, such as treating a seasonal peak as growth.
The analysis gives a description of the series that forecasting, anomaly detection and reporting build on.
Worked example
Illustrative numbers. A business records quarterly sales for two cycles of four quarters: 100, 120, 140, 120 and then 110, 132, 150, 128.
- The average of the first cycle is 120 and of the second is 130, so the trend rises by 10 per cycle.
- Each quarter is compared with its cycle average. The first quarter is 20 below in both cycles, and the third quarter is 20 above in both.
- The seasonal estimates are about minus 20, 1, 20 and minus 1 for the four quarters.
- What remains after trend and season, at most 1 in any quarter, is the irregular part.
Subtracting the seasonal estimate from each value gives a seasonally adjusted series, which shows the underlying movement without the repeating pattern.
How to read it
A trend component shows direction, a seasonal component shows the repeating shape, and the irregular part shows how noisy the series is. Large irregular values flag observations that the other components do not explain. A residual that still shows autocorrelation signals that structure remains in the series.
Assumptions
- The pattern observed in the past, including its seasonal period, continues to describe the series.
- Observations are recorded at consistent intervals, with gaps handled explicitly.
- Many models require the series, or a transformed version of it, to be stationary.
Who uses it
- Data analysts and data scientists decompose business series and test for structure.
- Statisticians produce seasonally adjusted figures and fit time series models.
- Economists and macro research analysts read trend and cycle in economic indicators.
- FP&A and commercial finance analysts separate seasonality from growth before setting forecasts.
- Corporate treasury analysts study the pattern of cash balances and flows.
Common confusions
- Time series analysis is not forecasting. Analysis describes the structure of the series, and forecasting extends it forward.
- A seasonal pattern repeats within a fixed period, whereas a cycle has no fixed length.
- A rising value is not always a trend. It can be a seasonal peak that the next period reverses.
- Correlation between two trending series can arise from the trends alone, without any link between them.