Time Series Plots
Reading Time Series Plots: Trend, Seasonality, Scale and Smoothing
What a time series plot shows
A time series is a sequence of measurements of one quantitative variable taken at successive points in time: daily temperatures, monthly unemployment rates, yearly population counts.
A time series plot puts time on the horizontal axis in chronological order, puts the variable on the vertical axis, plots a point for each observation, and joins consecutive points with line segments.
The line segments matter. They show that consecutive observations belong together in time and make rises and falls easy to follow.
That is also why a time series plot is the wrong display for data that have no natural order: joining the heights of different students with a line would suggest a sequence that does not exist.
Use a time series plot when the same variable is measured repeatedly and the question is how it changes over time.
Use a histogram or boxplot for the distribution of values at one time, a bar or pie chart for categories, and a scatterplot for the relationship between two different quantitative variables.
Chronologically ordered bars can also preserve time order, although a line plot often makes changes easier to follow.
Construction checklist
- Put time in order, and space time points in proportion to the time between them. If measurements are unevenly spaced (a gap of three years among annual values), the axis should show the gap rather than squeeze it.
- Label both axes with units, including the time unit (month, quarter, year).
- Choose the vertical range deliberately and state it clearly (see below).
The components of a time series
Component | What it looks like | Example |
|---|---|---|
Trend | A persistent long-run rise or fall underneath the ups and downs | Gradually increasing average house prices over a decade |
Seasonal variation | A pattern that repeats over a fixed calendar period, such as every 12 months or every 4 quarters | Electricity demand peaking every winter |
Cycles | Longer rises and falls that do not have a fixed period | Economic expansions and recessions lasting several years |
Irregular variation | Unpredictable short-term noise, sometimes a single unusual point | A one-month spike in sales after a supply disruption |
A single series can show several components at once. The skill is to describe each one rather than choosing just one word. A drop after every seasonal peak does not mean there is no upward trend, and a steady trend does not rule out seasonal swings.
Compare like with like
When a series is seasonal, comparing adjacent periods mixes the seasonal swing with any real change.
For example, a ski shop's January revenue will almost always exceed its May revenue, so a fall from January to May says nothing about whether the business is growing.
Compare the same season across years (this January versus last January) to see the underlying change.
Vertical scale and visual impression
A vertical axis that starts well above zero (a truncated axis) magnifies small changes, so a line can climb from the bottom of the plot to the top even when the variable changed by only a few percent.
A truncated axis is not wrong in itself; it is often the only way to see real detail. It becomes misleading when the reader judges the size of the change from the height of the line.
The cure is to read the numbers on the axis and compute the change: absolute change = new − old, and percentage change = (new − old)/old × 100%.
Smoothing with a moving average
A moving average replaces each point with the mean of a window of consecutive observations and then slides the window forward one step. For instance, the three-month moving average of monthly values 12, 15 and 18 is (12 + 15 + 18)/3 = 15, and the next one drops the 12 and adds the fourth month.
- Averaging reduces irregular noise.
- If the window covers one or more complete seasonal periods (for example, 4 or 8 quarters), every window contains each season equally often. When the seasonal effects are approximately stable and additive, the same amount added to or taken from the level in each Q1, each Q2, and so on, year after year, those effects average out in every window, so the moving averages track the trend.
- A whole-period window is not sufficient on its own. If the seasonal amplitude changes, or seasonal effects are multiplicative and the underlying level changes, a whole-period moving average can retain seasonal variation. Check the smoothed values rather than assuming the window removes it. Quarterly values 90, 100, 110, 100 followed by 80, 100, 120, 100 hold a steady level of 100, yet their successive four-quarter averages are 100, 97.5, 97.5, 100, 100: the smoothed series dips and recovers although the level never moved.
- If the window length is not an integer multiple of the seasonal period, successive windows generally contain different mixes of seasons, leaving a seasonal ripple in the smoothed series.
A trailing moving average is placed at the last period in its window; a centred one is placed in the middle. Either way, state which you are using.
The table gives a café's ice-cream sales, in thousands of dollars, for each quarter from 2021 to 2024. A time series plot of these 16 values is being prepared.
Year | Q1 | Q2 | Q3 | Q4 |
|---|---|---|---|---|
2021 | 40 | 55 | 90 | 50 |
2022 | 46 | 62 | 98 | 56 |
2023 | 51 | 68 | 105 | 61 |
2024 | 57 | 74 | 113 | 67 |
Which description of the time series is best supported by the data?
A school newsletter shows a time series plot of total enrolment with the headline "Enrolment soars." The plotted values are:
Year | 2019 | 2020 | 2021 | 2022 | 2023 |
|---|---|---|---|---|---|
Enrolment | 4820 | 4845 | 4861 | 4890 | 4910 |
The vertical axis runs from 4800 to 4920 and is clearly labelled, so the line climbs from near the bottom of the plot to near the top. Which interpretation is most accurate?