Decision Tree, Entropy, Information Gain, Gini Index.
purity) of 0. It has a maximum value of .5. If Gini Index is .5, it indicates a random assignment of classes. Now let us calculate the Gini index for the root node for Student Background attribute. In this case we have 3 nodes. Gini formula requires us to calculate the Gini Index for each sub node.