Chip Foundry Services Request Assessment

Bagging (bootstrap Aggregating)

Bagging (Bootstrap Aggregating) is an ensemble learning method that improves model accuracy and stability by training multiple instances of the same base learner on different bootstrap samples (random samples with replacement) of the training data, then aggregating their predictions through voting (classification) or averaging (regression). Introduced by Leo Breiman in 1996, bagging reduces variance without increasing bias, making it particularly effective for high-variance, low-bias base learners.

Why Bagging Matters in AI/ML:
Bagging provides reliable variance reduction that stabilizes predictions from unstable models (decision trees, neural networks, k-NN with low $k$), consistently improving generalization performance while providing natural out-of-bag estimation for validation.

• Bootstrap sampling — Each base learner trains on a bootstrap sample of size $N$ drawn with replacement from the original $N$ training examples; each sample contains $\sim 63.2\%$ unique examples (by the birthday paradox), with $\sim 36.8\%$ left out as "out-of-bag" $(\mathrm{OOB})$ examples
• Variance reduction — For $N$ models with prediction variance $\sigma ^2$ and pairwise correlation $\rho $, bagging reduces variance to $(\rho \cdot \sigma ^2 + (1-\rho )\cdot \sigma ^2/N)$; the benefit is greatest when $\rho $ is small (diverse models) and diminishes for highly correlated predictors
• Out-of-bag estimation — Each training example is excluded from $\sim 36.8\%$ of bootstrap samples; using these models to predict on their OOB examples provides a nearly unbiased estimate of generalization error without needing a separate validation set
• Parallel training — All base learners train independently on their bootstrap samples, enabling embarrassingly parallel training across multiple GPUs, machines, or nodes with no communication overhead during training
• Random Forest extension — Random Forest extends bagging by additionally sampling a random subset of features at each split ($\sqrt{p}$ for classification, $p/3$ for regression), further decorrelating trees to maximize ensemble benefit beyond standard bagging

PropertyValueNotes
Base Learners10-1000 (typically 100-500)Diminishing returns beyond $\sim 200$
Bootstrap Fraction$\sim 63.2\%$ unique per sample1 $- (1 - 1/N)^N \approx 1 - 1/e$
OOB Sample Fraction$\sim 36.8\%$ per modelFree validation estimate
AggregationMajority vote / averageSoft voting (probabilities) preferred
Variance ReductionUp to $1/N$ (uncorrelated)Typically 40-80% reduction
Bias ChangeNone (same base learner)Bagging does not reduce bias
Training ParallelismFully parallelNo inter-model dependencies

Bagging is a foundational ensemble technique that reliably improves prediction stability and accuracy by training diverse models on bootstrap samples and averaging their outputs, providing variance reduction with parallel training efficiency and free out-of-bag error estimation that makes it indispensable for building robust, production-quality machine learning systems.