Analyzing CART

Jason M. Klusowski · DOI

Abstract

Decision trees with binary splits are popularly constructed using Classification and Regression Trees (CART) methodology. For binary classification and regression models, this approach recursively divides the data into two near-homogenous daughter nodes according to a split point that maximizes the reduction in sum of squares error (the impurity) along a particular variable. This paper aims to study the bias and adaptive properties of regression trees constructed with CART. In doing so, we derive an interesting connection between the bias and the mean decrease in impurity (MDI) measure of variable importance—a tool widely used for model interpretability—defined as the sum of impurity reductions over all non-terminal nodes in the tree. In particular, we show that the probability content of a terminal subnode for a variable is small when the MDI for that variable is large and that this relationship is exponential—confirming theoretically that decision trees with CART have small bias and are adaptive to signal strength and direction. Finally, we apply these individual tree bounds to tree ensembles and show consistency of Breiman's random forests. The context is surprisingly general and applies to a wide variety of multivariable data generating distributions and regression functions. The main technical tool is an exact characterization of the conditional probability content of the daughter nodes arising from an optimal split, in terms of the partial dependence function and reduction in impurity.

Introduction

Despite being the workhorse of modern machine learning through implementations like Random Forests and Gradient Boosting, the Classification and Regression Trees (CART) algorithm has long lacked a complete theoretical "instruction manual." Most existing statistical guarantees for tree ensembles rely on "purely random" trees—where splits are chosen independently of the target data—because the recursive, data-dependent nature of CART is mathematically complex. This paper addresses the "real" CART algorithm to answer fundamental questions regarding why decision trees exhibit small bias when grown deeply and how they naturally adapt to local signal strength.

Methodology

To analyze the underlying dynamics of the CART partition without the interference of sampling noise, the study shifts from a finite-sample empirical criterion to an asymptotic population-level setting. Key technical innovations include:

  • Partial Dependence Characterization: Utilizing partial dependence functions to describe the best least-squares approximation of a function within a specific node.
  • Probability Content Analysis: Deriving an exact characterization of the conditional probability content of daughter nodes.
  • Localized MDI: Introducing a localized version of Mean Decrease in Impurity (Conditional Variable Importance) using weights derived from first- and second-order optimality conditions of the split point.

The MDI-Bias Connection

The most significant finding is the mathematical link between Mean Decrease in Impurity (MDI) and tree bias. MDI is shown to be more than a heuristic for feature importance; it directly governs the granularity of the tree's partition.

Theorem 1 (The Core Bound): The author establishes that the probability content of a terminal node for a specific variable is exponentially small relative to that variable's MDI: $$\mathbb{P}_X[a_j(t) \le X_j \le b_j(t)] \le \exp(-\frac{\eta}{4} MDI(X_j; t))$$

This quantitatively proves that high variable importance leads to finer partitions. Consequently, trees naturally spend their "splitting budget" where the signal is strongest. In "flat" regions of the feature space, the tree creates large, coarse nodes, while in complex regions, it creates fine-grained nodes to capture detail.

Empirical Validation

The theoretical findings were validated using synthetic "Friedman #1" functions and four representative datasets from the UC Irvine Machine Learning Repository:

  • Airfoil Self-Noise ($n=1503, d=5$)
  • Concrete Compressive Strength ($n=1030, d=8$)
  • Blood Transfusion Service Center ($n=748, d=4$)
  • HTRU2 (Pulsar Identification) ($n=17898, d=8$)

Simulations on these datasets confirmed a clear inverse relationship: as MDI increases, the median length of the terminal subnodes decreases significantly, supporting the exponential bound derived in the theory.

Key Insights

Local Adaptivity and End-Cut Preference

The paper confirms the "end-cut preference" phenomenon, where CART tends to split near the edges of a node when the signal is weak or highly periodic. This is shown to be a mathematical consequence of the impurity reduction objective, allowing the tree to avoid wasting splits on noise and focusing depth on informative regions.

Random Forest Consistency

By applying these individual tree bounds to ensembles, the paper proves the asymptotic consistency of Breiman’s original Random Forest algorithm. Notably, this consistency extends to a broad class of functions, including those represented by Gaussian Radial Basis Function (RBF) networks, moving beyond the "additive model" limitations of previous proofs.

Limitations and Future Directions

While this work provides a rigorous foundation for CART's low bias, it primarily assumes an "infinite sample" at each split. The full interaction between sampling variance and the recursive partitioning process remains a complex frontier. Additionally, while the paper explains why deep trees have low bias, identifying the optimal "stopping point" (the nodesize parameter) to balance bias and variance in finite-sample settings remains a promising area for future research.

Summary updated

BibTeX
@misc{klusowski2019analyzing,
  author = {Jason M. Klusowski},
  title = {{Analyzing CART}},
  year = {2019},
  eprint = {1906.10086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.10086},
}
Figure