Exam SRM · Decision Trees · Free Lesson

Building Decision Trees

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

A decision tree carves the predictor space into rectangles and assigns each rectangle a single prediction. The hard part is not the geometry; it is knowing when to stop slicing.

A tree partitions the predictor space into non-overlapping rectangles . For any test point, you walk down the tree, answer each yes/no question, and land in exactly one rectangle. The prediction inside is a single number (regression) or a single class label (classification).

Internal nodes ask a question of the form "Is ?" for a numeric predictor or "Is ?" for a categorical one. Terminal nodes (leaves) hold the prediction. The depth from root to leaf is the number of questions a test point answers.

KEY: A tree with leaves makes exactly distinct predictions. Doubling leaves doubles the resolution of the fitted surface, and roughly doubles the variance.

Practitioners wanted a partitioning method that a non-statistician could read off a diagram and that could be fit on a workstation in seconds.

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

Common mistakes

Bottom line

Exam shortcut

If a question asks which impurity measure is used to grow a classification tree, the answer is Gini or cross-entropy, not classification error. If a question gives you training RSS at several tree sizes and an , compute for each and pick the minimum. If the prompt mentions cross-validation in a tree context without specifying what is being tuned, the answer is almost always the cost-complexity parameter .

The full lesson (about 3,564 words, 24 min read) adds 3 worked examples, all 7 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.