Exam SRM · Decision Trees · Free Lesson

Classification and Regression Trees

Free SOA Exam SRM (Statistics for Risk Modeling) lesson in Decision Trees. 20 min read, ~2,946 words.

A decision tree splits the predictor space into rectangles, then predicts a single value inside each rectangle. The mechanics are identical for numeric and categorical responses; only the splitting metric and the prediction rule change.

A tree partitions the predictor space into non-overlapping regions . Each region is a terminal node (leaf). Inside a region, the tree predicts a constant: the mean of Y for a regression tree, the majority class (or class probabilities) for a classification tree.

KEY: Every internal node is a yes/no question on one predictor. Every leaf is a prediction. The path from root to leaf is the rule that produced the prediction.

For a classification tree, the leaf stores the majority class and its within-leaf proportion. The tree below predicts loan default from two predictors: it first asks whether income is below 50k, then for the low-income branch asks whether the applicant is under 40. Each leaf carries a class label and the proportion of that class in the leaf, which doubles as the soft-classification probability.

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

Common mistakes

Bottom line

Exam shortcut

If the question asks for the predicted value in a terminal node, compute the leaf mean for regression or the majority-class proportion for classification. If the question shows two candidate splits and asks which is better, compute the weighted child impurity (RSS, Gini, or entropy) and pick the smaller one.

The full lesson (about 2,946 words, 20 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.