Interpolation vs extrapolation in regression

By Jude Wallis · Published

Interpolation uses a regression line to predict a response for an x-value that sits inside the range of the data used to fit the line. Extrapolation predicts for an x-value beyond that range, where the linear pattern may no longer hold, so the estimate becomes less reliable the farther out it goes.

AP Statistics: Unit 5 (topics 5.3 Linear Regression Models). Interpolation and extrapolation are defined in Unit 5 topic 5.3 of the Fall 2026 course (essential knowledge 5.3.A.3 and 5.3.A.4). Prediction uses y-hat = a + bx, and extrapolation is flagged as less reliable the farther the x-value lies outside the observed range. This ties directly to why a y-intercept can lack a reasonable interpretation (topic 5.5).

Interpolation vs extrapolation: the short answer

Both use the same regression line y^=a+bx\hat{y} = a + bx to predict a response. The difference is where the explanatory value xx sits. Interpolation plugs in an xx inside the range of the data that built the line, so the prediction rests on a pattern you actually observed. Extrapolation plugs in an xx outside that range, so the prediction assumes the line keeps holding in territory you never measured.

Interpolation is generally safe. Extrapolation is a gamble that gets riskier the farther past the data you reach, because a relationship that looks linear over the observed range can bend, level off, or reverse beyond it.

What interpolation is

Interpolation means predicting a response using a value for the explanatory variable that is within the interval of xx-values used to determine the regression line. If your data on plant height run from 5 to 30 days, predicting height at day 20 is interpolation, since 20 falls inside 5 to 30.

You trust an interpolated value because the line was fit to points on both sides of it, so the linear model has been checked in that region. It is still a prediction, not a guarantee, and its accuracy depends on how well a line fits the data overall. Checking a residual plot first tells you whether a line is even the right model to interpolate with.

What extrapolation is

Extrapolation means predicting a response using an explanatory value beyond the interval of xx-values used to fit the line. With plant data from 5 to 30 days, predicting height at day 60 is extrapolation, because 60 lies outside 5 to 30. The AP course notes plainly that the predicted value is less reliable the farther the estimate is extrapolated.

The danger is that you have no evidence the straight-line pattern continues out there. A plant that grew steadily for a month may plateau, so a line would keep climbing while reality flattens. This is also why a yy-intercept can be meaningless: if x=0x = 0 sits outside the data range, reading the response at x=0x = 0 is itself an extrapolation.

Interpolation vs extrapolation side by side

FeatureInterpolationExtrapolation
Where xx sitsInside the range of the dataOutside the range of the data
Evidence behind itLine was fit to nearby pointsNo data in that region
ReliabilityGenerally trustworthyLess reliable, worse the farther out
Main riskA line may be the wrong modelThe pattern may not continue at all
Example (xx from 5 to 30)Predict at x=20x = 20Predict at x=60x = 60
Relation to yy-interceptNot usually an issueReading x=0x = 0 is extrapolation if 0 is outside the range

When each is acceptable

Interpolation is the normal, intended use of a regression line: predict within the range you studied, after confirming a line fits the data reasonably well. That confirmation matters, since even inside the range a curved pattern makes a straight-line prediction poor.

Extrapolation is sometimes unavoidable, for example when a forecast is the whole point. When you must extrapolate, stay close to the edge of the data, state that the prediction assumes the trend continues, and treat values far outside the range with heavy skepticism. The reliability of an extrapolated estimate falls off the farther you push past the observed xx-values.

The classic mix-up and how to avoid it

The classic error is extrapolating without noticing it, then trusting the number as if it were interpolation. It happens most often when interpreting the yy-intercept, because x=0x = 0 is frequently outside the data range, and when making a bold forecast far beyond the last data point.

Two habits prevent it. First, always write down the range of xx-values the line was built from, then check whether your prediction value falls inside or outside it. Second, when a prediction lands outside, label it extrapolation out loud and flag it as less reliable, rather than reporting it with the same confidence as an interpolated value.

Where this fits in AP Statistics

Interpolation and extrapolation are defined in Unit 5 topic 5.3, on linear regression models. The exam expects you to use y^=a+bx\hat{y} = a + bx for prediction and to recognize when a predicted value is unreliable because the xx-value is outside the observed range.

A frequent free-response point is explaining why a yy-intercept has no reasonable meaning, and the answer is often that x=0x = 0 is an extrapolation beyond the data. Read a residual plot to judge whether a line fits before you predict, as covered in how to interpret residual plots, and remember that a good prediction still does not prove a cause, as covered in correlation vs causation.

One line, two predictions

A regression line predicts a seedling's height in centimeters from its age in days as y^=2+1.5x\hat{y} = 2 + 1.5x. The data used to fit the line covered ages from 5 to 30 days. Predict the height at 20 days and at 60 days, and say which prediction you trust.

  1. Predict at x=20x = 20: y^=2+1.5×20\hat{y} = 2 + 1.5 \times 20.

  2. Multiply first: 1.5×20=301.5 \times 20 = 30.

  3. Add the intercept: 2+30=322 + 30 = 32, so the predicted height is 32 cm.

  4. Check where 20 sits: it is inside 5 to 30, so this is interpolation.

  5. Predict at x=60x = 60: y^=2+1.5×60\hat{y} = 2 + 1.5 \times 60.

  6. Multiply first: 1.5×60=901.5 \times 60 = 90.

  7. Add the intercept: 2+90=922 + 90 = 92, so the predicted height is 92 cm.

  8. Check where 60 sits: it is outside 5 to 30, so this is extrapolation and less reliable, since the seedling may stop growing at that rate.

At 20 days the model predicts 32 cm (interpolation, trustworthy). At 60 days it predicts 92 cm (extrapolation, unreliable), because 60 days is far beyond the 5 to 30 day range and the growth may no longer be linear.

Frequently asked questions

Is using the y-intercept an example of extrapolation?

Often, yes. The yy-intercept is the predicted response when x=0x = 0, and if x=0x = 0 falls outside the range of the data used to fit the line, reading it is an extrapolation. That is why many yy-intercepts have no reasonable interpretation in context.

Why is extrapolation less reliable than interpolation?

Extrapolation predicts in a region where you have no data, so you are assuming the straight-line pattern keeps holding without any evidence for it. A relationship that looks linear over the observed range can flatten, curve, or reverse beyond it, and the error grows the farther out you go.

How far outside the data can I safely predict?

There is no fixed cutoff, but the reliability drops steadily the farther past the observed xx-values you reach. If you must extrapolate, stay as close to the edge of the data as possible, and always label the result as an extrapolation that assumes the trend continues.