2.3.6 · D5Tree-Based & Instance Methods

Question bank — Bagging and bootstrap aggregating

2,110 words10 min readBack to topic

Before you start, meet every symbol this page leans on — nothing here is used before it is named and pictured.

The figure below draws these ideas literally on two rows of dots.

Figure — Bagging and bootstrap aggregating

True or false — justify

Bagging lowers a model's bias.
False. exactly (the arrows' scatter-centre is unchanged by averaging), so the ensemble sits at the same as one model — only the wobble shrinks, never the bull's-eye-to- gap.
Bagging a shallow decision stump gives a big accuracy boost.
False. A stump is high-bias/low-variance; there is little variance to remove, and the bias survives untouched. You get a slightly-less-noisy but still-wrong model.
With independent models (), averaging of them cuts variance to .
True. Plug : the floor term vanishes and you keep only , the classic shrink.
No matter how many trees you add, ensemble variance can never drop below .
True (for ). As the term , leaving the correlation floor that only diversity (lower ) can beat.
A bootstrap sample of size contains all distinct data points.
False. Drawing with replacement forces duplicates, so on average only of distinct points appear; the missing are out-of-bag.
Increasing (number of bagged trees) can eventually cause overfitting.
False. More trees only push toward its averaging limit — a monotone convergence, not a divergence. Overfitting-with-rounds is a Boosting property, not a bagging one.
Bagging is a form of ensemble learning that trains models in sequence.
False. Bagging trains all models in parallel and independently; sequential dependence is the signature of boosting.
OOB error is a biased, over-optimistic estimate of test error.
False. Each point is scored only by trees that never saw it, so the estimate is honest — comparable to cross-validation, and it comes free of a held-out set. See Out-of-Bag Error.
If all base models were identical (), bagging still reduces variance.
False. Set : for any . Averaging clones of the same wobble changes nothing.
Majority voting of independent classifiers can be more accurate than any single voter.
True. If each is right with and errors are independent, the binomial majority concentrates around the correct answer — the "wisdom of crowds" effect.

Spot the error

"Bagging works because it uses more data than a single model."
Error. Each bootstrap sample has the same size and even fewer distinct points (). The gain is from averaging away variance, not from extra data.
"Because ensembles beat single models, bagging improves every error component."
Error. It improves only the variance component of the bias–variance decomposition; bias and irreducible noise are unchanged, per .
"To make bagging stronger, bag a stable learner like linear regression."
Error. Stable learners barely change across resamples, so and the floor — essentially no reduction. Bag unstable learners (deep trees) instead.
"Random Forests are just bagging with more trees."
Error. Random Forests add feature subsampling at each split to actively lower , attacking the floor itself — something more trees alone can never do.
"OOB samples are the duplicated points inside a bootstrap sample."
Error. OOB points are the ones left out of a sample (never drawn), not the duplicates inside it.
"Averaging predictions always cancels the errors, so more models is always better."
Error. Cancellation needs independence. If errors are correlated ( high), the shared mistakes survive averaging and the floor blocks further gain.
"The master formula holds for any collection of base models."
Error. It assumes equal variance across models and a single common pairwise correlation . With unequal variances or mixed correlations you must use the full covariance sum instead.

Why questions

Why does bagging touch variance but not bias?
Because averaging is a linear operation: linearity of expectation keeps the mean at (no bias change), while variance of an average genuinely shrinks with the count and correlation.
Why does the master formula split into exactly a floor term and a shrinking term?
The diagonal of the covariance sum ( own-variances) becomes the shrinker, while the shared-covariance terms fuse into the constant floor — the shared wobble that averaging cannot remove.
Why do we sample with replacement rather than without?
With replacement lets each resample differ randomly from the others, injecting the diversity that makes the models' errors partially cancel; sampling without replacement of size would just return the original set every time.
Why does lowering matter more than raising once is large?
The term is already tiny for large , so you're stuck on the floor ; only diversity moves that floor down.
Why is OOB error "free" cross-validation?
Every point is naturally held out by of the trees, so those trees form a ready-made validation ensemble for that point — no separate split or re-training needed.
Why must the base learner be unstable for bagging to shine?
Instability means predictions swing across resamples, giving low and high — exactly the two conditions the formula rewards with a large variance drop.
Why does majority voting need roughly independent voters to help?
The binomial concentration that pushes accuracy above assumes votes are independent Bernoulli trials; correlated errors make many voters wrong together, collapsing the crowd advantage.

Edge cases

What happens to as with ?
It — perfectly independent averaging drives the wobble all the way out. This is the idealized best case, rarely reached in practice.
What happens to as with ?
It stays at — identical models never help, the floor equals a single model's variance.
Can be negative, and what would that do?
Yes — if models systematically lean opposite ways, makes , pushing below the independent case (better than !). But it is bounded by , so this super-cancellation is only reachable with few, deliberately anti-correlated models.
What is the most extreme variance reduction the formula allows?
Set (its legal floor): then . Perfectly anti-correlated equicorrelated models can, in theory, cancel all variance — the mirror image of the dead case.
For very small (say ), what fraction is out-of-bag?
Zero — with one point, the single draw always picks it, so nothing is left out; the figure is a large- limit of .
If a base model already has variance (a constant predictor), what does bagging achieve?
Nothing — there is no wobble to average away, and its bias (however large) is untouched. Bagging only pays off when .
What if the base learner has huge bias but tiny variance?
Bagging is nearly useless; it can barely shave the already-small variance while the dominant bias remains. Prefer a lower-bias learner (or a different method) first.
If two "different" trees are trained on almost-identical bootstrap samples, what is and what does it mean for the ensemble?
, so the variance floor — the ensemble behaves like one tree despite the extra count.

Recall One-sentence self-test

If someone claims "adding more bagged trees fixed my high-bias underfitting model," what's your reply? ::: It can't — bagging leaves the ensemble mean at ; they need a lower-bias learner, not more copies of the same biased one.