mastree

Features of a time series

What this lesson covers

  • The trend is the long-run direction.
  • Seasonality repeats at a fixed period.
  • An additive model is data = trend + seasonal + residual.
Key idea

See it first

  • Always graph a time series before calculating. The eye finds the trend and the repeating pattern quickly.
  • These are the Kōwhai Café sales from the table below.
A line graph of eight quarters of café sales rising overall, with Q4 high and Q1 low each year, and an orange trend line.
Key idea

Try it: forecast a quarter

Key idea

The parts

  • Trend: the overall movement, up, down or flat.
  • Seasonal: a pattern repeating every year or week.
  • Residual: what is left over.
  • Outliers: unusual values with a reason worth finding.
Key idea

Try it: trend and season

Worked example

Reading a series

  • Quarterly sales for Kōwhai Café, a made-up example.
QuarterQ1Q2Q3Q4
Year 140605070
Year 248685878
Worked example

What it shows

  • Compare the same quarter across the years.
  1. Each quarter rises by 8 in a yearan upward trend
  2. Q4 is always highest and Q1 lowesta seasonal pattern
Worked example

The additive model

  • Each value is built from its parts. For Y2 Q1, the trend is 60 and the seasonal effect is −12.
  1. data = trend + seasonal + residual
  2. 48 = 60 + (−12) + residual
  3. residual = 0
Key idea

When the swings grow

  • An additive model assumes the seasonal swing stays the same size.
  • If the December spike gets bigger each year as sales grow, a fixed effect will not fit, so say so in your report.
Key idea

Try it: take the series apart

Common mistakes

  • Comparing Q1 with Q2 to judge the trend.
    Seasons get in the way, so compare the same quarter.
  • Describing the graph with no context.
    Use the units and the real meaning.

Your turn

1

Sales rise slowly over ten years. Which feature is that?

2

A single high value follows a one-off festival. Which feature is that?

3

Trend 80, seasonal +5, residual −1. Find the data value.

4

Which comparison best shows the trend?

5

Kōwhai Café sales ($000) were Q1 40, Q3 50 in Year 1 and Q1 48, Q3 58 in Year 2. Describe the trend.

6

In a quarter the sales are 61, the trend is 64 and the seasonal effect is −6. Find the residual.

7

The Q4 seasonal effect for Kōwhai Café is +12 ($000). What does it mean in context?

8

A Queenstown ski shop's winter peaks sit 50, then 100, then 200 ($000) above the trend as sales grow. What should the report say?

Show answer

1. The trend 2. An outlier 3. 80 + 5 − 1 = 84 4. The same quarter in different years 5. Up $8,000 a year. The same quarter rises by 8 ($000) from Year 1 to Year 2, in both Q1 and Q3. 6. 3. residual = data − trend − seasonal = 61 − 64 − (−6) = 3. 7. Q4 sales are about $12,000 above the trend. A seasonal effect compares a season with the trend, not with another quarter. 8. The swing grows, so a fixed seasonal effect will not fit. An additive model assumes the seasonal swing stays the same size.

Your turn

Sample question: Achieved

A Rotorua backpackers records its guest nights each quarter, in hundreds. Year 1: Q1 52, Q2 38, Q3 30, Q4 44. Year 2: Q1 56, Q2 42, Q3 34, Q4 48. Describe the trend and the seasonal pattern, using numbers and the context.

Hint

For the trend, compare each quarter with the same quarter a year earlier. For the season, look for the quarter that is highest and lowest each year.

Answer

Guest nights are rising: every quarter in Year 2 is 400 guest nights higher than the same quarter in Year 1. There is a clear seasonal pattern: Q1 (summer) is the busiest quarter each year, at 5200 then 5600 guest nights, and Q3 (winter) is the quietest, at 3000 then 3400.

Step by step
  1. A time series has two main features to describe: the long-run trend and the pattern that repeats each year.
  2. For the trend, compare like with like: Q1 with Q1, Q2 with Q2, and so on. That keeps the seasons out of the comparison.
  3. Q1 went from 52 to 56, Q2 from 38 to 42, Q3 from 30 to 34 and Q4 from 44 to 48. Each one rose by 4.
  4. The values are in hundreds, so each quarter rose by 400 guest nights in a year. The trend is upward.
  5. Classic mistake: comparing Q1 with Q2 of the same year to judge the trend. That fall from 52 to 38 is the season, not the trend.
  6. For the season, look within each year: Q1 is the highest both years and Q3 is the lowest both years.
  7. In context, Q1 is January to March, the summer holidays, and Q3 is July to September, winter.
  8. Write it with numbers and units: guest nights, not just values.
  9. Check: the pattern high, low, lowest, middle repeats in both years, so it really is seasonal.
Full working
  1. Y2 − Y1 for each quarter: 56 − 52 = 42 − 38 = 34 − 30 = 48 − 44 = 4same quarter, a year apart
  2. 4 hundred = 400 guest nights a yearupward trend
  3. Q1 highest (52, 56), Q3 lowest (30, 34) both yearsseasonal pattern
  4. Rising by 400 guest nights a year; summer Q1 peak, winter Q3 low
Your turn

Sample questions: Merit

1

For the Rotorua backpackers data (Year 1: 52, 38, 30, 44; Year 2: 56, 42, 34, 48, in hundreds of guest nights), use the yearly totals to estimate how fast the trend is rising per quarter. Explain why using yearly totals removes the seasonal effect.

Hint

Add each year's four quarters, then compare the average quarter in Year 1 with the average quarter in Year 2. They are four quarters apart.

Answer

Year 1 averages 41 hundred a quarter and Year 2 averages 45 hundred, so the trend rises about 4 hundred over 4 quarters, about 100 guest nights a quarter. A full year contains each season once, so the high and low seasons cancel inside each total.

Step by step
  1. Add each year: Year 1 is 52 + 38 + 30 + 44 = 164. Year 2 is 56 + 42 + 34 + 48 = 180.
  2. Average quarter: 164 ÷ 4 = 41 in Year 1 and 180 ÷ 4 = 45 in Year 2.
  3. The two averages sit at the middle of each year, which are 4 quarters apart.
  4. So the trend rose by 45 − 41 = 4 hundred over 4 quarters, which is 1 hundred, or 100 guest nights, each quarter.
  5. Classic mistake: dividing the rise of 4 by 8 quarters, the total number of quarters, instead of the 4 quarters between the two middles.
  6. Why the season disappears: each yearly total has exactly one Q1, one Q2, one Q3 and one Q4.
  7. The seasonal effects add to zero over a year, so the busy summer and quiet winter cancel out inside the total.
  8. So what changes from one year's total to the next is the trend, not the season.
  9. Check: this matches the same-quarter comparison, where each quarter rose by 4 hundred in a year.
Full working
  1. Y1 total 164, Y2 total 180add each year
  2. 164 ÷ 4 = 41, 180 ÷ 4 = 45average quarter
  3. (45 − 41) ÷ 4 = 1 hundredmiddles are 4 quarters apart
  4. each total holds one of each season, effects add to 0why it works
  5. Trend rises about 100 guest nights a quarter
2

For the backpackers, the additive model uses data = trend + seasonal effect + residual. The Q2 seasonal effect is −2.5 hundred. In Year 3 Q2 the trend is 48.5 hundred, but the actual figure was 61 hundred guest nights, because a large festival came to town. Find the residual and say what kind of feature it is. Should this quarter be used to update the Q2 seasonal effect? Explain.

Hint

Rearrange the model: residual = data − trend − seasonal effect. Then ask whether the cause will happen again every year.

Answer

Residual = 61 − 48.5 − (−2.5) = 15 hundred, so 1500 guest nights more than the model expected. It is an outlier with a one-off cause. It should not be used to update the Q2 effect, because the festival is not part of the normal yearly pattern; note it and leave it out.

Step by step
  1. Start from the model: data = trend + seasonal + residual. So residual = data − trend − seasonal.
  2. Substitute: residual = 61 − 48.5 − (−2.5).
  3. Subtracting a negative adds: 61 − 48.5 + 2.5 = 15 hundred.
  4. Classic mistake: 61 − 48.5 − 2.5 = 10, forgetting that the seasonal effect is negative.
  5. In context, Year 3 Q2 had about 1500 guest nights more than the trend and season predict.
  6. Most residuals for this backpackers are 0 or close to 0, so 15 hundred is very large. It is an outlier.
  7. There is a known reason: a festival, a one-off event.
  8. A seasonal effect describes what happens every year in that quarter. If we averaged this Q2 in, the Q2 effect would rise and every future Q2 forecast would be too high.
  9. So keep the data point in the record, explain the festival in the report, and leave it out when estimating the Q2 seasonal effect.
  10. If the festival becomes a yearly event, that would change: then it would become part of the Q2 pattern.
Full working
  1. residual = data − trend − seasonal
  2. 61 − 48.5 − (−2.5) = 15 hundredsubtract a negative
  3. 1500 guest nights above the modeloutlier
  4. one-off festival, not a yearly patterndo not average into Q2
  5. Residual 15 hundred; an outlier, so do not use it to update the Q2 effect
Your turn

Sample questions: Excellence

1

A gift shop's quarterly sales, in thousands of dollars, are: Year 1: 20, 30, 40, 70. Year 2: 30, 45, 60, 105. Year 3: 45, 68, 90, 157. Is an additive model suitable for this series? Justify your answer with calculations, and suggest what to do instead.

Hint

Find each year's average quarter, then see how far Q4 sits above it each year. In an additive model that gap should stay about the same.

Answer

No. Q4 sits 30, then 45, then 67 thousand above the yearly average of 40, 60 and 90 thousand, so the seasonal swing grows as sales grow. In each year Q4 is about 1.75 times the average, so the season is a fixed percentage, not a fixed amount. A multiplicative model (data = trend × seasonal factor) would suit it better.

Step by step
  1. An additive model says each quarter sits a fixed amount above or below the trend, the same every year. So test whether the gaps stay the same.
  2. Use each year's average quarter as a rough trend. Year 1: (20 + 30 + 40 + 70) ÷ 4 = 40. Year 2: 240 ÷ 4 = 60. Year 3: 360 ÷ 4 = 90.
  3. Q4 above the average: 70 − 40 = 30, then 105 − 60 = 45, then 157 − 90 = 67.
  4. The Q4 gap grows from 30 to 45 to 67 thousand. Q1 does the same in the other direction: −20, −30, −45.
  5. So the swing is not a fixed size. An additive model would use one Q4 effect for every year, about the average of 30, 45 and 67.
  6. That would under-forecast future Q4 sales, and the residuals would show a pattern: negative early, positive late.
  7. Look at ratios instead: 70 ÷ 40 = 1.75, 105 ÷ 60 = 1.75, 157 ÷ 90 ≈ 1.74. Q4 is about 1.75 times the average every year.
  8. Classic mistake: judging the model from the graph's shape alone. Show the numbers that prove the swing grows.
  9. So the seasonal effect is a percentage of the trend, not a fixed amount. A multiplicative model, data = trend × seasonal factor, fits this.
  10. Limitation: three years is a short series, so the factor of about 1.75 is only an estimate. More years would show whether it holds.
Full working
  1. yearly averages 40, 60, 90rough trend
  2. Q4 − average: 30, 45, 67the swing grows
  3. Q1 − average: −20, −30, −45the swing grows
  4. Q4 ÷ average: 1.75, 1.75, 1.74a steady ratio
  5. growing swings break the additive assumptionresiduals would show a pattern
  6. Not additive; Q4 is about 1.75 × trend each year, so use a multiplicative model
2

A council studies monthly water use in a town from 2019 to 2023. The April seasonal estimates (April data minus trend) for the five years are −12, −47, −13, −11 and −12 megalitres (ML). The −47 is April 2020, when a COVID-19 lockdown closed businesses. Calculate the April seasonal effect with and without 2020, decide which one to use, and explain how this choice affects a forecast for April 2026.

Hint

Average all five, then average the four normal years. Ask whether the cause of the 2020 value will happen again every April.

Answer

With 2020 the April effect is −19 ML; without it, −12 ML. Use −12 ML: the lockdown was a one-off cause, not part of the yearly pattern, and the other four Aprils agree closely. Using −19 would pull the April 2026 forecast down by 7 ML, an underestimate that could lead the council to under-plan supply. The 2020 value should be kept in the record and reported as an outlier.

Step by step
  1. A seasonal effect should describe what happens in that month every year, so we average the yearly estimates.
  2. All five years: (−12 − 47 − 13 − 11 − 12) ÷ 5 = −95 ÷ 5 = −19 ML.
  3. Without 2020: (−12 − 13 − 11 − 12) ÷ 4 = −48 ÷ 4 = −12 ML.
  4. So the one unusual April moves the effect by 7 ML, more than half as much again.
  5. The other four Aprils are all between −13 and −11. They agree closely, so −12 is a good estimate of a normal April.
  6. April 2020 has a known, one-off cause: the lockdown closed businesses that use water. That will not repeat every April.
  7. Classic mistake: deleting the 2020 value from the data without saying so. Keep it, label it as an outlier with its reason, and leave it out of the seasonal estimate.
  8. Effect on the forecast: forecast = trend + seasonal effect. Using −19 instead of −12 makes the April 2026 forecast 7 ML lower.
  9. That would underestimate demand, and the council could plan too little water supply.
  10. Limitation: April 2026 is over two years past the data, so even with −12 the forecast assumes the trend keeps going. It should be updated as new data arrives.
Full working
  1. (−12 − 47 − 13 − 11 − 12) ÷ 5 = −19 MLall five years
  2. (−12 − 13 − 11 − 12) ÷ 4 = −12 MLwithout 2020
  3. difference 7 ML from one monthan outlier
  4. lockdown is one-off, the other Aprils agreeuse −12
  5. −19 would lower the 2026 forecast by 7 MLunderestimate
  6. Use −12 ML; report April 2020 as an outlier with its cause
Summary

What to take away

  • Trend, seasonal, residual.
  • Always write in context.

Challenge

1

A Wānaka ski hire shop's quarterly takings, in thousands of dollars, fit an additive model exactly: a straight-line trend plus a seasonal effect, with no residuals. Year 1: Q1 20, Q2 41, Q3 70, Q4 33. Year 2 Q1 was 28. Find how much the trend rises each quarter, find all four seasonal effects, and forecast Year 3 Q3.

Hint

Compare Year 2 Q1 with Year 1 Q1 to get the trend's rise per quarter. Then ask where in the year the Year 1 average quarter really sits: at Q1, at Q4, or somewhere in between?

Answer

The trend rises 2 thousand a quarter. Seasonal effects: Q1 −18, Q2 +1, Q3 +28, Q4 −11 (thousand dollars). Year 3 Q3 forecast: 58 + 28 = 86 thousand dollars.

Step by step
  1. Same quarter a year apart: 28 − 20 = 8 thousand over 4 quarters, so the trend rises 2 thousand each quarter.
  2. The Year 1 average is (20 + 41 + 70 + 33) ÷ 4 = 41. The seasonal effects add to zero over a year, so this is the trend at the middle of Year 1, halfway between Q2 and Q3.
  3. Step out from the middle by half a quarter and one and a half quarters: the trend is 38 at Q1, 40 at Q2, 42 at Q3 and 44 at Q4.
  4. Seasonal effect = data − trend: 20 − 38 = −18, 41 − 40 = +1, 70 − 42 = +28, 33 − 44 = −11. They add to 0, as they must.
  5. Classic mistake: using 41 as the trend for every quarter of Year 1. That ignores the rise within the year and gives −21, 0, +29, −8, which do not fit Year 2.
  6. Year 3 Q3 is 8 quarters after Year 1 Q3, so its trend is 42 + 8 × 2 = 58, and the forecast is 58 + 28 = 86 thousand dollars, the winter ski peak.
Full working
  1. (28 − 20) ÷ 4 = 2same quarter, 4 quarters apart
  2. (20 + 41 + 70 + 33) ÷ 4 = 41trend halfway between Q2 and Q3
  3. trend 38, 40, 42, 44 at Q1 to Q441 − 3, 41 − 1, 41 + 1, 41 + 3
  4. effects 20 − 38 = −18, 41 − 40 = 1, 70 − 42 = 28, 33 − 44 = −11data − trend
  5. −18 + 1 + 28 − 11 = 0check
  6. Y3 Q3 trend = 42 + 8 × 2 = 588 quarters on
  7. Rise 2 a quarter; effects −18, +1, +28, −11; Year 3 Q3 forecast 86 thousand dollars
2

A Kaikōura whale-watch company records passengers each quarter, in hundreds. Year 1: 58, 43, 29, 60. Year 2: 70, 55, 14, 72. Year 3: 82, 67, 53, 84. The series follows an additive model with a straight-line trend and almost no residuals, except that one value was typed wrongly. Find the wrong value and its likely true value. Then find the trend's rise per quarter, the Q3 seasonal effect, and the residual the recorded value would have.

Hint

Work out every same-quarter change, Year 1 to Year 2 and Year 2 to Year 3. One wrong value upsets two of those changes, in opposite directions. Take care which yearly average you trust afterwards.

Answer

Year 2 Q3 should be 41, not 14 (two digits swapped). The trend rises 3 hundred a quarter, the Q3 effect is −20 hundred, and the recorded 14 would have a residual of 14 − 41 = −27 hundred, that is 2700 passengers.

Step by step
  1. Year-on-year changes are 12 for every quarter except Q3, where they are 14 − 29 = −15 and then 53 − 14 = +39.
  2. Only the Year 2 Q3 value appears in both of those odd changes, so it is the wrong one. Year 1 to Year 3 for Q3 is 53 − 29 = 24, which is 12 a year, like the rest.
  3. The true value should be 29 + 12 = 41, which also gives 53 − 41 = 12. The digits of 41 were swapped to 14.
  4. The trend rises 12 a year, so 3 hundred a quarter. Use Year 1's average, not Year 2's (the typo spoils it): (58 + 43 + 29 + 60) ÷ 4 = 47.5, the trend halfway between Q2 and Q3.
  5. So the trend at Year 1 Q3 is 47.5 + 1.5 = 49, and the Q3 effect is 29 − 49 = −20. At Year 2 Q3 the trend is 49 + 12 = 61, so the fitted value is 41.
  6. Recorded residual: 14 − 41 = −27 hundred. A residual that large, with no reason behind it, is a sign to check the record, not a real feature of the series.
Full working
  1. Y2 − Y1: 12, 12, −15, 12same quarter
  2. Y3 − Y2: 12, 12, 39, 12same quarter
  3. Y2 Q3 is in both odd changes; 29 + 12 = 41 = 53 − 12true value 41
  4. 12 ÷ 4 = 3 hundred a quartertrend
  5. (58 + 43 + 29 + 60) ÷ 4 = 47.5; trend at Y1 Q3 = 47.5 + 1.5 = 49Year 1 is clean
  6. Q3 effect = 29 − 49 = −20data − trend
  7. fitted Y2 Q3 = 61 − 20 = 41; residual = 14 − 41 = −27recorded value
  8. Y2 Q3 should be 41; trend +3 hundred a quarter; Q3 effect −20; recorded residual −27 hundred
3

A Dunedin shop's DVD sales, in hundreds, are falling. Year 1: Q1 40, Q2 72, Q3 88, Q4 120. Year 2: 30, 54, 66, 90. Year 3: 20, 36, 44, 60. Using each year's average quarter as a rough trend, find the Q1 seasonal effect an additive model would use, and use it to forecast Year 4 Q1 if the yearly average keeps falling at the same rate. Explain what the result shows about the additive model, and give a better forecast.

Hint

Find the yearly averages and how far Q1 sits below each one. Then look at Q1 as a fraction of each yearly average instead.

Answer

The additive Q1 effect is −30 hundred, and with a Year 4 average of 20 hundred the additive forecast is 20 − 30 = −10 hundred, an impossible negative number of sales. Q1 is always half of the yearly average, so the seasonal swing shrinks as sales shrink and a multiplicative model fits: Year 4 Q1 ≈ 20 × 0.5 = 10 hundred, about 1000 DVDs.

Step by step
  1. Yearly averages: 320 ÷ 4 = 80, 240 ÷ 4 = 60, 160 ÷ 4 = 40. Sales fall 20 hundred a year, so Year 4's average would be about 20.
  2. Q1 minus the average: −40, −30, −20. The gap is shrinking, so it is not a fixed seasonal effect. An additive model would still use one value, the mean, −30.
  3. Additive forecast: 20 + (−30) = −10 hundred. A shop cannot sell a negative number of DVDs, so the model has broken down.
  4. Now Q1 as a fraction of the average: 40 ÷ 80 = 30 ÷ 60 = 20 ÷ 40 = 0.5. Every year Q1 is exactly half of the average; Q4 is 1.5 times it.
  5. So the season is a fixed proportion of the trend, and a multiplicative model fits: 20 × 0.5 = 10 hundred, about 1000 DVDs.
  6. Even this forecast assumes the steady fall continues for another year; with the trend heading towards zero, it should be treated with caution.
Full working
  1. averages 80, 60, 40falling 20 a year
  2. Q1 − average: −40, −30, −20; mean −30additive Q1 effect
  3. Year 4 average ≈ 40 − 20 = 20continue the fall
  4. 20 + (−30) = −10impossible
  5. Q1 ÷ average: 0.5, 0.5, 0.5fixed proportion
  6. 20 × 0.5 = 10multiplicative
  7. Additive gives −10 hundred (impossible); multiplicative gives about 10 hundred, 1000 DVDs

More challenge problems

Science

Where science uses this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91580