Construct and interpret classification and regression trees
A small dataset is given and you must build a tree by recursive binary splitting using Gini, entropy (classification), or RSS (regression).
At each node, search every predictor and every candidate split point to find the split minimizing the impurity criterion (Gini or entropy for classification, RSS for regression). Recurse on each child until a stopping rule fires (min size, max depth, min improvement). Interpret each leaf as the prediction for observations falling into that path.
Splits chosen to minimize Σ p_k (1 - p_k) (Gini), -Σ p_k log p_k (entropy), or Σ (y - ȳ)^2 (RSS).