Fitting and interpreting the least-squares line in WACE Mathematics Applications Unit 3
“Fit a least-squares line using technology, interpret the slope and intercept in context, and predict while distinguishing interpolation from extrapolation.”
The least-squares line is the straight line that minimises the sum of the squared vertical distances from the points. Fit it with technology to get . The slope is the change in the response variable per one-unit increase in the explanatory variable; the intercept is the predicted response when . Predict by substituting, and label the prediction interpolation (inside the data range, reliable) or extrapolation (outside it, risky).
Jump to a section
What this dot point is asking
You must fit the line with technology, interpret the slope and intercept in context, predict, and distinguish interpolation from extrapolation.
What "least squares" means
For any straight line, each point has a vertical gap to the line called a residual. The least-squares line is the unique line that makes the sum of the squared residuals as small as possible, which is why it is the standard line of best fit.
, where is the response variable and the explanatory variable. The slope is and the line passes through the mean point . In practice you read and from the calculator's regression output.
Enter the paired data into the statistics menu, run the linear regression, and write the equation with the response variable on the left.
Interpreting slope and intercept
The whole point of fitting the line is to read meaning from and in the variables of the problem.
- Slope : the predicted change in the response variable for each one-unit increase in the explanatory variable. Always state the direction (increase or decrease) and the units.
- Intercept : the predicted response when the explanatory variable is zero. Sometimes this is meaningful, sometimes (for example "weight at age ") it is not, and you should say so.
A slope of in "mark per hour studied" means each extra hour adds percentage points to the predicted mark. Never leave the interpretation as "the slope is "; tie it to the variables and units of the question.
Fitting and using a least-squares line
A cafe records the daily maximum temperature (, degrees Celsius) and the number of iced coffees sold () over data from to . Technology gives .
Interpret the slope
The slope means each degree rise in temperature is associated with more iced coffees sold per day.
Interpret the intercept
The intercept predicts sales at degrees Celsius. This is meaningless here (you cannot sell a negative number, and degrees is far below the data), so the intercept is not interpreted in context.
Predict at 28 degrees (interpolation)
lies inside the data range, so this is interpolation: iced coffees.
Comment on a prediction at 45 degrees
is well outside the data range ( to ), so predicting there is extrapolation and unreliable; the linear pattern may break down at extreme heat.
Interpolation versus extrapolation
A prediction is only as trustworthy as the data behind it.
Interpolation predicts for an explanatory value inside the range of the data; it is generally reliable. Extrapolation predicts for a value outside the range; it is risky because the linear trend may not continue and there is no data to support it.
Always check whether the prediction value lies inside the minimum-to-maximum range of the explanatory variable before judging reliability. Markers expect this label on every prediction.
The reliability of an interpolated prediction also depends on : a line explaining of the variation gives tighter predictions than one explaining . So a complete answer to "how reliable is this prediction" mentions both whether it is interpolation or extrapolation and how much variation the model explains.
- Interpreting the slope without units
- Tie the slope to the variables, for example " extra coffees per degree", not just "the slope is ".
- Forcing an intercept interpretation
- If is meaningless or far outside the data, say the intercept has no sensible interpretation.
- Predicting without checking the range
- Label every prediction interpolation or extrapolation and flag extrapolations as unreliable.
- Putting the variables the wrong way round
- Fit (response) on (explanatory); swapping them gives a different line and wrong predictions.
Exam-style questions
Questions in the style of SCSA 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.
WACE 2021-style6 marksFor ten students, the least-squares line relating exam mark (, %) to hours studied () is , with data ranging over to hours. (a) Interpret the slope and intercept. (b) Predict the mark for hours. (c) Comment on predicting the mark for hours.Show worked answer →
Read the slope as the change per unit and the intercept as the value at .
(a) Slope : each extra hour of study is associated with a percentage-point increase in exam mark. Intercept : a student who studies hours is predicted to score . (3 marks)
(b) lies inside the data range ( to ), so this is interpolation: . (2 marks)
(c) is far outside the data range, so predicting there is extrapolation and unreliable; the linear trend may not continue and a mark cannot exceed . (1 mark)
Markers reward slope-as-rate and intercept-in-context, a correct interpolation, and identifying extrapolation as unreliable.
WACE 2023-style5 marksA least-squares line of weekly sales (units) on advertising spend (hundreds) is . (a) Predict the sales for a spend of . (b) The actual sales at that spend were units. Calculate the residual and state what it shows.Show worked answer →
Use the line for the prediction, then compare with the observed value.
(a) A spend of is (hundreds), so units predicted. (2 marks)
(b) Residual observed predicted . The positive residual shows the actual sales were units above the line, so the model underpredicted at that point. (3 marks)
Markers reward consistent units for , the prediction, and a residual defined as observed minus predicted.