How does bagging reduce variance?
mediumAnswer
- Bagging (bootstrap aggregating) trains B models on B bootstrap samples of the training set and averages predictions.
- If the models were independent with variance , the average has variance .
- In practice, trees trained on bootstrapped data are positively correlated (they share most of the data), so the variance reduction is bounded by the correlation rho: Var ≈ .
- Random Forest reduces rho by also sampling features per split.
Check yourself — multiple choice
- Bagging reduces bias, not variance
- Averaging B bootstrapped models reduces variance; correlation limits how much
- Bagging works only for classification
- Bagging is the same as boosting
Averaging reduces variance; tree correlation is the ceiling — RF reduces it via feature subsampling.
#bagging#ensembles#random-forest
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- Why does Random Forest sample features at each split, not just once per tree?
- How do Extra Trees differ from Random Forests?
- What is the out-of-bag (OOB) score in Random Forests?
- Random forest vs gradient boosting — which do you pick and why?
- Which Random Forest hyperparameters actually matter for tuning?
- Are Random Forest probability estimates well-calibrated?