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: p=∑kwkp(k) with wk=nk/n. Entropy is concave, so H(p)≥∑kwkH(p(k)).

Steps

  1. Let a split send nk of n samples to child k, with class distribution p(k) there, and let wk=nk/n. Then the parent distribution is pc=∑kwkpc(k) for each class c.
  2. Define the gain IG=H(p)−∑kwkH(p(k)).
  3. The function H(p)=−∑cpclog⁡pc is concave, because each −plog⁡p has second derivative −1/p<0.
  4. By Jensen's inequality for a concave function, H ⁣(∑kwkp(k))≥∑kwkH(p(k)). Hence IG≥0.
  5. Equality holds exactly when all children with wk>0 have the same distribution as the parent, since H is strictly concave.
  6. Equivalently, IG is the mutual information I(Y;split), and I≥0. It is zero when the split is independent of the label.
  7. A useful split can have zero gain: in XOR data, splitting on x1 alone leaves both children with a 50/50 mix, so the gain is 0 even though x1 together with x2 determines the label. Greedy trees can miss such interactions.

Common mistakes

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: min⁡12∥w∥2+C+∑yi=+1ξi+C−∑yi=−1ξi with the usual constraints. What changes in the dual and in the KKT conditions? In what direction does the boundary move if C+>C−, and how would you choose C± for an imbalanced dataset?
Next in Supervised learning: Kernel ridge regression uses the kernel k(x,z)=(1+xz)2 on one-dimensional inputs, with penalty λ=1. The training data are (x1,y1)=(0,1) and (x2,y2)=(1,3). Find the dual coefficients α and predict at x=2. Why is the dual form useful?