Classification - Overfitting & Pruning
4 important questions on Classification - Overfitting & Pruning
What is overfitting in the context of decision trees?
What are the stopping criteria that prevent a node from splitting further?
- All records at the node belong to the same class → pure leaf, nothing to split
- All records have identical attribute values → no split is possible
- The number of records falls below a minimum threshold → too few records to support a reliable split
- (Pre-pruning) Information gain of the best split falls below a threshold → split not worth making
Compare pre-pruning and post-pruning. Which is generally better and why?
- When: stop growing during induction
- Mechanism: halt if gain falls below threshold
- Risk: XOR/Matching Pennies problem — stops before discovering jointly-useful attributes
- When: grow full tree, then trim
- Mechanism: remove branches failing statistical test (e.g., χ²)
- Risk: may overfit during growth phase
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
What is χ² pruning?
If the difference is not statistically significant, the split is pruned — the branch is replaced by a leaf. This prevents the tree from fitting noise that happened to appear in the training sample.
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding

















