The Variance of Bagging
Let be identically distributed predictors, each with variance . Suppose any two distinct predictors have correlation .
The bagged predictor is the simple average:
(a) Compute as a function of , , and .
(b) What happens as ? What does this tell you about when bagging helps and when it doesn't?
(c) Now suppose you use a biased base learner: each has bias (i.e., where is the true function). Does averaging over bootstrapped copies reduce bias? What is the fundamental limitation of bagging?
Answer: The Variance of Bagging
Key Idea / Intuition
Averaging copies of a random variable reduces variance โ but only the independent part of the variance vanishes. The correlated part is irreducible no matter how many copies you average. This is the core tension in bagging: bootstrap samples from the same training set are highly correlated, so the variance reduction hits a floor. Meanwhile, averaging never touches bias at all.
Formal Proof / Solution
Part (a): Variance of the Bagged Predictor
We expand directly:
Expanding the variance of the sum:
Since each has variance and each pair has covariance :
Therefore:
You can rewrite this cleanly as:
The first term is the irreducible correlated floor, and the second term decays with .
Part (b): As
Interpretation:
- If (independent predictors): variance . Perfect, unlimited reduction.
- If (perfectly correlated, e.g., identical bootstrap samples): variance . No reduction at all.
- In practice, bootstrap samples from the same dataset have high , so bagging gives partial but limited variance reduction.
This is exactly why Random Forests inject extra randomness (random feature subsets) โ they lower between trees, pushing the floor down further.
Part (c): Bias Under Bagging
Compute the bias of :
Averaging does not change the bias. If each base learner is biased by , the bag is also biased by .
Fundamental limitation of bagging:
Bagging is a variance reduction technique only. It cannot fix a biased model.
This is why you should bag low-bias, high-variance models (like deep trees), not high-bias models (like shallow stumps). A pruned tree with high bias does not benefit from bagging โ its ensemble is still biased.
Summary Table
| Quantity | Single Learner | Bagged () | |---|---|---| | Variance | | | | Bias | | | | MSE | | |
The elegant punchline: bagging attacks exactly one term of the bias-variance decomposition, and its power is limited by how correlated the bootstrap models are.
Source: The Elements of Statistical Learning, Hastie, Tibshirani, Friedman, 2nd ed., Section 8.7