Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 3 a Solution Created 2026-09-24 Updated 2026-09-25
The classification form of CART starts with the root rectangle . For any current region , let and letbe its empirical class proportion and Gini impurity. A candidate axis-aligned split partitions into and . Its impurity change isAmong all coordinates and thresholds between consecutive observed coordinates, CART chooses a split minimizing , then applies the same recursive partitioning independently to the children until a stopping rule is met. Each terminal region predicts its majority class. Pruning may then select a smaller subtree by penalizing the number of leaves.
For the resulting classifier , the training error iswhile its prediction error is for an independent observation drawn from the target population.