Prove that information gain from any split is non-negative, and say when it is exactly zero. Can it be zero for a split that is useful?
Supervised learning, Information gain
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can use the concavity of entropy and Jensen's inequality to prove a basic property of decision-tree splits.
Key idea
The parent's class distribution is a mixture of the children's: with . Entropy is concave, so .
Steps
- Let a split send of samples to child , with class distribution there, and let . Then the parent distribution is for each class .
- Define the gain .
- The function is concave, because each has second derivative .
- By Jensen's inequality for a concave function, . Hence .
- Equality holds exactly when all children with have the same distribution as the parent, since is strictly concave.
- Equivalently, is the mutual information , and . It is zero when the split is independent of the label.
- A useful split can have zero gain: in XOR data, splitting on alone leaves both children with a 50/50 mix, so the gain is 0 even though together with determines the label. Greedy trees can miss such interactions.
Common mistakes
- Applying Jensen with the inequality the wrong way round. Concave means the function of the average is at least the average of the function.
- Saying zero gain means the feature is irrelevant. It means only that it is useless on its own, at this node.
- Forgetting the weights and averaging children's entropies equally.
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: A soft-margin SVM uses a different penalty for each class: with the usual constraints. What changes in the dual and in the KKT conditions? In what direction does the boundary move if , and how would you choose for an imbalanced dataset?
Next in Supervised learning: Kernel ridge regression uses the kernel on one-dimensional inputs, with penalty . The training data are and . Find the dual coefficients and predict at . Why is the dual form useful?