Exam SRM · Decision Trees · Free Lesson

Building Decision Trees

Free SOA Exam SRM (Statistics for Risk Modeling) lesson in Decision Trees. 27 min read, ~4,095 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 X1,…,XpX_1, \dots, X_p into JJ non-overlapping rectangles R1,…,RJR_1, \dots, R_J. For any test point, you walk down the tree, answer each yes/no question, and land in exactly one rectangle. The prediction inside RjR_j is a single number (regression) or a single class label (classification).

Internal nodes ask a question of the form "Is Xk<sX_k < s?" for a numeric predictor or "Is Xk∈AX_k \in A?" 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 ∣T∣|T| leaves makes exactly ∣T∣|T| 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 α\alpha, compute RSS+α∣T∣\text{RSS} + \alpha|T| 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 α\alpha.

The full lesson (about 4,095 words, 27 min read) adds 4 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.