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
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 in order.
Enter the coded times and the data values into the calculator's regression tool to get and , exactly as for any least-squares line.
Interpreting and forecasting
The slope and intercept have time-series meanings.
- Slope : the average increase (or decrease) in the variable per time period.
- Intercept : the value the line gives at (often just before the data starts).
To forecast, substitute a future value of into the trend line. A forecast for a 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 , 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 (\t = 1, 2, 3, 4, 58.0, 9.5, 10.5, 12.0, 13.5y = 6.6 + 1.36tt = 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 : revenue is increasing by about million per year, on the linear trend. (2 marks)
(b) At : , so about million. (3 marks)
(c) is beyond the data ( to ), 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 with the first quarter. (a) Forecast the deseasonalised value for the eighth quarter. (b) Reseasonalise the forecast if that quarter has a seasonal index of . (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 : (deseasonalised). (2 marks)
(b) Reseasonalise by multiplying by the index: . (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.
