11C

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.

Example 1●

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.

$\hat{y} = 44.54 + 3.96 \times 4.5 \approx 62.4$
Substitute x = 4.5.
About $62$ marks.
Scores are whole numbers, so round in context.

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.
Example 2●●

Use the same line to predict the score of a student who revises for $20$ hours, and comment.

$\hat{y} = 44.54 + 3.96 \times 20 \approx 123.7$
This is extrapolation. A test score above $100$ is impossible, so the linear trend clearly can't continue. The prediction is not reliable.
20 hours is far outside the 1 to 8 hours in the data, and the answer is impossible.
Example 3●●

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.

At $\$35$: $\hat{y} = 9.15 - 0.097 \times 35 \approx 5.76$, about $5760$ tickets. Reliable.
A price of 35 dollars is inside the 10 to 50 dollar range: interpolation, with a very strong correlation.
At $\$100$: $\hat{y} = 9.15 - 9.7 = -0.55$, a negative number of tickets. Impossible, so the model fails out there.
A price of 100 dollars is far outside the range: extrapolation.

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.

Flashcards
Interpolation
Predicting inside the range of the data: usually reliable if $r$ is strong
Extrapolation
Predicting outside the range of the data: treat with caution
Residual of a prediction
Actual value minus predicted value
Practice
  1. Using $\hat{y} = 44.54 + 3.96x$, predict the score for $6$ hours of revision, correct to one decimal place.

  2. Interpolation means predicting:

  3. A line was fitted to revision times from $1$ to $8$ hours. Predicting the score for $12$ hours is:

  4. Using $\hat{y} = 2.5 + 0.4x$, predict $y$ when $x = 30$.

  5. The actual $y$-value at $x = 30$ turns out to be $16$. Find the residual, using $\hat{y} = 2.5 + 0.4x$.

  6. Which prediction is most reliable?

  7. 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.

  8. For the line $\hat{y} = 120 - 1.5x$ above, why is predicting the time for $90$ hours of training unwise?

  9. 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$.

  10. Exam style: using that same line, which is the best comment on predicting sales at a price of $\$100$?

Formula sheet