Bagging

Small changes in the training data can produce very different fitted models. Fitting several models to resampled data and combining their answers can make the result less dependent on one particular fit.

19 sections · 15 questions · 4 coding challenges

1 / 19

What If One Small Change Produces a Different Tree?

BOTIE

A decision tree can change substantially when a few training examples change. One different early split sends later observations down different branches. If several reasonable versions disagree, relying on just one may give a needlessly unstable answer.

In his 1996 bagging paper, Leo Breiman investigated improving predictors by combining versions fitted to bootstrap samples. A bootstrap sample is drawn from the observed dataset with replacement, so some examples appear repeatedly and others are absent. This creates different training sets without pretending that new observations have been collected.

We train a model on each sample and combine their predictions. Errors peculiar to one fitted model may be reduced by averaging or voting across the group. The benefit depends on the models making different errors. If they all miss the same pattern, combining them will not repair that shared mistake.

Sources for this history