AP® Statistics · Unit 5 · Topic 5.3

Extrapolation and Prediction

Extrapolation means using a regression line to predict y for x-values outside the range of the observed data. The line has no evidence there, so the prediction can be meaningless even if the line fits beautifully inside the data.

A least-squares line is built entirely from the points you actually collected. It describes the pattern between the lowest and highest x-values in your data, nothing more. Outside that range, the line is just an equation extending forever in both directions — it keeps going because algebra lets it, not because the real relationship keeps going that way. Nothing in the data told the line what happens out there, so any prediction past the edge is a guess dressed up as a calculation.

This matters because relationships that look straight over a limited window often curve, flatten, or reverse once you leave it. Height versus age is a classic case: from age 2 to 10, growth is roughly linear, so a line fits well and r-squared might be high. But growth slows sharply after puberty and stops in adulthood. A line fit to ages 2-10 has literally zero data points anywhere near age 40, so it cannot know that growth has stopped — it just keeps adding height per year forever, producing an absurd prediction.

A high r-squared tells you the line fits the points you have very well — it says nothing about points you don't have. This connects directly to residual analysis: residuals only exist where you have data, so they can warn you a line is wrong inside the observed range but they are silent about anything beyond it. The lesson carries forward whenever you report a prediction: always check the x-value lies within, or close to, the range of the original data before trusting y-hat.

Key terms

Extrapolation
Using a regression line to predict y for an x-value outside the range of the observed data.
Observed range
The span between the smallest and largest x-values actually collected in the data set.
r-squared
The proportion of variation in y explained by the line, measured only within the observed data.
Least-squares line
The line that minimizes the sum of squared residuals for the data points it was fit to.

Watch it explained

  1. How it worksWalk me through why a fitted line has no evidence at all about x values it never saw.
  2. Worked exampleFind the predicted height at age 40 from a line fitted to children aged 2 to 10.
  3. Common mistakeWhy isn't a high r squared a license to extrapolate?
  4. Going furtherWhat changes about a prediction when the relationship curves outside the observed range?

Check yourself

Your turn1 of 2
A line fitted to children ages 2 to 10 is y-hat = 30 + 4x, where x is age. Find the predicted height at age 44, well outside the fitted range.

End of topic.