Time series analysis and smoothing (QCE General Mathematics Unit 3)
“Construct and describe time series plots (trend, seasonality and irregular fluctuations), smooth a series with a simple moving mean or median for an odd number of data, deseasonalise using seasonal indices found by the average percentage method, and fit a least-squares line to model the long-term trend”
Describe a time series plot by its trend, seasonality and irregular fluctuations, in context. Smooth it with an odd-numbered moving mean or moving median, placing each value at the middle period; a window equal to the seasonal cycle removes the seasonal pattern and a median resists outliers. Find seasonal indices with the average percentage method, deseasonalise by dividing by the index, fit a least-squares line against time, forecast a future period and multiply by its seasonal index, remembering that forecasts are extrapolations.
What this dot point is asking
This page covers Unit 3 Topic 3: Time series analysis in the QCAA General Mathematics 2025 syllabus. The topic has two parts:
- Describing and interpreting patterns in time series data: construct and interpret time series plots, and describe them by identifying trend (long-term direction), seasonality (systematic, calendar-related movements) and irregular fluctuations (unsystematic, short-term fluctuations).
- Analysing time series data: smooth a series with a simple moving average using the mean or median for an odd number of data (including with spreadsheets), deseasonalise using seasonal indices found by the average percentage method, fit a least-squares line to model the long-term trend, and solve practical problems, including forecasting.
This page teaches the first part in depth, plus smoothing, and gives a complete overview of the second part. The seasonal index calculations are developed step by step on seasonal indices and deseasonalising. The topic appears in the internal examination (IA2), suits the problem-solving and modelling task, and appears in the external assessment.
The answer
What a time series is
A time series is a set of observations of one variable recorded at regular intervals of time: daily temperatures, monthly unemployment rates, quarterly sales, yearly rainfall. Because the values are in time order, you cannot shuffle them, and the most useful questions are about how the variable changes over time.
A time series plot graphs the variable (vertical axis) against time (horizontal axis), with consecutive points joined by straight line segments so the eye follows the movement from one period to the next. When constructing one:
- put time on the horizontal axis with equal spacing for equal intervals;
- label both axes with units, and label the time periods clearly (for example Q1 2024, Q2 2024);
- join the points in order; do not draw a line of best fit through them.
Describing a time series plot
Describe the plot by commenting on each of the three syllabus features, always in context.
- Trend
- The long-term direction of the series: increasing, decreasing or no clear trend. Say whether it looks roughly linear, and quote values if they help ("rising from about 40 to about 60 units over three years").
- Seasonality
- A pattern that repeats at the same time in each calendar cycle: a peak every summer, a trough every February, higher sales every fourth quarter. State the period (yearly, weekly) and where the peaks and troughs fall. Seasonality is systematic: you can predict when it will happen.
- Irregular fluctuations
- Movements with no pattern, caused by chance or one-off events (a storm, a strike, a promotion). They are unsystematic. A single extreme value caused by a one-off event is sometimes called an outlier; describe it and give the likely cause if the context suggests one.
Trend: long-term direction. Seasonality: systematic, calendar-related movements that repeat each cycle. Irregular fluctuations: unsystematic, short-term movements that follow no pattern.
A model description: "The number of guests shows an increasing trend over the four years. It is seasonal, peaking every December quarter and falling to a low every June quarter. There is an irregular fluctuation in the March quarter of 2022, when guest numbers fell sharply, possibly because of flooding."
Some textbooks and other states' courses also describe cyclical variation (rises and falls over periods longer than a year with no fixed length, such as business cycles) and use even-numbered moving averages with centring (for example a 4-point average followed by a 2-point average). Neither is listed in the QCAA General Mathematics 2025 subject matter, which specifies trend, seasonality and irregular fluctuations, and moving averages for an odd number of data. Treat them as background only.
Smoothing with a moving average
Irregular fluctuations can hide the trend. Smoothing replaces each value with the average of a small group of consecutive values centred on it. The syllabus uses an odd number of data (3-point, 5-point, 7-point and so on), so that each group has a middle value and each smoothed value lines up with an actual time period.
- Moving mean: the mean of the group.
- Moving median: the median of the group. It is barely affected by one extreme value, because an extreme value is never the middle of three or five.
For a -point moving average ( odd), values are lost at each end: one at each end for 3-point, two at each end for 5-point.
Smooth the series 12, 18, 15, 21, 17, 24, 20.
| Period | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Value | 12 | 18 | 15 | 21 | 17 | 24 | 20 |
| 3-point moving mean | 15 | 18 | 17.67 | 20.67 | 20.33 | ||
| 3-point moving median | 15 | 18 | 17 | 21 | 20 | ||
| 5-point moving mean | 16.6 | 19 | 19.4 | ||||
| 5-point moving median | 17 | 18 | 20 |
- Period 2, 3-point
- Mean ; the median of 12, 15, 18 is 15.
- Period 4, 5-point
- Mean ; ordered 15, 17, 18, 21, 24, so the median is 18.
- Interpretation
- Both smoothed series rise across the periods: the zig-zag of the raw data hides an increasing trend.
Marker's note: write each smoothed value in the column of the middle period of its group. Placing it at the start or end of the group is the most common error.
Choosing the number of points
- More points gives a smoother series but loses more values at each end and responds more slowly to genuine changes in direction.
- Match the window to the season when you can. A moving mean whose length equals the length of the seasonal cycle contains exactly one of each season, so it removes the seasonal pattern completely. For daily data with a weekly pattern, a 7-point moving mean does this, and 7 is odd, so it fits the syllabus exactly.
- Use a moving median when there are outliers. One faulty reading can pull several moving means well away from the true level.
A café counts customers each day for three weeks, Monday to Sunday.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun | |
|---|---|---|---|---|---|---|---|
| Week 1 | 62 | 58 | 60 | 66 | 84 | 120 | 105 |
| Week 2 | 64 | 61 | 63 | 70 | 88 | 126 | 110 |
| Week 3 | 67 | 65 | 66 | 73 | 92 | 131 | 114 |
First 7-point moving mean (centred on Thursday of week 1): .
Next (centred on Friday of week 1): drop Monday week 1 (62), add Monday week 2 (64): .
Continuing gives 15 moving means rising smoothly from 79.3 to 86.9 (centred on Thursday of week 3).
Interpretation. The raw data swing between about 60 and 130 because of the weekend peak, but the 7-point moving mean shows a steady increasing trend of roughly 0.5 customers per day.
Marker's note: a 3-point moving mean would not remove this pattern. Its values (60.0, 61.3, 70.0, 90.0, 103.0, 96.3 for Tuesday to Sunday of week 1) still rise and fall with the weekend.
A sensor reads 40, 42, 41, 95, 44, 45, 43, 47, 46 on nine days; 95 is a fault.
- 3-point moving means (days 2 to 8)
- 41.0, 59.3, 60.0, 61.3, 44.0, 45.0, 45.3.
- 3-point moving medians (days 2 to 8)
- 41, 42, 44, 45, 44, 45, 46.
- Interpretation
- The single faulty value lifts three moving means to about 60, but the moving medians stay in the low to mid 40s and show the slow upward drift that is really there.
Marker's note: if asked which smoother is better, name it and give the reason in terms of the data (one extreme value).
In a spreadsheet, enter the first average with a formula such as =AVERAGE(B2:B4) or =MEDIAN(B2:B4) beside the middle value (row 3), then fill down. For a 7-point average, use =AVERAGE(B2:B8) beside row 5.
Overview: seasonal indices, deseasonalising and trend lines
Moving averages reduce irregular fluctuations; seasonal indices measure and remove seasonality exactly.
Seasonal index. Compares a season with the average for its cycle. An index of 1.25 means that season is typically 25% above average; 0.80 means 20% below. The indices for one cycle add to the number of seasons (4 for quarters, 12 for months).
Average percentage method. (1) Find the average of each year. (2) Express each value as a percentage of its own year's average. (3) Average these percentages for each season across the years. (4) Write each index as a decimal and check the sum.
Deseasonalise by dividing: . Reseasonalise by multiplying.
Trend line. Number the periods without restarting each year, fit a least-squares line to the deseasonalised values, forecast by substituting a future , then multiply by that season's index.
Quarterly sales (units):
| Year | Q1 | Q2 | Q3 | Q4 | Yearly average |
|---|---|---|---|---|---|
| 1 | 40 | 55 | 70 | 35 | 50 |
| 2 | 44 | 60 | 78 | 38 | 55 |
| 3 | 48 | 66 | 84 | 42 | 60 |
- Seasonal indices
- Percentages of each year's average, averaged by quarter: Q1 0.800, Q2 1.097, Q3 1.406, Q4 0.697 (sum 4.000).
- Deseasonalise
- Year 3: , , , . Once the seasonal swing is removed, Year 3 sales were steady at about 60 a quarter.
- Trend line
- Fitting deseasonalised sales against to 12 gives deseasonalised sales : after removing seasonal effects, sales rise by about 1.12 units per quarter.
- Forecast Q3 of Year 4 ()
- , then , about 91 units.
Marker's note: the two classic losses are restarting each year and forgetting to reseasonalise.
Interpreting a trend line and judging a forecast
When a least-squares line models a trend:
- the slope is the average change in the variable per time period (per quarter, per month), stated with units;
- the intercept is the model's value at , the period before the first data point, which may or may not be meaningful;
- every forecast is an extrapolation, so it assumes the trend (and seasonal pattern) continue. Short-range forecasts are more reliable than long-range ones; one-off events and changing conditions make distant forecasts unreliable.
Describe: trend, seasonality, irregular fluctuations, always in context. Smooth: odd-numbered moving mean or median, placing each value at the middle period; a window equal to the seasonal cycle removes seasonality, and a median resists outliers. Seasonal indices by the average percentage method sum to the number of seasons. Deseasonalise by dividing, fit a least-squares line against , forecast, then reseasonalise by multiplying.
- Placing smoothed values in the wrong period
- Each moving average belongs to the middle period of its group.
- Using an even number of points
- The syllabus smooths with an odd number of data.
- Describing only one feature
- A full description names the trend, the seasonality (or its absence) and any irregular fluctuations, with context.
- Calling an irregular fluctuation seasonal
- Seasonality repeats at the same time each cycle; a one-off spike does not.
- Dividing instead of multiplying when reseasonalising
- Divide to deseasonalise; multiply to turn a trend forecast into an actual forecast.
- Indices that do not sum correctly
- Quarterly indices sum to 4 and monthly indices to 12.
- Misreading an index
- 1.20 is 20% above average, not 120% above; 0.85 is 15% below.
- Interpreting the intercept as the first data value
- The intercept is the model value at , one period before the data start.
Use the three feature words as sentence starters ("The trend is ...", "The series is seasonal, with ...", "There is an irregular fluctuation at ..."). For smoothing, set out a table with the raw data in one row and each smoothed series in its own row, and show one calculation in full. For a forecast, write three labelled lines (, deseasonalised forecast, actual forecast) and finish with one sentence on reliability.
A time series is a record of something measured over and over, like daily customers at a café. The graph wiggles for three reasons: a slow overall rise or fall (the trend), a pattern that repeats like busy weekends (seasonality), and random bumps (irregular fluctuations). A moving average is like looking at the week as a whole instead of each day: averaging a few days at a time irons out the bumps so you can see which way things are really heading.
Exam-style questions
Questions in the style of QCAA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
Original4 marksA time series plot shows the amount of rainfall (in mm) for each quarter from 2016 to 2021. Quarterly rainfall rises gradually over the six years, and each year the highest value falls in the fourth quarter. (a) Describe the long-term trend and seasonality of the time series data. [2 marks] (b) A least-squares line was fitted to the data, with y representing the amount of rainfall and x the number of quarters since the beginning of 2016 (e.g. x = 5 for the first quarter of 2017): y = 1.763x + 156.5. Interpret the y-intercept and slope of the fitted line. [2 marks]Show worked answer →
Four marks, one per required statement.
(a) Trend (1 mark): the long-term trend is increasing, because rainfall generally rises as time increases. Seasonality (1 mark): the data are seasonal, with a regular peak in the fourth quarter of every year.
(b) y-intercept (1 mark): when x = 0 the model gives y = 156.5, so it predicts about 156.5 mm of rainfall in the fourth quarter of 2015 (the quarter just before x = 1). Slope (1 mark): on average, rainfall increases by about 1.763 mm per quarter.
Name the trend and the seasonality separately, and interpret both the intercept and the slope in context (mm and quarters), not just restate them as numbers.
Original4 marksA swimwear company's seasonally adjusted swimsuit sales (in thousands) were: Spring 33.3, Summer 34.8, Autumn 36.4, Winter 35.8. The long-term seasonal indices for spring, summer and winter are 1.11, 1.42 and 0.62 respectively. Determine the actual swimsuit sales for autumn.Show worked answer →
Step 1 - find autumn's seasonal index (1 mark). The four seasonal indices must sum to 4, so autumn's index is 4 - (1.11 + 1.42 + 0.62) = 4 - 3.15 = 0.85.
Step 2 - choose the method (1 mark). The figures given are seasonally adjusted (deseasonalised) values, so to recover the actual value multiply by the seasonal index: actual = deseasonalised value x seasonal index.
Step 3 - compute (1 mark): actual = 36.4 x 0.85 = 30.94 (thousand).
Step 4 - state in context (1 mark): autumn had actual sales of about 30 940 swimsuits.
The common trap is dividing instead of multiplying. You divide to deseasonalise an actual figure; here the figure is already deseasonalised, so you multiply.
Original4 marksBuffalo fly bites cause skin wounds on cattle. The average number of skin wounds per animal in a herd was recorded for two years. 2021: Autumn 285, Winter 28, Spring 195, Summer 460. 2022: Autumn 276, Winter 22, Spring 170, Summer 392. Use the average percentage method to find the seasonal indices, then deseasonalise the data.Show worked answer →
Step 1 - yearly averages (1 mark). 2021: (285 + 28 + 195 + 460)/4 = 242. 2022: (276 + 22 + 170 + 392)/4 = 215.
Step 2 - seasonal indices (1 mark). Express each season as a percentage of its year's average, then average across the years. 2021: 117.8%, 11.6%, 80.6%, 190.1%. 2022: 128.4%, 10.2%, 79.1%, 182.3%. Seasonal indices: Autumn 1.231, Winter 0.109, Spring 0.798, Summer 1.862 (they sum to 4).
Step 3 - deseasonalise 2021 (1 mark): deseasonalised value = actual / seasonal index. Autumn 285/1.231 = 231.5, Winter 28/0.109 = 256.9, Spring 195/0.798 = 244.4, Summer 460/1.862 = 247.0.
Step 4 - deseasonalise 2022 (1 mark): Autumn 276/1.231 = 224.2, Winter 22/0.109 = 201.8, Spring 170/0.798 = 213.0, Summer 392/1.862 = 210.5.
The deseasonalised series is far flatter than the raw data, which is the point of removing the seasonal swing, and it shows the wound rate fell from 2021 to 2022. Winter's tiny index (0.109) means small changes in winter counts produce large changes in deseasonalised values, so interpret that season with care.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation3 marksFor the series 12, 18, 15, 21, 17, 24, 20, calculate the 3-point moving means and the 3-point moving medians.
Show worked solution →
3-point moving means (from the second value): , , , , . (1 mark)
3-point moving medians: 15, 18, 17, 21, 20. (1 mark)
Alignment: each smoothed value sits at the middle period of its group, so there are no smoothed values for periods 1 and 7. (1 mark)
foundation2 marksA time series plot of a gym's monthly memberships over four years rises steadily, with a dip every December and January and one unusually low month in April of the third year when the gym closed for repairs. Describe the plot using the three features in the syllabus.
Show worked solution →
Trend and seasonality (1 mark): memberships show an increasing trend, with seasonality (a dip every December and January).
Irregular fluctuation (1 mark): the low value in April of year 3 is an irregular (unsystematic) fluctuation caused by a one-off closure, not part of the seasonal pattern.
foundation2 marksCalculate the 5-point moving mean and 5-point moving median centred on the value 21 in the series 12, 18, 15, 21, 17, 24, 20.
Show worked solution →
The five values centred on 21 are 18, 15, 21, 17, 24.
Moving mean: . (1 mark)
Moving median: ordered 15, 17, 18, 21, 24, so the median is 18. (1 mark)
core3 marksA sensor records 40, 42, 41, 95, 44, 45, 43, 47, 46 on nine consecutive days; the 95 was a fault. (a) Calculate the 3-point moving means for days 3 to 5. (b) Calculate the 3-point moving medians for days 3 to 5. (c) Which smoothing method is better here? Explain.
Show worked solution →
(a) Day 3: . Day 4: . Day 5: . (1 mark)
(b) Day 3: median of 41, 42, 95 is 42. Day 4: median of 41, 44, 95 is 44. Day 5: median of 44, 45, 95 is 45. (1 mark)
(c) The moving median. The single faulty value drags three moving means up to about 60, when the true level is in the low 40s, but it never becomes a median, so the moving medians stay close to the true level. (1 mark)
core4 marksQuarterly sales (units) for three years were: Year 1: 40, 55, 70, 35; Year 2: 44, 60, 78, 38; Year 3: 48, 66, 84, 42. Use the average percentage method to calculate the seasonal indices, correct to three decimal places.
Show worked solution →
Yearly averages (1 mark): 50, 55 and 60.
Each quarter as a percentage of its year's average (1 mark): Year 1: 80%, 110%, 140%, 70%. Year 2: 80%, 109.09%, 141.82%, 69.09%. Year 3: 80%, 110%, 140%, 70%.
Average for each quarter (1 mark): Q1 80.00%, Q2 109.70%, Q3 140.61%, Q4 69.70%.
Seasonal indices (1 mark): 0.800, 1.097, 1.406, 0.697 (sum 4.000).
core3 marksA café records customers each day for three weeks (Monday to Sunday), with a strong weekend peak every week. (a) Explain why a 7-point moving mean is a sensible choice for this series. (b) The first 7-point moving mean is 79.3, centred on Thursday of week 1, and the last is 86.9, centred on Thursday of week 3. What does this suggest?
Show worked solution →
(a) The seasonal pattern repeats every 7 days. A 7-point moving mean always contains exactly one of each day of the week, so the weekend peak is averaged out and the smoothed series shows the trend. It is also odd, so each mean sits on an actual day. (2 marks)
(b) With the weekly pattern removed, average daily customers rose from about 79 to about 87 over two weeks: an increasing trend. (1 mark)
exam5 marksUsing the seasonal indices from the sales question (Q1 0.800, Q2 1.097, Q3 1.406, Q4 0.697), the deseasonalised sales for to 12 give the least-squares line: deseasonalised sales . (a) Interpret the slope. (b) Forecast the actual sales for Quarter 3 of Year 4 (). (c) Comment on the reliability of this forecast.
Show worked solution →
(a) After removing seasonal effects, sales increase by about 1.12 units per quarter on average. (1 mark)
(b) Deseasonalised forecast: (1 mark). Reseasonalise with the Q3 index: (1 mark), so about 91 units (1 mark).
(c) The forecast extrapolates three quarters beyond the data and the deseasonalised series follows a clear linear trend, so it is reasonably reliable, but it assumes the trend and seasonal pattern continue unchanged. (1 mark)
exam4 marksA least-squares line is fitted to quarterly rainfall (mm) with the number of quarters since the start of 2016 ( for Q1 2016): . (a) Interpret the slope and the -intercept. (b) Predict the rainfall for Q1 2022 and explain one reason the prediction could be inaccurate.
Show worked solution →
(a) Slope: rainfall increases by about 1.763 mm per quarter on average (1 mark). Intercept: when (Q4 2015, the quarter before the data start), the model gives 156.5 mm (1 mark).
(b) Q1 2022 is : , about 200.6 mm (1 mark). The line models the trend only: if the data are seasonal, a single quarter's actual rainfall can be well above or below the trend value, and the prediction is also an extrapolation beyond the data. (1 mark)