A single deep CART model nails the training set and falls apart on holdout. Tree ensembles exist because every fix for that one weakness (variance, bias, correlation) implies a different assumption about how trees fail.
Why a single tree fails. CART (Classification And Regression Trees) is the standard recursive-partition base learner that ensembles are built to improve on. A deep CART tree partitions the predictor space into many leaves. Small changes to the training data can flip an early split, cascading into a completely different tree. That instability is high variance. A shallow tree is stable but misses interactions: high bias. Ensembles let you keep one of these traits and fix the other.
Draw bootstrap samples (size , with replacement) from the training data. Fit a deep, unpruned tree to each. Aggregate: average for regression, majority vote for classification.
Variance math. If the tree predictions had pairwise correlation and individual variance , the average has variance:
Common mistakes
- Confusing defaults. is classification, is regression. Swapping them on a regression problem gives (wrong) instead of 12.
- Assuming boosting cannot overfit. Bagging and RF are overfit-proof in ; boosting is not. Too many stages at a high learning rate inflates test error. Always validate .
- Treating bagging and random forests as the same method. Bagging uses all predictors at every split; RF restricts to . The whole point of RF is to break the variance floor that bagging cannot.
Bottom line
- Single tree: low bias, high variance, unstable to small data perturbations. Ensembles attack one of those two failure modes.
- Bagging: averages bootstrap-trained trees; ensemble variance is , so the floor persists even as grows. Assumes trees roughly unbiased.
- Random forest: bagging plus a random -predictor subset per split ( classification, regression) to lower and break bagging's variance floor.
- Deep and unpruned base trees are required in bagging and RF so they stay approximately unbiased; averaging handles the variance.
Exam shortcut
If the problem asks "which ensemble reduces variance," answer bagging or random forest; "which reduces bias," answer boosting. If the problem gives and asks the default split-candidate count, write for classification and for regression without hesitation. If asked whether more trees can hurt, the answer is no for bagging and RF, yes for boosting: that one phrase resolves most "which statement is true about ensembles" multiple-choice items.
The full lesson (about 2,306 words, 15 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.
Learning objectives
- C4
Browse all free MAS-II lessons or jump into free MAS-II practice questions.