Exam SRM · Decision Trees · Free Lesson

Bagging, Boosting, and Random Forests

Free SOA Exam SRM (Statistics for Risk Modeling) lesson in Decision Trees. 22 min read, ~3,369 words.

A single decision tree is a high-variance learner: change a few training rows and the splits move. Ensembles of trees fix this by averaging or by sequentially correcting errors. Knowing which knob does what is the exam payoff.

Why ensembles exist. A deep tree has low bias but high variance: small data perturbations swing the splits. Averaging B independent trees cuts variance by a factor of B. Real bootstrap trees are correlated, so the variance reduction is smaller, but still material.

Draw B bootstrap samples from the training data (sample n rows WITH replacement). Fit a deep, unpruned tree to each. For regression, average the B predictions. For classification, take the majority vote across the B trees.

KEY: Bagging reduces variance but does NOT reduce bias. Each tree is already low-bias; the average inherits that bias.

Out-of-bag error. Each bootstrap sample omits roughly of the rows, so about 37% of observations are unused for any given tree.

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

When the prompt mentions bootstrap samples and averaging across trees grown to full depth, it is bagging or random forest: the only question left is whether restricts the per-split predictors. When the prompt mentions residuals, shrinkage , and shallow trees grown one at a time, it is boosting.

The full lesson (about 3,369 words, 22 min read) adds 4 worked examples, all 9 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free Exam SRM lessons or jump into free Exam SRM practice questions.