Decision Tree Splits and Impurity Reduction

Compute the weighted impurity after a split and distinguish an informative split from one that merely creates a small pure branch.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Compare parent impurity with a weighted child average
  2. A useful split must generalize beyond its fitting rows

Compare parent impurity with a weighted child average

A binary node with equal class proportions has entropy one bit. If a split creates two equally sized children with class proportions \(3/4,1/4\) and \(1/4,3/4\), each has entropy about \(0.811\) bits. Information gain is about \(0.189\) bits. If children differ in size, weight their impurities by their sample fractions before subtraction. Other impurity choices such as Gini use a different functional form.

A useful split must generalize beyond its fitting rows

A feature with many distinct values can isolate small pure groups without learning stable structure. Minimum leaf sizes, pruning and evaluation on held-out data can limit that behavior. Validation splits make the evaluation boundary explicit. Random forests combine trees whose individual splits vary across samples and features.[1][2]

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. Trevor Hastie, Robert Tibshirani and Jerome Friedman, The Elements of Statistical Learning ↩