What is the difference between interpolation and extrapolation in supervised prediction?

Quick Overview

Asks how interpolation and extrapolation differ when a supervised model predicts on new inputs. Tests what drives predictions outside the training data, how common model families behave there, and how to evaluate and detect extrapolation in practice.

What is the difference between interpolation and extrapolation in supervised prediction?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the difference between interpolation and extrapolation in supervised prediction? ```hint Compare two models Pick two model families, such as linear regression and a random forest, and ask what each one predicts for an input far larger than anything in the training set. ``` ### What a Strong Answer Covers - Definitions of both terms in terms of where an input lies relative to the training data - Why predictions become unreliable outside the data, and what determines them there - How different model families behave when they extrapolate - Why the convex-hull definition breaks down in high dimensions, and a more practical test - How to evaluate and guard against extrapolation in practice ### Follow-up Questions - A random forest that predicts house prices is asked about a house twice the size of any in training. What does it output, and why? - Why does a random train/test split overstate performance for a demand forecasting model, and which split would you use? - How would you detect at serving time that an input is outside the training distribution? - The business needs predictions beyond the training range. Which modeling choices make that safer?

Overview: Asks how interpolation and extrapolation differ when a supervised model predicts on new inputs. Tests what drives predictions outside the training data, how common model families behave there, and how to evaluate and detect extrapolation in practice.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the difference between interpolation and extrapolation in supervised prediction?

What a Strong Answer Covers Guidance

  • Definitions of both terms in terms of where an input lies relative to the training data
  • Why predictions become unreliable outside the data, and what determines them there
  • How different model families behave when they extrapolate
  • Why the convex-hull definition breaks down in high dimensions, and a more practical test
  • How to evaluate and guard against extrapolation in practice

Follow-up Questions Guidance

  • A random forest that predicts house prices is asked about a house twice the size of any in training. What does it output, and why?
  • Why does a random train/test split overstate performance for a demand forecasting model, and which split would you use?
  • How would you detect at serving time that an input is outside the training distribution?
  • The business needs predictions beyond the training range. Which modeling choices make that safer?