Skip to content

Information Gain for Decision-Tree Splits

A greedy decision-tree split rule choosing the attribute with the greatest expected reduction in class entropy at each node.

Version
v1 · 2026-10-17 · History
Domain-specific #
14194
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomain
Decision Tree Induction → Computer Science & Software Engineering
Aliases
Information gain (decision tree), Decision-tree information gain, ID3 information-gain split criterion

Core Idea

Information gain for decision-tree splits is a local rule for growing a classification tree from labeled examples. At each node, candidate attributes partition the current examples. The learner selects the attribute with greatest expected class-entropy reduction, then repeats on the resulting subsets. This is an empirical, branch-weighted score used for recursive split choice, not the surprise of one answer already observed or every use of mutual information. A locally best split need not produce the best complete tree.[1]

How would you explain it like I'm…

Best Sorting Question

Imagine sorting a pile of toys into 'keep' and 'give away' by asking questions. Before asking, you pick the question that, whatever the answer turns out to be, will usually leave each smaller pile the least mixed up. Then you ask it again on each smaller pile.

Question-Picking Tree Builder

A decision tree is a chain of questions a computer learns to ask so it can sort things into groups, like 'play outside' or 'stay in.' To choose a question, it looks at examples it already knows the answers for. For each possible question, it figures out how much less mixed-up the groups would be on average across all the possible answers. It picks the question that helps the most, splits the examples by the answers, and repeats on each smaller pile. This picks a good question one step at a time, but it doesn't promise the whole tree will be the smallest or the best one possible.

Expected Uncertainty-Reduction Split

Information gain is the score a decision-tree learner uses to choose which attribute to split on at each node. Entropy measures how uncertain the class label is in a set of labeled examples. For a candidate attribute, you compute the entropy left in each branch it would create, weight each by how many examples fall into it, and subtract that weighted average from the starting entropy. The attribute with the largest drop wins, the data is split on its values, and the process repeats on each subset. Notice the score is calculated before splitting and averages over all possible outcomes; it is not the surprise of one particular answer. In Quinlan's classic weather example, 'outlook' has the biggest gain and becomes the root. Because each choice is greedy and local, the method doesn't guarantee the smallest or best-generalizing tree overall.

 

In ID3-style tree induction, each node holds a subset of labeled training examples, and the learner must pick an attribute to branch on. Information gain for attribute A is H(C) minus H(C | A): the class entropy at the node minus the expected class entropy after splitting, where the expectation weights each branch by its empirical frequency. Under the empirical distribution this difference is the mutual information between the attribute and the class. The learner chooses the attribute with maximal gain, partitions the examples by that attribute's values, and recurses on each child until some stopping condition. Two points matter: the score is an expected reduction computed before any branch is followed, not the information in a single observed outcome; and the procedure is a greedy heuristic. Quinlan illustrates it with a fourteen-row table of Saturday mornings, where outlook has the largest gain and becomes the root, and he also applies ID3 to chess endgame classification. Neither case shows that maximizing gain locally yields the globally smallest or best-generalizing tree. The concept here is specifically the use of this score in recursive split selection, not every appearance of mutual information.

Scope of Application

The literal setting is supervised classification-tree induction with labeled node samples and eligible attribute tests.

  • Worked weather tree: Quinlan's fourteen Saturday mornings give outlook the largest reported root gain, 0.246 bits.[1]
  • Chess induction: His reported endgame experiments use position attributes and class labels, without printed gain values for every chess node.[1]

Clarity

Name the current node sample, class labels, candidate attributes and their possible outcomes. Compute class entropy before each split and the branch-frequency-weighted expected entropy afterward; their difference is the gain. Keep the stopping rule and tie convention separate from that formula. Quinlan reports weather gains for outlook, temperature, humidity and wind, but not analogous chess-node scores. A term ranking for a non-tree classifier may use related arithmetic without being this recursive tree-split method.[1]

Manages Complexity

Choosing a node's maximum-gain attribute avoids searching all possible complete trees. Gain compresses branch distributions into a local score for repeated induction on smaller subsets. That tractability discards lookahead: a split that fits current labels may create awkward downstream branches or fail on new data. Grouping attribute values may offer useful partitions but raises candidate-search and interpretation costs. Inspect the learned tree and its behavior beyond training examples; a high local gain is a heuristic choice, not an optimality or accuracy certificate.[1]

Abstract Reasoning

Let (Y) be the node's class label and (A) a candidate attribute. The learner computes baseline class entropy (H(Y)), subtracts the branch-weighted remaining class entropy (H(Y|A)), and chooses a maximum difference among eligible attributes. Branch weights come from the empirical node sample. An identifier-like attribute may separate training rows while generalizing poorly to unseen objects. A many-valued attribute can make training subsets nearly pure, so Quinlan discusses other criteria and candidate restrictions. Those alternatives have their own conditions; they do not turn the basic maximum-gain rule into a guarantee of a small or predictive tree.[1]

Knowledge Transfer

The method maps literally from weather classifications to chess positions: labeled examples, candidate partitions, expected class-entropy reduction, local choice and recursion. Their features and class meanings differ, so one setting's gains cannot be copied to the other. Comparison is internal: the learner aligns baseline and expected post-split uncertainty and reads off their difference. Conditional Entropy supplies the remaining uncertainty; Information Entropy supplies the baseline. Both quantities can occur without a learned tree. A general “ask the most informative question” analogy does not establish this bounded method outside classification-tree induction.[1]

Relationships to Other Abstractions

Local relationship map for Information Gain for Decision-Tree SplitsParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Information Gain forDecision-Tree SplitsDOMAINPrime abstraction: Comparison — includesComparisonPRIME

Current abstraction Information Gain for Decision-Tree Splits Domain-specific

Parents (1) — outgoing typed relations

  • Information Gain for Decision-Tree Splits includes Comparison Prime

    Comparing before and expected-after class entropy is internal to every information-gain split score.

Hierarchy path (1) — routes to 1 parentless root

  • Information Gain for Decision-Tree Splits → includes Comparison

Neighborhood in Abstraction Space

Information Gain for Decision-Tree Splits sits in a sparse region of the domain-specific corpus (71st percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] J. R. Quinlan, “Induction of Decision Trees,” Machine Learning 1 (1986), 81–106, https://doi.org/10.1007/BF00116251; full original article consulted at https://www.lri.fr/~sebag/COURS/quinlan86decision.pdf, especially §§2–4, printed pp. 84–92, Table 1 and Figure 2, and §7, printed pp. 100–102. The weather example is worked in detail; the chess study is reported without per-node gain tables. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g