Exam SRM · Decision Trees · Free Lesson

Decision Trees vs Linear Models

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

Two candidates fit the same insurance dataset. One draws a straight hyperplane through the predictor space; the other carves it into rectangles. Knowing when each wins is a recurring SRM exam beat.

A linear regression model writes

Y^=β0+β1X1+β2X2+⋯+βpXp\hat{Y} = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \dots + \beta_p X_p

A decision tree writes

Y^=∑m=1Mcm⋅1{X∈Rm}\hat{Y} = \sum_{m=1}^{M} c_m \cdot \mathbf{1}\{X \in R_m\}

The linear model fits one global surface. The tree fits a piecewise-constant surface across M disjoint rectangles (leaves), each with constant prediction cmc_m equal to the leaf-mean for regression trees or the majority class for classification trees.

KEY: Linear models predict with a formula; trees predict with a lookup. Same data, two completely different representations of ff.

If the true relationship between X and Y is approximately linear and additive, ordinary least squares (OLS) estimates β\beta with low variance and the model generalizes well even on modest samples. A single tree must approximate that smooth surface with a staircase of rectangles, which wastes splits and adds variance.

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

Common mistakes

Bottom line

Exam shortcut

If the vignette mentions extrapolation, smooth dose-response, or required confidence intervals, pick a linear or generalized linear model. If the vignette stresses sharp thresholds, many categorical predictors, missing values, or "non-statistician audience," pick a tree. When the prompt asks for the BEST of both, the answer is almost always a tree-based ensemble (random forest or boosting) with a linear / GLM baseline reported alongside.

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