Skip to main content
ExamExplained
WA · Mathematics Applications
Mathematics Applications study scene
§-Syllabus dot point
WAMathematics ApplicationsSyllabus dot point

How do we fit a trend line to a time series and forecast future values?

Fit a least-squares trend line to a time series, forecast future values, and reseasonalise forecasts for seasonal data.

How to fit a least-squares trend line to a time series using a numerical time variable, forecast future values, and reseasonalise a forecast when the data is seasonal.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Coding time as a number
  3. Interpreting and forecasting
  4. Seasonal data: deseasonalise, fit, reseasonalise
  5. Why deseasonalise before fitting
  6. Trend lines on non-seasonal data

What this dot point is asking

You must fit a least-squares trend line, forecast future values, and reseasonalise forecasts for seasonal data.

Coding time as a number

To fit a least-squares line, time must be a number, so code the periods as t=1,2,3,t = 1, 2, 3, \dots in order.

Enter the coded times and the data values into the calculator's regression tool to get aa and bb, exactly as for any least-squares line.

Interpreting and forecasting

The slope and intercept have time-series meanings.

  • Slope bb: the average increase (or decrease) in the variable per time period.
  • Intercept aa: the value the line gives at t=0t = 0 (often just before the data starts).

To forecast, substitute a future value of tt into the trend line. A forecast for a tt inside the data range is interpolation; beyond it is extrapolation and should be flagged as less reliable.

Seasonal data: deseasonalise, fit, reseasonalise

When the series is seasonal, the raw data swings up and down each cycle, which would distort the trend line. So you fit the line to the deseasonalised data, then restore the season for the final forecast.

Why deseasonalise before fitting

If you fit a trend line straight onto raw seasonal data, the regular peaks and dips pull the line about and the slope no longer measures the true trend. Deseasonalising first removes that swing so the line captures the genuine long-term movement; reseasonalising afterwards converts the trend forecast back into a realistic figure for the specific season.

Trend lines on non-seasonal data

When a time series has no seasonal component (for example, annual figures already aggregated over the year), there is nothing to deseasonalise: fit the least-squares trend line directly to the data against the coded time tt, forecast by substitution, and report without reseasonalising. The interpolation-versus-extrapolation judgement still applies, and the slope still reads as the change per period. Recognising whether the data is seasonal decides whether the deseasonalise-and-reseasonalise steps are needed at all, so check the series for a repeating pattern before choosing your approach.

Exam-style practice questions

Practice questions written in the style of SCSA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

WACE 20227 marksAnnual revenue (\millions)foryearscodedmillions) for years coded t = 1, 2, 3, 4, 5is is 8.0, 9.5, 10.5, 12.0, 13.5.Aleastsquarestrendline. A least-squares trend line y = 6.6 + 1.36tisfitted.(a)Interprettheslope.(b)Forecasttherevenuefor is fitted. (a) Interpret the slope. (b) Forecast the revenue for t = 8$. (c) State why this forecast should be treated with caution.
Show worked answer →

Read the slope as growth per period, then forecast.

(a) Slope 1.361.36: revenue is increasing by about $1.36\$1.36 million per year, on the linear trend. (2 marks)

(b) At t=8t = 8: y=6.6+1.36(8)=6.6+10.88=17.48y = 6.6 + 1.36(8) = 6.6 + 10.88 = 17.48, so about $17.48\$17.48 million. (3 marks)

(c) t=8t = 8 is beyond the data (t=1t = 1 to 55), so the forecast is an extrapolation; it assumes the linear trend continues, which may not hold. (2 marks)

Markers reward the slope as annual growth, the trend substitution, and identifying extrapolation.

WACE 20246 marksDeseasonalised quarterly data gives a trend line y=120+5ty = 120 + 5t with t=1t = 1 the first quarter. (a) Forecast the deseasonalised value for the eighth quarter. (b) Reseasonalise the forecast if that quarter has a seasonal index of 0.750.75. (c) Explain why deseasonalised data is used to fit the trend line.
Show worked answer →

Forecast on the trend, then restore the season.

(a) At t=8t = 8: y=120+5(8)=120+40=160y = 120 + 5(8) = 120 + 40 = 160 (deseasonalised). (2 marks)

(b) Reseasonalise by multiplying by the index: 160×0.75=120160 \times 0.75 = 120. (2 marks)

(c) Deseasonalised data has the seasonal swing removed, so the trend line measures the genuine long-term movement rather than being distorted by regular seasonal peaks and dips. (2 marks)

Markers reward the trend substitution, multiplying by the index, and the distortion-free reason for deseasonalising.

ExamExplained