Why do Decision Trees struggle with extrapolation?

Updated May 16, 2026

Short answer

Decision Trees cannot extrapolate beyond training data because they make piecewise constant predictions.

Deep explanation

Decision Trees partition the feature space into finite regions and assign a constant value (or class) to each region. This means predictions outside observed ranges are still mapped to the nearest learned region, without trend extrapolation. Unlike linear or neural models, trees do not learn continuous functional relationships. This makes them strong for interpolation but weak for forecasting or extrapolation tasks like long-term time series prediction.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Decision Trees interview questions

View all →