A pure node
All cases in a node belong to one class. What is the Gini index?
Worked answer
One proportion is and the others are , so . Two draws from the node always match.
All 10 cases in a node belong to one class. What is the Gini index?
One proportion is 1 and the others are 0, so 1−∑p^g2=0. Two draws from the node always match.