Gini index

Suppose we have a discrete random variable that can take values in . We define the Gini index of to be The higher the entropy the closer to a uniform the random variable we are. .