MAS-II · Statistical Learning · Free Lesson

Calculate the summary statistics for a set of decision trees (e.g., Gini index, entropy, residual sum of squares).

Free CAS MAS-II (Modern Actuarial Statistics II) lesson in Statistical Learning. 12 min read, ~1,848 words.

A regression tree splits 600 policies into terminal nodes; a classification tree splits the same policies into "lapse / renew" leaves. The first scores splits by squared error, the second by node impurity. Same algorithm, different summary statistics.

Why two families of criteria. A regression tree predicts a number, so squared error is the natural loss. A classification tree predicts a class label, so the criterion must measure how mixed each node is. Pure nodes earn impurity zero; 50/50 mixes earn the maximum.

For a region containing training observations, the fitted value is the regional mean . The node-level RSS is:

Tree-level RSS sums across all terminal nodes:

Choosing a split. For predictor and cutpoint , define half-planes and . Pick to minimize:

KEY: The reduction is always nonnegative under greedy splitting. A useless split gives .

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

Common mistakes

Bottom line

Exam shortcut

If the response is numeric, the criterion is RSS and the regional fitted value is the regional mean; compute parent RSS, child RSS, and subtract. If the response is categorical and the problem asks for "impurity" without naming a measure, default to Gini unless it explicitly says "cross-entropy" or "deviance".

The full lesson (about 1,848 words, 12 min read) adds 2 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.