How does recursive binary partitioning construct a decision tree?

Quick Overview

Asks how recursive binary partitioning grows a decision tree from the root to the leaves. Tests the split search over features and thresholds, impurity criteria such as Gini and MSE, stopping rules, leaf predictions, and why the greedy procedure needs pruning.

How does recursive binary partitioning construct a decision tree?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does recursive binary partitioning construct a decision tree? Describe what happens from the root down to the leaves. ```hint Think about one node Ask what the algorithm has to choose at a single node, how it scores each candidate choice, and what makes it stop splitting. ``` ### What a Strong Answer Covers - The split search at a node: which features and thresholds are tried and the impurity criterion used to score them - How samples are routed to the two children and how the recursion proceeds on each subset - The stopping rules and the value a leaf predicts for classification and regression - Why the procedure is greedy and what kind of structure it can miss - How tree growth is controlled to limit overfitting ### Follow-up Questions - Why can a greedy tree fail on an XOR-shaped target, and what would let it recover? - How does cost-complexity pruning decide which subtrees to remove? - How would you search splits on a categorical feature with many levels? - How does the cost of the split search scale with the number of samples and features?

Overview: Asks how recursive binary partitioning grows a decision tree from the root to the leaves. Tests the split search over features and thresholds, impurity criteria such as Gini and MSE, stopping rules, leaf predictions, and why the greedy procedure needs pruning.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does recursive binary partitioning construct a decision tree? Describe what happens from the root down to the leaves.

What a Strong Answer Covers Guidance

  • The split search at a node: which features and thresholds are tried and the impurity criterion used to score them
  • How samples are routed to the two children and how the recursion proceeds on each subset
  • The stopping rules and the value a leaf predicts for classification and regression
  • Why the procedure is greedy and what kind of structure it can miss
  • How tree growth is controlled to limit overfitting

Follow-up Questions Guidance

  • Why can a greedy tree fail on an XOR-shaped target, and what would let it recover?
  • How does cost-complexity pruning decide which subtrees to remove?
  • How would you search splits on a categorical feature with many levels?
  • How does the cost of the split search scale with the number of samples and features?