Why can a Random Forest regressor not extrapolate beyond the range of the training targets?

Quick Overview

Asks why a Random Forest regressor cannot predict values outside the range of its training targets or continue a trend beyond the training data. Tests how regression tree leaves and forest averaging work, what that means for forecasting, and how to work around the limitation.

Why can a Random Forest regressor not extrapolate beyond the range of the training targets?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why can a Random Forest regressor not extrapolate beyond the range of the training targets? ```hint Look inside a leaf Write down what a regression tree's leaf stores, then what the forest does with those stored values to form a prediction. ``` ### What a Strong Answer Covers - What a regression tree leaf predicts and how the forest combines leaf predictions - Why that combination is bounded by the smallest and largest training target - How predictions behave for inputs beyond the training feature range - Practical consequences, such as trending forecasts, and ways to work around the limitation ### Follow-up Questions - Does gradient boosting have the same limitation, and is its output strictly bounded by the training targets? - How would you forecast a series with a steady upward trend using tree models? - How would you detect at serving time that inputs have moved outside the range the model was trained on?

Overview: Asks why a Random Forest regressor cannot predict values outside the range of its training targets or continue a trend beyond the training data. Tests how regression tree leaves and forest averaging work, what that means for forecasting, and how to work around the limitation.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why can a Random Forest regressor not extrapolate beyond the range of the training targets?

What a Strong Answer Covers Guidance

  • What a regression tree leaf predicts and how the forest combines leaf predictions
  • Why that combination is bounded by the smallest and largest training target
  • How predictions behave for inputs beyond the training feature range
  • Practical consequences, such as trending forecasts, and ways to work around the limitation

Follow-up Questions Guidance

  • Does gradient boosting have the same limitation, and is its output strictly bounded by the training targets?
  • How would you forecast a series with a steady upward trend using tree models?
  • How would you detect at serving time that inputs have moved outside the range the model was trained on?