classification and regression trees wadsworth stat
he algorithm ensures optimal partitioning. Impurity Measures For classification trees, common impurity metrics include: Gini Impurity: \( Gini = 1 - \sum_{i=1}^C p_i^2 \), where \( p_i \) is the proportion of class \(