How do surrogate splits let a decision tree handle missing values at test time?

Quick Overview

Asks how surrogate splits let a CART-style decision tree route test rows whose split feature is missing. Tests understanding of how surrogates are chosen by agreement, the majority-rule baseline, the fallback order at prediction time and how other tree libraries handle missing values.

How do surrogate splits let a decision tree handle missing values at test time?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How do surrogate splits let a decision tree handle missing values at test time? ```hint Reproduce the decision Think about how you could recover a node's left or right decision for a row whose split feature is missing, using only the features that row does have. ``` ```hint Score the backups Ask how you would measure the quality of a candidate backup split, and what simple baseline it has to beat to be worth keeping. ``` ### What a Strong Answer Covers - What a surrogate split is, and how candidates are found and ranked at each node during training - The baseline a surrogate must beat to be kept - The routing order at prediction time, including the fallback when every surrogate feature is missing - Why the method depends on correlated features, and its costs and limits - How libraries without surrogates handle missing values ### Follow-up Questions - When missingness itself predicts the label, how do learned default directions (as in XGBoost) compare with surrogate splits? - `rpart` credits surrogate splits in its variable importance. How can that make a feature that is never a primary split look important? - Training rows can also be missing the primary feature. How should they be used when growing the deeper nodes?

Overview: Asks how surrogate splits let a CART-style decision tree route test rows whose split feature is missing. Tests understanding of how surrogates are chosen by agreement, the majority-rule baseline, the fallback order at prediction time and how other tree libraries handle missing values.

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

How do surrogate splits let a decision tree handle missing values at test time?

What a Strong Answer Covers Guidance

  • What a surrogate split is, and how candidates are found and ranked at each node during training
  • The baseline a surrogate must beat to be kept
  • The routing order at prediction time, including the fallback when every surrogate feature is missing
  • Why the method depends on correlated features, and its costs and limits
  • How libraries without surrogates handle missing values

Follow-up Questions Guidance

  • When missingness itself predicts the label, how do learned default directions (as in XGBoost) compare with surrogate splits?
  • rpart credits surrogate splits in its variable importance. How can that make a feature that is never a primary split look important?
  • Training rows can also be missing the primary feature. How should they be used when growing the deeper nodes?