6E

Interpolation, extrapolation and investigations

Making predictions from a least-squares line, the difference between interpolation and extrapolation, judging reliability, and planning a bivariate statistical investigation.

The whole point of a line of best fit is prediction. But a line doesn't know where the data stops. It will cheerfully predict that a student who studies $20$ hours a week scores $102$ out of $100$. Knowing when to trust a prediction is worth as many marks as making it.

Interpolation and extrapolation

Recall the study data from the last section: hours of study from $2$ to $13$, and the line $\text{mark} = 3.09 \times \text{hours} + 40.72$ with $r \approx 0.99$.

  • Interpolation is predicting inside the range of the $x$-data. Here that means $2 \le x \le 13$.
  • Extrapolation is predicting outside that range: $x \lt 2$ or $x \gt 13$.
Example 1●

Use $\text{mark} = 3.09 \times \text{hours} + 40.72$ to predict the mark for (a) $9$ hours and (b) $20$ hours. Comment on each prediction.

(a) $3.09 \times 9 + 40.72 = 27.81 + 40.72 = 68.53 \approx 68.5$ marks.
Substitute x = 9.
This is interpolation with a strong association, so it is reliable.
9 is between 2 and 13, and r is close to 1.
(b) $3.09 \times 20 + 40.72 = 61.8 + 40.72 = 102.52 \approx 102.5$ marks.
Substitute x = 20.
This is extrapolation, and it is not reliable. Marks can't go above $100$, and the trend must level off somewhere.
20 is far beyond 13, and the answer is impossible for a test out of 100.

The more precise calculator line ($m = 3.0862$, $c = 40.718$) gives $68.49$ and $102.44$. Small differences like that come from rounding $m$ and $c$, and a marker accepts either.

How reliable is a prediction?

Check three things, and mention them in your answer:

  1. Interpolation or extrapolation? Is the $x$-value inside the data range?
  2. Strength of $r$. A strong $r$ means the points sit close to the line, so predictions are closer to reality.
  3. Does the answer make sense? Negative heights, marks over $100$ or a price below zero are a red flag.
InteractiveThe extrapolation danger zone
Try this

Drag the vertical marker along the $x$-axis to choose a number of study hours. The prediction appears on the line. The shaded bands show where you are extrapolating.

Find the smallest number of hours where the line predicts more than $100$ marks. Then switch on Show what really happens. What does real data tend to do beyond the range?

Running a statistical investigation

The syllabus expects you to understand the steps of a full bivariate investigation, which is the same cycle you met in Year 11:

StepWhat you doExample
1. Pose a questionA question about two variables"Do students who sleep more get faster reaction times?"
2. Collect dataDecide the variables, the sample and how to measureSurvey $30$ students: average sleep and an online reaction test
3. AnalyseScatterplot, $r$, least-squares line$r = -0.71$; $\text{time} = -18 \times \text{sleep} + 420$
4. Interpret and reportAnswer the question in context, with limitationsModerate negative association; small sample; can't prove cause

A good report always includes limitations: sample size, how the sample was chosen, possible lurking variables, and how far the predictions can be trusted.

Your turn

A line of best fit for temperature ($x$, from $18$°C to $34$°C) against ice-creams sold per day ($y$) is $y = 12.5x - 140$, with $r = 0.92$. Predict the sales for $26$°C and for $5$°C, and comment on each.

Show the answer

At $26$°C: $12.5 \times 26 - 140 = 325 - 140 = 185$ ice-creams. This is interpolation with a strong association, so it is reliable.

At $5$°C: $12.5 \times 5 - 140 = 62.5 - 140 = -77.5$. This is extrapolation, and a negative number of sales is impossible. The prediction is not reliable.

Flashcards
Interpolation
Predicting inside the range of the $x$-data. Usually reliable if $r$ is strong.
Extrapolation
Predicting outside the range of the $x$-data. Unreliable, because the trend may not continue.
Three reliability checks
Inside or outside the range? How strong is $r$? Does the answer make sense?
Practice
  1. The $x$-values in a dataset run from $5$ to $40$. Predicting $y$ when $x = 22$ is:

  2. Using the same data ($x$ from $5$ to $40$), which value of $x$ gives an extrapolation?

  3. Using $y = 12.5x - 140$, predict $y$ when $x = 26$.

  4. Which prediction is likely to be the most reliable?

  5. A line predicts a negative price for a car $25$ years old. The data only covered cars up to $12$ years old. The best explanation is:

  6. Using $\text{mark} = 3.09 \times \text{hours} + 40.72$, predict the mark for $9$ hours of study, to one decimal place.

  7. In a statistical investigation, which belongs in the "interpret and report" step?

  8. A survey of $8$ students finds $r = 0.91$ between phone use and screen-time anxiety. One limitation is:

  9. Exam style: The line $\text{mark} = 3.09 \times \text{hours} + 40.72$ was found from data with hours between $2$ and $13$. Find the smallest whole number of hours for which the line predicts a mark over $100$.

  10. Exam style: A line $\text{height} = 6.1 \times \text{age} + 77$ was fitted to children aged $2$ to $10$, with $r = 0.97$. A student predicts the height of a $35$-year-old. Which comment is best?

Formula sheet