How do highly correlated features affect split selection and impurity-based importance in a single decision tree?

Quick Overview

Asks what happens inside a single decision tree when two features are highly correlated, both at split time and in impurity-based feature importance. Tests your understanding of how splits are chosen, how MDI assigns credit, and how to report importance responsibly.

How do highly correlated features affect split selection and impurity-based importance in a single decision tree?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do highly correlated features affect split selection and impurity-based importance in a single decision tree? Consider two features that are almost copies of each other, each equally predictive of the target on its own. ```hint Start at the root Compare the impurity reduction each twin offers at the first split. After one of them is used, how much is left for the other to explain in the child nodes? ``` ```hint What MDI adds up Impurity-based importance sums the impurity reduction of the splits that use each feature. Which feature owns those splits? ``` ### What a Strong Answer Covers - How the tree chooses between two near-identical candidate splits, and what decides near-ties - Why the second twin adds little impurity reduction once the first is used - How credit is distributed in mean decrease in impurity, and why the ranking is unstable - How permutation-based importance behaves with correlated features - Practical mitigations for reporting importance ### Follow-up Questions - How does the picture change in a random forest that samples a subset of features at each split? - How would SHAP values attribute credit between the two twins in this tree? - Would you drop one of two correlated features before training? What do you lose? - How would you present feature importance to stakeholders when several features are near-duplicates?

Overview: Asks what happens inside a single decision tree when two features are highly correlated, both at split time and in impurity-based feature importance. Tests your understanding of how splits are chosen, how MDI assigns credit, and how to report importance responsibly.

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

How do highly correlated features affect split selection and impurity-based importance in a single decision tree?

Consider two features that are almost copies of each other, each equally predictive of the target on its own.

What a Strong Answer Covers Guidance

  • How the tree chooses between two near-identical candidate splits, and what decides near-ties
  • Why the second twin adds little impurity reduction once the first is used
  • How credit is distributed in mean decrease in impurity, and why the ranking is unstable
  • How permutation-based importance behaves with correlated features
  • Practical mitigations for reporting importance

Follow-up Questions Guidance

  • How does the picture change in a random forest that samples a subset of features at each split?
  • How would SHAP values attribute credit between the two twins in this tree?
  • Would you drop one of two correlated features before training? What do you lose?
  • How would you present feature importance to stakeholders when several features are near-duplicates?