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, write its equation, interpret the two coefficients in context with units, use the line to predict, and judge the reliability of each prediction.
Fitting the line
The least-squares line is the straight line for which the sum of the squared vertical distances from the data points is as small as possible. In this course you fit it with technology, entering the explanatory list and the response list and reading off and .
Interpreting the coefficients
Interpretation must use the real variable names and units.
- Slope . For each one-unit increase in the explanatory variable, the response variable changes by units on average. State whether it rises or falls.
- Intercept . The predicted response when the explanatory variable is zero. This is only meaningful if is sensible in the context.
Predicting
Substitute an value into the equation to predict .
- Interpolation predicts for an inside the range of the data. It is usually reliable.
- Extrapolation predicts for an outside the range. It is risky, because the linear pattern may not continue.
Why extrapolation fails
A least-squares line is only evidence for the pattern over the range that produced it. Pushed far beyond that range it can give impossible answers such as a negative value or a score above the maximum, which is why predictions must always be checked against the data range and against common sense.