- Introduced by
- Breiman, L.; Dietterich, T. G.
- Year
- 1996–2000
- Type
- Ensemble (multiple decision trees combined)
- Family
- Machine learning
What does it do?
Ensemble decision tree methods train several decision trees and combine their predictions, which often gives better accuracy and stability than any single tree.
Strategies such as bagging, random feature subsampling and voting determine how the trees differ from one another and how their outputs are pooled. The approach is widely used for tabular classification and regression.
The intuition behind the method
A single decision tree is easy to read but unstable: it can overfit the training data, and a small change in the data can alter its structure considerably. Training many trees on different random views of the data, whether different subsets of observations, different subsets of features, or both, means that the errors of individual trees are less likely to coincide. Pooling their answers averages out much of this variability. The cost is that the model can no longer be read as a single tree structure.
History
Breiman's 1996 paper on bagging predictors introduced averaging predictors fitted to bootstrap samples, and this is the basis for applying bagging to decision trees. Dietterich's 2000 survey reviewed ensemble methods in machine learning as a general field and is a commonly cited reference for the area. 'Ensemble decision tree' is a general label covering several methods rather than a single named technique. Random Forest adds random feature selection to bagged trees; it can be viewed as a generalisation of basic bagging as applied to decision trees, and it is a prominent member of this family.
When to use it
Choose an ensemble decision tree when the data are tabular, the relationship between predictors and outcome may be nonlinear or involve interactions, the variables mix continuous and categorical types, and predictive performance matters more than reading individual coefficients or tree paths. It suits medium and large datasets, where averaging has enough observations to stabilise the individual trees. Avoid it when a fully transparent, auditable model is required, since a single decision tree or a linear model is then easier to justify. It is also a poor fit for very small samples, where individual trees are unstable and overfitting risk is high, and when the main goal is estimating the causal effect of a single predictor.
Limitations and considerations
- The ensemble has no single tree structure to inspect; explaining a particular prediction requires tracing many trees or using separate post-hoc tools.
- Training and prediction cost grow with the number of trees and with the depth of each tree.
- Impurity-based feature importances are biased toward features that offer many possible split points, and they are unreliable when few observations support the splits.
- Averaging leaf class-probability estimates does not guarantee well-calibrated predicted probabilities.
- Averaging reduces the effect of individual overfitted trees but does not protect against label errors that all trees learn consistently.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Averaging trees fitted to different observation samples or feature subsets reduces the variance that makes a single fully grown tree unstable. The reduction is limited when the trees are strongly correlated: for k averaged trees with individual variance σ² and average correlation ρ between their predictions, the variance of the ensemble is ρσ² + (1−ρ)σ²/k. The ρσ² term does not shrink as trees are added, which is why diversity strategies such as random feature selection are used alongside bagging.
- Splits are based on thresholds, so monotonic rescaling of continuous features does not change the fitted trees and scaling is not required.
- Because each split is conditioned on earlier splits, interactions between features can be represented without being specified in advance.
- Continuous, ordinal and binary features can be split directly; categorical features usually need encoding in common implementations.
- Impurity-based or permutation-based importance measures rank predictors, although these rankings have the limitations described below.
Applications
- Credit risk scoring and fraud detection on structured financial data.
- Medical diagnosis and clinical outcome prediction from patient records.
- Customer churn prediction and targeted marketing in industry.
- Remote sensing classification (land cover, crop type) using spectral feature tables.
- Benchmark comparisons and baseline models in applied machine-learning research.
- Variable importance screening in high-dimensional genomics and bioinformatics datasets.
How it works
How it works
Each tree is grown recursively on its training data. At every node it chooses the split that best reduces an impurity measure, such as Gini impurity or information gain for classification, or mean squared error for regression. Growth stops when a stopping criterion, such as a maximum depth or minimum node size, is met.
The trees are made to differ so that they do not repeat the same mistakes; if they were nearly identical, aggregating them would add little. Common mechanisms are bootstrap sampling of training observations (bagging), selecting a random subset of features at each split (random subspacing), or both together.
A new observation is passed from the root of each tree to a leaf by following the learned splitting rules. For classification, the tree's prediction is the majority class of the training observations in that leaf; for regression, it is their mean target value.
The tree outputs are aggregated into one prediction. For classification this is a majority vote or an average of class-probability estimates; for regression it is the arithmetic mean. This is the function f in the formula above. Averaging is intended to reduce variance, and its effect on bias depends on how similar the individual trees are.
Formula
\hat{y} = f(\hat{y}_1, \hat{y}_2, \ldots, \hat{y}_T)Common pitfalls
- Using too few trees without checking that out-of-bag or cross-validated performance has levelled off as trees are added.
- Leaving class imbalance untreated: leaves can be dominated by the majority class, so class weights or resampling are needed.
- Reporting accuracy alone on imbalanced outcomes; precision, recall, F1, precision-recall or ROC-based measures show whether minority cases are predicted.
- Treating impurity-based feature rankings as stable on small or high-dimensional data without checking them across resamples.
- Evaluating the ensemble only on its training data, which measures fit rather than out-of-sample error; use held-out data or cross-validation.
Frequently asked questions
How is an ensemble decision tree different from a single decision tree?
A single tree is grown to fit the training data and produces one deterministic prediction. An ensemble grows many trees on varied views of the data and combines their predictions. The combination reduces variance and overfitting, often improving generalisation, although the size of the gain depends on how correlated the trees are.
What is the difference between this and Random Forest?
Random Forest is the most popular specific instance of an ensemble decision tree method, combining bootstrap sampling of observations with random feature subsampling at each split. Ensemble decision tree is the broader category that also includes methods using only bootstrap (bagging), only feature subsampling, or other diversity strategies.
How many trees should I use?
Track out-of-bag error or cross-validated error as trees are added, and stop when the curve levels off. Higher-dimensional data often needs more trees before performance stabilises, so inspect the curve for your own data rather than relying on a default.
Does an ensemble decision tree require feature scaling?
No. Decision trees split on threshold values and are invariant to monotonic transformations of features, so normalisation or standardisation is not required before training.
Can ensemble decision trees handle missing data?
Many implementations support surrogate splits or can pass missing values to the majority branch, offering some native tolerance. However, explicit imputation before training generally improves performance and should be preferred when feasible.
Related methods
Sources
Dietterich, T. G. (2000). Ensemble methods in machine learning. In Multiple Classifier Systems, Lecture Notes in Computer Science, vol. 1857, pp. 1–15. Springer, Berlin, Heidelberg.
Open DOI referenceBreiman, L. (1996). Bagging predictors. Machine Learning, 24(2), 123–140.
Open DOI reference2015_Book_DataMining, p. ?