Why are unconstrained, deep decision trees prone to overfitting?

Quick Overview

Asks why decision trees grown without depth or leaf-size limits tend to overfit. Tests your understanding of model capacity, how sample sizes shrink down the tree, the instability of greedy splitting, and the pruning and ensemble methods used to control variance.

Why are unconstrained, deep decision trees prone to overfitting?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why are unconstrained, deep decision trees prone to overfitting? ```hint Follow the data down the tree Each split divides the training rows between its children. Think about how many rows a node at depth 15 still has to base its decisions on. ``` ### What a Strong Answer Covers - What an unconstrained tree does with the training set (splitting until leaves are pure) and what that means for training error. - How capacity grows with depth. - Why splits and leaf predictions deep in the tree rest on very small samples and pick up noise. - The instability of greedy, hierarchical splitting. - The standard remedies: pre-pruning, post-pruning and ensembles. ### Follow-up Questions - How does cost-complexity pruning decide which subtrees to remove, and how would you choose `ccp_alpha`? - Why do random forests usually grow deep, unpruned trees while gradient boosting usually uses shallow ones? - If you could tune only one of `max_depth` and `min_samples_leaf`, which would you pick and why?

Overview: Asks why decision trees grown without depth or leaf-size limits tend to overfit. Tests your understanding of model capacity, how sample sizes shrink down the tree, the instability of greedy splitting, and the pruning and ensemble methods used to control variance.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Why are unconstrained, deep decision trees prone to overfitting?

What a Strong Answer Covers Guidance

  • What an unconstrained tree does with the training set (splitting until leaves are pure) and what that means for training error.
  • How capacity grows with depth.
  • Why splits and leaf predictions deep in the tree rest on very small samples and pick up noise.
  • The instability of greedy, hierarchical splitting.
  • The standard remedies: pre-pruning, post-pruning and ensembles.

Follow-up Questions Guidance

  • How does cost-complexity pruning decide which subtrees to remove, and how would you choose ccp_alpha ?
  • Why do random forests usually grow deep, unpruned trees while gradient boosting usually uses shallow ones?
  • If you could tune only one of max_depth and min_samples_leaf , which would you pick and why?