How do we fit the best straight line to bivariate data and read meaning from it?
Fit a least-squares line using technology, interpret the slope and intercept in context, and predict while distinguishing interpolation from extrapolation.
How to fit the least-squares regression line with technology, interpret its slope and intercept in real units, predict with the equation, and judge interpolation against extrapolation.
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 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.
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.
Interpolation versus extrapolation
A prediction is only as trustworthy as the data behind 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.
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 20216 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 20235 marksA least-squares line of weekly sales (units) on advertising spend (\\,y = 120 + 8x\. (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.
