MAS-II · Statistical Learning · Free Lesson

Prune decision trees.

Free CAS MAS-II (Modern Actuarial Statistics II) lesson in Statistical Learning. 20 min read, ~3,015 words.

A fully grown decision tree memorizes the training set and shatters on new data. Pruning is the disciplined rollback that trades a little training accuracy for a lot of test accuracy.

Why grow then prune. Greedy recursive binary splitting picks the best split locally at each node. A split that looks weak now may enable a strong split below. So you grow a deliberately large tree T0T_0 (each leaf hits a minimum size, say 5 observations), then prune back. Stopping early (pre-pruning) is short-sighted: it kills good descendants because their parent looked uninformative.

Cost-complexity criterion. Define training-set risk R(T)R(T): for regression, residual sum of squares; for classification, misclassification rate weighted by node size. The penalized criterion is:

Rα(T)=R(T)+α ∣T∣R_\alpha(T) = R(T) + \alpha\,|T|

α=0\alpha = 0 keeps the full tree T0T_0. As α\alpha climbs, branches drop off because each terminal node now costs α\alpha units of penalty. Eventually only the root survives.

KEY: α\alpha is the price of a leaf, measured in the same units as R(T)R(T). One extra leaf has to reduce RR by at least α\alpha to be worth keeping.

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 gives you the nested sequence and an α\alpha, find the largest αk\alpha_k with αk≤α\alpha_k \le \alpha and return TkT_k. Do not interpolate. If a question lists subtree risks and asks which collapses first, compute g(t)g(t) for each candidate and pick the smallest.

The full lesson (about 3,015 words, 20 min read) adds 7 worked examples, all 6 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free MAS-II lessons or jump into free MAS-II practice questions.