Extra Trees
If a single decision tree feels like a smart but impulsive guess, an ensemble of trees feels like a committee. Extra Trees (Extremely Randomized Trees) is a way to build that committee so the trees disagree in useful ways—then vote or average to get a steadier prediction.
What Extra Trees are doing
Extra Trees is an ensemble method that trains many decision trees independently and combines them. Like a Random Forest, it reduces the “high variance” problem of single trees. The key twist is how splits are chosen inside each tree: for a given node, Extra Trees picks a random subset of features, then chooses split thresholds at random (rather than searching for the best threshold). Among these randomly proposed splits, it selects the one that improves purity the most. This extra randomness makes individual trees less correlated, which usually improves generalization when you average them.
How it differs from Random Forest
- Split thresholds: Random Forest searches for the best threshold; Extra Trees samples thresholds randomly.
- Sampling rows: Random Forest typically uses bootstrap samples; Extra Trees often uses the full dataset by default (but can also bootstrap).
- Speed: Less split-searching usually makes Extra Trees faster, especially on wide datasets.
Why it matters in real supervised tasks
Extra Trees is a strong default for tabular classification and regression—credit scoring, churn prediction, fraud detection, or house price prediction—because it handles nonlinear relationships and feature interactions with minimal preprocessing. Ignoring the “extra randomness” piece can lead you to expect the same behavior as Random Forest: Extra Trees can be slightly more biased but often lower-variance, and it can be more robust when many features are noisy. In scikit-learn you’ll see
ExtraTreesClassifier and ExtraTreesRegressor, with familiar knobs like n_estimators, max_features, and min_samples_leaf.
Extra Trees (Extremely Randomized Trees) is an ensemble of decision trees trained with stronger randomization than random forests: each split tests randomly chosen features and random split thresholds, typically using the full dataset rather than bootstrap samples. Predictions are aggregated by averaging (regression) or majority vote (classification). It matters because the added randomness reduces variance and training time, often improving generalization on noisy, high-dimensional data.
Think of a courtroom sketch artist working at lightning speed: instead of carefully measuring every feature, they slap down quick, almost-random strokes. One sketch alone looks crude — but lay fifty hasty sketches on top of each other and a sharp, accurate face emerges from the blur.
Extra Trees (short for “extremely randomized trees”) builds its many decision trees in just that hurried way. Where most methods painstakingly search for the best place to split the data, Extra Trees picks its split points largely at random. Each tree is rougher and more carelessly drawn, but that extra randomness makes the trees very different from one another — and combining a whole forest of them gives predictions that are both accurate and unusually fast to train.