How does tree depth affect the bias and variance of a single decision tree?

Quick Overview

Asks how the depth of a single decision tree changes its bias and variance, from a one-split stump to a fully grown tree. It tests whether you can link leaf size and split instability to underfitting and overfitting, and how pruning and tree ensembles use the trade-off.

How does tree depth affect the bias and variance of a single decision tree?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does tree depth affect the bias and variance of a single decision tree? Consider one tree trained on a fixed dataset, anywhere from a depth-1 stump to a fully grown tree. ```hint Look at the leaves As depth grows, how many training samples end up in each leaf, and what does that do to how much a leaf's prediction changes when the training set changes? ``` ### What a Strong Answer Covers - Which end of the depth range underfits and which overfits, and why. - How the number of samples per leaf connects to the variance of the predictions. - Why greedy, hierarchical splitting makes deep trees unstable. - How depth is limited and chosen in practice. - How tree ensembles use the depth trade-off on purpose. ### Follow-up Questions - Why does a random forest usually grow its trees deep while gradient boosting uses shallow ones? - How does `min_samples_leaf` differ from `max_depth` as a way to limit variance? - How does cost-complexity pruning decide which subtrees to remove? - Would you expect the best depth to grow or shrink as the training set gets larger?

Overview: Asks how the depth of a single decision tree changes its bias and variance, from a one-split stump to a fully grown tree. It tests whether you can link leaf size and split instability to underfitting and overfitting, and how pruning and tree ensembles use the trade-off.

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

How does tree depth affect the bias and variance of a single decision tree?

Consider one tree trained on a fixed dataset, anywhere from a depth-1 stump to a fully grown tree.

What a Strong Answer Covers Guidance

  • Which end of the depth range underfits and which overfits, and why.
  • How the number of samples per leaf connects to the variance of the predictions.
  • Why greedy, hierarchical splitting makes deep trees unstable.
  • How depth is limited and chosen in practice.
  • How tree ensembles use the depth trade-off on purpose.

Follow-up Questions Guidance

  • Why does a random forest usually grow its trees deep while gradient boosting uses shallow ones?
  • How does min_samples_leaf differ from max_depth as a way to limit variance?
  • How does cost-complexity pruning decide which subtrees to remove?
  • Would you expect the best depth to grow or shrink as the training set gets larger?