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

Last updated 5 November 2026

  • Each prediction is an average of leaf means of training targets, so output is always bounded by the min and max training target.

  • Splits are piecewise constant: inputs beyond the training range fall into the outermost leaf, so predictions go flat and no trend continues.

  • Fixes: detrend or fit a linear model first and model residuals with the forest, or use linear-leaf trees (LightGBM linear_tree).

  • https://medium.com/@amit25173/random-forest-interview-questions-43f7be640b76
  • https://medium.com/@coder_cat/nail-your-data-science-interview-day-3-decision-trees-random-forests-6aaf9c4352da
  • https://medium.com/@denizcanguven/why-even-the-best-ml-models-fail-outside-the-forest-c868466c78a6
All Random Forests interview questions