mlprep
Medium10 min·1 round·Classical ML

How do decision trees split? Walk me through Gini impurity vs information gain.

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

How does a decision tree decide where to split? What's the difference between Gini impurity and information gain, and which should you use?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • What is cost-complexity pruning and how does it differ from setting max_depth?
  • How does a decision tree handle numeric vs categorical features differently?
  • Why do decision trees partition the feature space into axis-aligned rectangles? What does this mean for modeling circular or diagonal decision boundaries?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions