Machine Learning & AI
Intermediate

Gini Impurity

Probability of misclassifying a random sample; the default split metric in CART trees.

Formula

G=1ipi2G = 1 - \sum_i p_i^2

Variables

p_iProportion of class i

Example

50/50 split: G = 0.5

Did You Know?

Gini impurity is faster to compute than entropy and usually gives near-identical trees.

Share this formula