A feature splits the examples into subsets , each of these subsets is a new branch in the decision tree which have their own entropy. We can measure how ‘good’ is by the reduction in entropy of and entropy of all of the , this difference is called the information gain:
So the entropy of collectively is the weighted sum of their entropies.