How a tree learns
A decision tree recursively splits the data on a feature value to minimize an impurity criterion (Gini for classification, MSE for regression). Each leaf gets the majority label or mean target. Trees natively handle missingness, mixed types, monotone and non-monotone relationships, and interactions, which is why they punch above their weight on tabular data.
Strengths and weaknesses
- Strength: easy to inspect; one tree can be drawn on a whiteboard for product reviews.
- Strength: no scaling, no encoding pain, no normality assumptions.
- Weakness: single trees overfit aggressively at high depth.
- Weakness: small data perturbations produce wildly different trees.
How to use them
Use a single shallow tree (depth 3-5) as an inspectable baseline and as a stakeholder explanation tool. For prediction quality, almost always graduate to random forests or gradient boosting; the bias-variance tradeoff is solved by ensembling.