What is the difference between interpolation and extrapolation in supervised prediction?
Last updated
Interpolation means predicting for inputs inside the region covered by the training data. Extrapolation means predicting for inputs outside it. Supervised models are generally reliable at interpolation and unreliable at extrapolation, because there the data no longer constrains the prediction: the model's inductive bias does.
Interpolation: Nearby training points constrain the function, so generalization error is well estimated by a held-out set drawn from the same distribution.
Extrapolation:
Behaviour depends on model form, which can produce quite different predictions:
Linear models continue the trend indefinitely.
Tree ensembles flatten to a constant (the edge leaf values).
Neural nets with ReLU become roughly linear far from the data.
Polynomials can blow up.
High-dimensional nuance: In many dimensions, new points almost always fall outside the convex hull of the training data. A more practical notion is whether a point lies in a high-density region of the training distribution.
Practical implications:
Random splits measure interpolation. To estimate extrapolation, use time-based or group-based splits.
Detect out-of-range inputs (density or novelty detection, range checks) and flag those predictions or widen their uncertainty.
If extrapolation is required, prefer models whose structure matches domain knowledge (e.g. monotonic or physics-informed models).