Does the feature used at the root split of a decision tree necessarily have the highest feature importance?

Quick Overview

Asks whether the feature chosen for the root split of a decision tree must also have the highest feature importance. Tests how impurity-based importance is computed, how greedy split selection works, and how feature interactions shape importance rankings.

Does the feature used at the root split of a decision tree necessarily have the highest feature importance?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Does the feature used at the root split of a decision tree necessarily have the highest feature importance? Assume the usual impurity-based importance (mean decrease in impurity) that tree libraries report by default. ```hint What gets summed Write down how impurity-based importance is computed: which nodes contribute to a feature's score, and how each contribution is weighted. ``` ### What a Strong Answer Covers - A direct answer, tied to how impurity importance adds up contributions across nodes - Why the root split tends to rank high - At least one way a feature used deeper in the tree can accumulate more importance, such as repeated use or an interaction - How stable the root choice is under small data changes or correlated features - How other importance measures can change the ranking ### Follow-up Questions - How does the answer change for a random forest, where each tree may pick a different root? - Why is impurity-based importance biased toward continuous or high-cardinality features, and what would you use instead? - If two features are highly correlated, how does that affect the importance each one receives? - Should feature importance be computed on training data or on held-out data?

Overview: Asks whether the feature chosen for the root split of a decision tree must also have the highest feature importance. Tests how impurity-based importance is computed, how greedy split selection works, and how feature interactions shape importance rankings.

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

Does the feature used at the root split of a decision tree necessarily have the highest feature importance?

Assume the usual impurity-based importance (mean decrease in impurity) that tree libraries report by default.

What a Strong Answer Covers Guidance

  • A direct answer, tied to how impurity importance adds up contributions across nodes
  • Why the root split tends to rank high
  • At least one way a feature used deeper in the tree can accumulate more importance, such as repeated use or an interaction
  • How stable the root choice is under small data changes or correlated features
  • How other importance measures can change the ranking

Follow-up Questions Guidance

  • How does the answer change for a random forest, where each tree may pick a different root?
  • Why is impurity-based importance biased toward continuous or high-cardinality features, and what would you use instead?
  • If two features are highly correlated, how does that affect the importance each one receives?
  • Should feature importance be computed on training data or on held-out data?