Why are decision trees robust to outliers in the input features?

Quick Overview

Asks why extreme values in the input features barely affect a decision tree, in terms of how splits are chosen and applied. Tests understanding of threshold rules, candidate splits, invariance to monotonic transforms, and the limits of this property for target outliers and out-of-range inputs.

Why are decision trees robust to outliers in the input features?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are decision trees robust to outliers in the input features? Explain the mechanism in terms of how a tree chooses its splits and how it applies them to make a prediction. ```hint Look at what a tree does with a value Find the only operation a tree ever performs on a feature value, both while choosing splits and while predicting. Then compare it with what a linear model or a nearest-neighbor model does with the same value. ``` ### What a Strong Answer Covers - The property of split rules that makes the magnitude of a feature value irrelevant - What an extreme feature value can and cannot change among the candidate splits - The link to invariance under monotonic transforms and to feature scaling - The limits of this property, and how to guard against them ### Follow-up Questions - How do outliers in the target affect a regression tree and a gradient boosting model, and what would you change? - A test input has a feature value ten times larger than anything seen in training. What does a tree predict, and is that a problem? - Your data uses -999 to mark missing values in a numeric column. What will a tree do with it? - Are random forests and gradient boosted trees equally insensitive to feature outliers?

Overview: Asks why extreme values in the input features barely affect a decision tree, in terms of how splits are chosen and applied. Tests understanding of threshold rules, candidate splits, invariance to monotonic transforms, and the limits of this property for target outliers and out-of-range inputs.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why are decision trees robust to outliers in the input features? Explain the mechanism in terms of how a tree chooses its splits and how it applies them to make a prediction.

What a Strong Answer Covers Guidance

  • The property of split rules that makes the magnitude of a feature value irrelevant
  • What an extreme feature value can and cannot change among the candidate splits
  • The link to invariance under monotonic transforms and to feature scaling
  • The limits of this property, and how to guard against them

Follow-up Questions Guidance

  • How do outliers in the target affect a regression tree and a gradient boosting model, and what would you change?
  • A test input has a feature value ten times larger than anything seen in training. What does a tree predict, and is that a problem?
  • Your data uses -999 to mark missing values in a numeric column. What will a tree do with it?
  • Are random forests and gradient boosted trees equally insensitive to feature outliers?