Why do Decision Trees tend to overfit small datasets?

Updated May 16, 2026

Short answer

Decision Trees overfit small datasets because they can create highly specific splits that perfectly memorize training samples.

Deep explanation

With limited data, decision trees can continue splitting until each leaf contains very few samples or even a single sample. This leads to perfect training accuracy but poor generalization. The greedy algorithm prioritizes local impurity reduction, which becomes unreliable when data is sparse. Small datasets amplify variance, making trees highly unstable. Regularization techniques like pruning, min_samples_leaf, and limiting depth are essential in such cases.

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 →