Foundations / Supervised
verifiedDecision Tree
Ask a series of yes-or-no questions about a data point until you reach an answer. Each question splits the data, and the tree picks whichever split separates the classes best at that point. It is the one model family a person can simply read: the path to a prediction is the explanation for it.
Choose splits greedily by an impurity measure — Gini or entropy — and stop on depth, leaf size or purity. Greedy means locally optimal and globally not: the tree that would have been better with a different first question is unreachable from here. Unpruned trees fit the training data perfectly and generalise badly, which is precisely what makes them useful as ensemble members. The bias that keeps them competitive on tabular data is the same axis-aligned one: they are untroubled by uninformative features and by targets that are not smooth, which is where a network on the same table still loses.
A split maximises the impurity drop I(parent) − Σ (n sub child /n)·I(child), with Gini impurity I = 1 − Σ p sub k ². Finding the greedy split is Θ(features · examples · log examples) per level; finding the optimal tree is NP-hard, so every tree in practice is the greedy one and nobody has seen the alternative.
impurity-removed holds 30% of the budget; rest holds the remaining 70%.
Impurity a tree has removed against what is left at its leaves, in equal units. Drag the depth to watch the training set become pure — and the tree become memorisation.
Reviewed by opendroid · 2026-08-13
- arXiv:2207.08815 — Why do tree-based models still outperform deep learning on tabular data?
Origin · not linkable
- Hyafil & Rivest 1976 — Constructing Optimal Binary Decision Trees is NP-complete · Information Processing Letters 5(1) · doi:10.1016/0020-0190(76)90095-8