Making predictions
Using the least-squares regression line to make predictions, interpolation and extrapolation, the reliability of predictions, residuals of predictions, and the limits of a regression model.
The whole point of a regression line is prediction: a business estimating sales at a new price, a doctor estimating a child's adult height. A prediction is only as good as the data and the line behind it, so every prediction needs a judgement about how far to trust it.
Predicting
Substitute the $x$-value into $\hat{y} = a + bx$. Use the line's full accuracy, and round only the final answer to something sensible in context.
From 11B, revision hours $x$ and test score $y$ give $\hat{y} = 44.54 + 3.96x$, based on students who revised between $1$ and $8$ hours. Predict the score of a student who revises for $4.5$ hours.
Interpolation and extrapolation
- Interpolation predicts inside the range of the $x$-values in the data. If the correlation is strong, it is usually reliable.
- Extrapolation predicts outside that range. It assumes the linear trend carries on where we have no data, which may be false.
Use the same line to predict the score of a student who revises for $20$ hours, and comment.
A concert promoter found that the ticket price $x$ dollars (from $\$10$ to $\$50$) and tickets sold $y$ (in thousands) fit $\hat{y} = 9.15 - 0.097x$, with $r \approx -0.99$. Predict sales at $\$35$ and at $\$100$, and comment on each.
Your turn
The line $\hat{y} = 2.5 + 0.4x$ was found from data with $x$ between $5$ and $40$, and $r = 0.93$. Predict $y$ when $x = 20$, and say whether the prediction is reliable.
Show the working
$\hat{y} = 2.5 + 0.4 \times 20 = 10.5$. It is an interpolation ($20$ is between $5$ and $40$), and $r = 0.93$ is strong, so it is reasonably reliable.
Using $\hat{y} = 44.54 + 3.96x$, predict the score for $6$ hours of revision, correct to one decimal place.
$44.54 + 3.96 \times 6 = 44.54 + 23.76 = 68.3$.
Interpolation means predicting:
"Inter" means between: the $x$-value lies between the smallest and largest $x$ in the data.
A line was fitted to revision times from $1$ to $8$ hours. Predicting the score for $12$ hours is:
$12$ is outside $1$ to $8$, so it is extrapolation. We can calculate it, but there is no data to say the trend continues.
Using $\hat{y} = 2.5 + 0.4x$, predict $y$ when $x = 30$.
$2.5 + 0.4 \times 30 = 2.5 + 12 = 14.5$.
The actual $y$-value at $x = 30$ turns out to be $16$. Find the residual, using $\hat{y} = 2.5 + 0.4x$.
Residual $=$ actual $-$ predicted $= 16 - 14.5 = 1.5$.
Which prediction is most reliable?
Inside the data range and a strong correlation: both reasons point the same way.
A runner's 10 km time $y$ minutes and monthly training $x$ hours fit $\hat{y} = 120 - 1.5x$ for $x$ from $10$ to $50$. Predict the time for $40$ hours of training.
$120 - 1.5 \times 40 = 120 - 60 = 60$ minutes. This is an interpolation.
For the line $\hat{y} = 120 - 1.5x$ above, why is predicting the time for $90$ hours of training unwise?
$90$ is outside $10$ to $50$. The prediction $120 - 135 = -15$ minutes is impossible, showing the trend can't continue.
Exam style: ticket sales $y$ (thousands) and price $x$ dollars fit $\hat{y} = 9.15 - 0.097x$, from prices of $\$10$ to $\$50$. Predict sales, in thousands, at a price of $\$20$.
$9.15 - 0.097 \times 20 = 9.15 - 1.94 = 7.21$ thousand tickets. It is an interpolation with $r \approx -0.99$, so it is reliable.
Exam style: using that same line, which is the best comment on predicting sales at a price of $\$100$?
$9.15 - 9.7 = -0.55$: negative sales are impossible. A strong $r$ inside the data says nothing about prices far outside it.
Coaching Centre