What are axis-aligned decision boundaries in decision trees?

Quick Overview

Asks why standard decision tree splits produce boundaries perpendicular to the feature axes and what that staircase shape costs when the true class boundary is diagonal. Tests tree geometry, rotation sensitivity, invariance to monotonic scaling, and fixes such as engineered features, oblique splits and ensembles.

What are axis-aligned decision boundaries in decision trees?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What are axis-aligned decision boundaries in decision trees? Assume a standard CART-style tree on numeric features. ```hint Start from one split Write down the test a single node performs and sketch, in two dimensions, the set of points that pass it. ``` ### What a Strong Answer Covers - Why a single-feature threshold split gives a boundary perpendicular to one axis, and the hyper-rectangle partition that results - What happens when the true class boundary is diagonal: the staircase approximation, the extra depth and the overfitting risk - Sensitivity to rotating the feature space compared with invariance to monotonic transforms of each feature - At least one mitigation (engineered features, rotation, oblique splits, ensembles) and what it costs - The upside of single-feature splits for interpretability ### Follow-up Questions - Does a random forest or a gradient-boosted model remove the axis-aligned limitation? Why or why not? - How does an oblique tree choose its splits, and what does that cost in training time and readability? - Why does log-transforming a feature leave a decision tree unchanged, while rotating two features can change it a lot?

Overview: Asks why standard decision tree splits produce boundaries perpendicular to the feature axes and what that staircase shape costs when the true class boundary is diagonal. Tests tree geometry, rotation sensitivity, invariance to monotonic scaling, and fixes such as engineered features, oblique splits and ensembles.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What are axis-aligned decision boundaries in decision trees?

Assume a standard CART-style tree on numeric features.

What a Strong Answer Covers Guidance

  • Why a single-feature threshold split gives a boundary perpendicular to one axis, and the hyper-rectangle partition that results
  • What happens when the true class boundary is diagonal: the staircase approximation, the extra depth and the overfitting risk
  • Sensitivity to rotating the feature space compared with invariance to monotonic transforms of each feature
  • At least one mitigation (engineered features, rotation, oblique splits, ensembles) and what it costs
  • The upside of single-feature splits for interpretability

Follow-up Questions Guidance

  • Does a random forest or a gradient-boosted model remove the axis-aligned limitation? Why or why not?
  • How does an oblique tree choose its splits, and what does that cost in training time and readability?
  • Why does log-transforming a feature leave a decision tree unchanged, while rotating two features can change it a lot?