Evidence, Data and Statistics for Readers

Interpolation and Extrapolation: Where Data Stop Supporting a Line

Learn when estimating between data points is reasonable, why reaching beyond them is risky and how to judge a projected line.

Key takeaways

  • Estimates between data points are generally more trustworthy than estimates beyond them, provided the points are close enough together.
  • A model can fit observed data very well and still fail badly outside the observed range.
  • Uncertainty widens as you move away from the data, and the usual error bands do not cover the chance that the model's form is wrong.
  • Extrapolation is stronger when a well-tested mechanism supports it and when known limits have been checked.

Interpolation estimates a value between measurements you already have. Extrapolation estimates a value outside their range. Interpolation is usually safer, because data on both sides constrain the answer. Extrapolation relies on the assumption that the pattern continues where you have not looked.

A line on a graph does not show where that support ends. You have to find the first and last data points and notice how far the line, and the claim, run past them.

A spring on the bench

You hang masses from a spring and record its length. Suppose the made-up readings are these.

Mass (g) 100 200 300
Length (cm) 12 14 16

The points lie on a line: length = 10 + 0.02 × mass, with length in centimeters and mass in grams.

at 250 g (inside the data):      10 + 0.02 × 250  =  15 cm
at 5,000 g (far outside):        10 + 0.02 × 5000 = 110 cm

The first estimate is believable. The second is not something these data can tell you. A real spring stretched far enough passes its elastic limit, deforms permanently or breaks. The line knows nothing about that.

Even the intercept of 10 cm at zero mass is a small extrapolation. It is probably close to the unloaded length, but some springs have coils pressed together that do not begin to open until a certain force is applied. Measuring it is better than assuming it.

How interpolation can fail

Between two points, many curves are possible. Drawing a straight segment assumes nothing dramatic happens in the gap.

Suppose you record outdoor temperature once a day at noon. Connecting the points gives a smooth line that misses every night. Sampling too sparsely can even create a false slow pattern from a fast cycle, an effect called aliasing.

Sharp changes are another hazard. Water heated at normal atmospheric pressure warms steadily and then stays near 100 °C while it boils. Readings taken well before and well after a transition may not reveal the plateau or the jump in between.

So interpolation is only as good as the spacing. Where behavior may change quickly, take more measurements there.

Why reaching beyond is harder

Outside the data, nothing you observed rules out a bend. Several kinds are common. Growth that looks exponential slows as space or food runs short. A response to a dose levels off when every receptor or reaction site is occupied. A material behaves proportionally until it yields. A trend in sales stops when most potential buyers already own the product.

A child who grows several centimeters a year does not keep doing so into middle age. The example is silly because we know the mechanism. In unfamiliar territory the equivalent error is much harder to notice.

Percentages show limits clearly. A share rising by 5 points a year cannot continue past 100%, and in practice will usually slow well before.

Estimating inside and outside the data
Interpolation Between the first and last points Data constrain both sides Can miss jumps or cycles in wide gaps Extrapolation Beyond the observed range Rests on the pattern continuing Limits and new effects may appear VS Interpolation Between the first and last points Data constrain both sides Can miss jumps or cycles in wide gaps Extrapolation Beyond the observed range Rests on the pattern continuing Limits and new effects may appear

Good fit is not good prediction

Two models can match the same data closely and diverge wildly beyond them. A straight line, a gentle curve and an exponential may be nearly indistinguishable over a short early stretch.

Adding flexibility makes this worse. Through any five points with different horizontal values, you can pass a polynomial of degree four or lower exactly. It fits perfectly, noise included, and often swings sharply just past the last point. This is overfitting: the model has learned the accidents of the sample.

A summary number can also hide shape. The statistician Francis Anscombe constructed four small datasets in 1973 with nearly identical means, spreads and fitted lines. Plotted, one looks like a noisy line, one a clear curve, and two are dominated by single unusual points. Always look at the points.

Two curves that agree, then part

Suppose a made-up count is 100 in year 0 and 110 in year 1. Two simple rules both pass through those points: add 10 each year, or multiply by 1.1 each year.

Year Add 10 each year Multiply by 1.1 each year
0 100 100
1 110 110
2 120 121
10 200 about 259
30 400 about 1,745

At year 2 the rules differ by a single unit, well within the noise of most measurements. By year 30 one prediction is more than four times the other. Data from the first few years could not have chosen between them, and there is no guarantee that either is right.

A choice between such rules should come from knowledge of the process. Does each new item add to the capacity to produce more, as with dividing cells in plentiful food? Or does a fixed outside source supply the same amount each year? Answering that is more useful than comparing how neatly two lines hug the early points.

What the uncertainty band shows

Fitted lines are often drawn with a shaded band that flares at the ends. The flare reflects the fact that a small error in slope matters more the farther you travel from the middle of the data.

The band usually assumes that the chosen form of model is correct. If the true relationship curves and you fitted a line, reality can lie far outside the band. Nearby uncertainty can be calculated. The risk of having the wrong shape has to be argued.

Real measurement uncertainty in each point adds to this, as does any bias shared by all of them.

When extrapolation works

Science extrapolates all the time, sometimes with great success. The volume of a gas at constant pressure falls nearly linearly as it cools. Extending that line to zero volume points to a temperature near −273 °C, close to absolute zero.

V = V₀ × (1 + t ÷ 273.15)      t in °C, V₀ = volume at 0 °C
V = 0 when t = −273.15 °C

Real gases condense into liquids before getting there, so the volume never actually vanishes. The extrapolation was informative about the temperature scale, while being wrong as a description of any real sample at that point. Its meaning was secured later by thermodynamic theory and other evidence.

Planetary positions can be predicted far ahead because the laws of motion and gravity have been tested widely. Even there, small uncertainties grow, and some systems are sensitive enough that predictions lose value after a time. The strength comes from the mechanism and its track record, not from the neatness of a line.

Reading projections

Reports often extend a chart into the future with a dashed line. Find where observation ends. Ask what is assumed: that a rate stays constant, that a policy is unchanged or that nobody responds. A projection conditional on stated assumptions differs from a forecast of what will most likely happen, and neither is a measurement.

Look for several scenarios or a range. Check whether earlier versions of the same projection matched what followed. And watch the starting point, since the slope that gets extended depends on which years were used.

Extrapolation also happens without any graph: from one species to another, from young volunteers to older patients or from high doses to low ones. The question of how far a result travels is the same question.

More than one input

With two or more inputs, the edge of the data is harder to see. Say a study includes young adults who exercise a lot and older adults who exercise a little. Age and exercise each cover a wide range, yet the study contains nobody who is old and very active.

A model can still produce a number for that person. It is an extrapolation, although the age and the exercise level each look familiar on their own. Plotting one input against the other shows the empty corners. Predictions there depend heavily on assumptions about how the two inputs combine, and a careful author will flag them or leave them out.

Calibration curves

Laboratories lean on interpolation every day. An instrument is given standards of known value, its readings are recorded and an unknown sample is converted back through the resulting curve. The sound practice is to choose standards that bracket the samples.

If a sample reads higher than the highest standard, the instrument may no longer be responding proportionally. The usual remedy is to dilute the sample or measure additional standards, not to stretch the curve and hope. The same idea applies to a thermometer or a force sensor used beyond the range where it was checked, part of calibration.

A short test

  1. What range do the data cover?
  2. Is the estimate inside or outside it, and by how far compared with the width of the range?
  3. Are the gaps small enough to catch cycles or jumps?
  4. Is there a physical or logical limit nearby?
  5. Why should this form of curve continue?
  6. What new observation would show that it has not?

The last question turns an extrapolation into something useful: a prediction that could fail. Go and measure out there, if you safely can.

Written for 4Sciences with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 42 articles in Evidence, Data and Statistics for Readers →

Latest news on this topic