A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Advanced Ensemble Methods

Graduate Depth 83 in the knowledge graph ☐ I know this ☆ Set as goal
22topics build on this
399prerequisites beneath it
See this on the map →
Decision Trees and Random ForestsProbability Axioms→→Boosting Theory (AdaBoost Analysis)Gradient Boosting Machines+1 more
ensemble supervised-learning

Core Idea

Ensemble methods combine multiple learners reducing variance, bias, or both. Bagging reduces variance; boosting reduces bias by sequentially correcting errors. Stacking uses meta-learners combining base learners. Diversity among learners is critical for performance.

Explainer

From your work with decision trees and random forests, you already have intuition for the core insight behind ensembles: a committee of imperfect models can outperform any single model if their errors are sufficiently uncorrelated. A single decision tree is unstable — small changes in training data can produce a completely different tree structure. But if you train many trees on different random subsets of the data and average their predictions, the idiosyncratic errors of individual trees cancel out while the genuine signal reinforces. This is bagging (bootstrap aggregating), and it primarily reduces variance without significantly increasing bias. Random forests extend bagging by also randomizing feature selection at each split, further decorrelating the trees.

Boosting attacks the problem from the opposite direction. Instead of training independent models and averaging them, boosting trains models sequentially, with each new model specifically targeting the mistakes of the previous ensemble. In AdaBoost, misclassified examples receive higher weights so the next learner focuses on the hard cases. In gradient boosting, each new model is fit to the residual errors — the difference between the current ensemble's predictions and the true values. Because each new model corrects systematic errors rather than random noise, boosting primarily reduces bias. The tradeoff is that boosting is more prone to overfitting than bagging, especially with noisy data, because it can learn to fit the noise if run for too many iterations. Learning rate (shrinkage) and early stopping are the standard safeguards.

Stacking (stacked generalization) takes a different approach entirely. Instead of combining base learners through simple averaging or weighted voting, stacking trains a meta-learner that learns the optimal way to combine base model predictions. You might train a decision tree, a logistic regression, and a neural network as base learners, then feed their predictions as features into a second-level model (often a simple linear model) that learns which base learner to trust in which situations. The key requirement is that the meta-learner must be trained on out-of-fold predictions from the base learners — if you use in-sample predictions, the meta-learner will simply learn to trust whichever base model overfits most.

The unifying principle across all ensemble methods is diversity. If all models make the same errors, combining them helps nothing — you just get the same wrong answer more confidently. Bagging creates diversity through data resampling; random forests add feature randomization; boosting creates diversity by reweighting examples; stacking creates diversity by using fundamentally different model families. The theoretical guarantee is precise: for regression with averaging, the ensemble error equals the average error of individual models minus their average pairwise diversity. This means that even mediocre models, if sufficiently diverse, can combine into a strong ensemble — a result that explains why ensemble methods consistently dominate machine learning competitions and production systems.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Conditional Statements → Defining and Calling Functions → Functions: Decomposing Problems → Function Parameters and Argument Passing → Return Values → Variable Scope → Introduction to Classes → Objects and Instances → Methods and Attributes → Algorithm Design Basics → Decision Trees and Random Forests → Advanced Ensemble Methods

Longest path: 84 steps · 399 total prerequisite topics

Prerequisites (2)

Leads To (3)