CART on the UCI German credit-risk benchmark
Credit risk / financeA lender wants to classify loan applicants as good or bad credit risks from 20 attributes (account status, loan duration, credit history, employment, etc.) on the 1,000-record UCI German Credit dataset. The model must be auditable: a regulator may ask why any individual applicant was declined.
Train a CART classification tree using Gini impurity to choose splits, then control overfitting by limiting tree depth and pruning low-information branches (cost-complexity pruning, as described in Breiman et al.). The fitted tree is read as a small set of human-legible rules, e.g. "if checking-account status is negative and loan duration exceeds 24 months, flag as high risk."
A pruned single tree typically lands around 70-73% classification accuracy on held-out data on this benchmark — modestly below a Random Forest (roughly 76-78%) — but delivers explicit decision rules an analyst can audit and a regulator can review. The case illustrates the core practitioner trade-off: a single tree trades a few points of accuracy for transparency, and ensembles recover that accuracy at the cost of interpretability.
Source: Classification and Regression Trees — Breiman, L., Friedman, J., Stone, C.J. and Olshen, R.A.