Evidence Pack: How Bagging Reduces Variance While Boosting Reduces Bias in Ensemble Models
Bagging builds independent models to average away noise, while boosting builds sequential models to correct past mistakes. Here is the mathematical evidence for how each algorithm attacks a different source of predictive error.
By Sofia Matos
- Parallelization Advocates
- Favor bagging methods like Random Forests for their ease of tuning, resistance to overfitting, and ability to scale across distributed computing clusters.
- Predictive Accuracy Maximizers
- Prioritize boosting algorithms for their superior ability to minimize bias and win predictive modeling competitions, despite the higher risk of overfitting.
- Interpretability Proponents
- Argue that both bagging and boosting create "black box" models, preferring single decision trees or linear models when explainability is legally required.
Perspectives this story doesn't cover
- Hardware engineers optimizing sequential processing limits
What we don’t know
- The exact mathematical threshold at which label noise causes a boosting algorithm's test accuracy to permanently diverge from its training accuracy.
- Whether future hardware architectures will allow for true parallelization of the boosting weight-update step.
For any ensemble machine learning method to improve predictions, a strict mathematical condition must hold: the individual base models must be diverse, and they must perform at least slightly better than random guessing. If one hundred decision trees all memorize the exact same noise in a dataset, averaging their outputs achieves nothing. The architecture of the ensemble only matters if the errors made by the individual models are uncorrelated.[6]
The challenge of predictive modeling is governed by the bias-variance tradeoff. Bias represents the error introduced by approximating a real-world problem with a simplified model, leading to underfitting. Variance represents the error introduced by the model's sensitivity to small fluctuations in the training set, leading to overfitting. Single decision trees are notoriously high-variance instruments; they grow deep and memorize the specific training data they are shown.[4]
In 1996, statistician Leo Breiman introduced Bootstrap Aggregating, or "bagging," as a mechanism to attack this variance directly. Bagging generates multiple distinct training sets by sampling the original dataset with replacement. It then trains a separate, independent model on each of these bootstrap samples.[1]
Because the sampling occurs with replacement, the mathematics of probability dictate that each new training set contains roughly 63.2% of the unique instances from the original data. The remaining 36.8% of the data is left out, serving as an automatic validation set known as the "out-of-bag" sample. By training hundreds of deep decision trees on these slightly different datasets, bagging forces the models to learn different patterns.[3][6]
The variance reduction occurs at the aggregation step. When the independent predictions of multiple models are averaged, the variance of the ensemble drops significantly. While perfect independence is impossible in practice, Breiman noted that "bagging can push a good but unstable procedure a significant step towards optimality" by smoothing out the erratic predictions of individual trees.[1]
However, bagging has a strict mathematical limitation: it cannot reduce bias. The expected value of the averaged predictions is identical to the expected value of a single model trained on the same data. If the base models are too simple and consistently miss the underlying pattern—a state of high bias—averaging one hundred of them will simply produce a highly confident, incorrect prediction.[2]
However, bagging has a strict mathematical limitation: it cannot reduce bias.
Boosting approaches the error problem from the exact opposite direction. Rather than building independent models in parallel, boosting builds models sequentially. Each new model in the sequence is specifically designed to correct the mistakes made by the models that came before it.[4]
The theoretical foundation for this approach was formalized in 1997 by Yoav Freund and Robert Schapire with the AdaBoost algorithm. They proved that a "weak learner"—an algorithm that only needs to achieve an accuracy of 0.5 plus some small margin—could be transformed into a "strong learner" capable of near-perfect accuracy on the training data.[5]
Boosting achieves this by dynamically updating the weights of the training instances. After the first model makes its predictions, the algorithm increases the weights of the misclassified data points and decreases the weights of the correctly classified ones. The second model is then forced to focus its attention on the harder, previously misclassified examples.[3]
As this sequential process continues, the ensemble's bias steadily drops. The combined model becomes increasingly capable of capturing complex, non-linear boundaries that a single weak learner could never map. Freund and Schapire demonstrated that the training error of a boosting algorithm drops exponentially with the number of iterations, provided the weak learning condition holds.[5]
This aggressive bias reduction comes with a severe structural risk. Because boosting relentlessly pursues the hardest examples in the dataset, it is highly susceptible to label noise. If 15% of the training data contains incorrect labels or extreme outliers, the boosting algorithm will eventually dedicate all its capacity to memorizing those errors, causing variance to explode and test accuracy to collapse.[2][3]
The architectural differences between the two methods also dictate their computational limits. Bagging algorithms, such as Random Forests, are trivially parallelizable. Because each tree is independent, a cluster of 100 processors can train 100 trees simultaneously, scaling efficiently across distributed hardware.[6]
Boosting, by definition, cannot be parallelized across iterations. Tree number 50 cannot be built until tree number 49 has finished calculating its errors and updating the instance weights. While modern implementations have introduced parallelization at the node-splitting level within individual trees, the sequential nature of the ensemble remains a hard computational bottleneck.[3][6]
The decision to deploy bagging versus boosting hinges entirely on the primary source of error in the base estimator. When a data science team uses high-variance, complex models that tend to overfit, bagging provides the necessary regularization. When they rely on high-bias, simple models that struggle to capture the signal, boosting forces the necessary complexity.[4]
Sources
[1]Machine Learning (Journal)Parallelization AdvocatesBagging Predictors
Read on Machine Learning (Journal) →
[2]Cross ValidatedInterpretability ProponentsHow can we explain the fact that "Bagging reduces the variance while retaining the bias" mathematically?
Read on Cross Validated →
[3]MDPIPredictive Accuracy MaximizersComparative Analysis of Algorithmic Approaches in Ensemble Learning: Bagging vs. Boosting
Read on MDPI →
[4]DremioInterpretability ProponentsWhat is Bagging and Boosting?
Read on Dremio →
[5]Journal of Computer and System SciencesPredictive Accuracy MaximizersA Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting
Read on Journal of Computer and System Sciences →
[6]Scikit-learnParallelization Advocates1.11. Ensemble methods — scikit-learn documentation
Read on Scikit-learn →
[7]Factlen Editorial TeamSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
Comments
More in Data & Analysis
See all →Differential Privacy
Evidence Pack: The Accuracy and Utility Trade-Offs of Differential Privacy
5 sources
Data Visualization
How the Width of Links in a Sankey Diagram Represents Flow Magnitude and Preserves Conservation
7 sources
Causal Inference
How the Parallel Trends Assumption Validates the Counterfactual in Difference-in-Differences Estimation
6 sources
Census 2026
India Deploys 3 Million Enumerators for World's Largest Digital Census
4 sources
Every angle. Every day.
Get Data & Analysis stories with full source coverage and perspective breakdowns delivered to your inbox.




