Insight: Information Gain is the parent entropy minus the weighted average entropy of the children. We must carefully count the class distributions for the parent and the specific split (Pitch).
Exam route: Count total Green (4) and Blue (6). Calculate parent entropy. Count Green/Blue for Pitch=S (3G, 2B) and Pitch=F (1G, 4B). Calculate child entropies, weight them by 0.5 each, and subtract from parent entropy.
Learning route:
Step 1: Analyze the parent dataset. Total instances N=10.
Green wins: Matches 1, 5, 7, 10 → 4 instances.
Blue wins: Matches 2, 3, 4, 6, 8, 9 → 6 instances.
Parent Entropy H(S)=−104log2(104)−106log2(106)≈0.9710.
Step 2: Analyze the split on "Pitch".
- Pitch = S: Matches 1, 2, 4, 7, 10 (5 instances). Green = 3, Blue = 2.
H(SS)=−53log2(53)−52log2(52)≈0.9710.
- Pitch = F: Matches 3, 5, 6, 8, 9 (5 instances). Green = 1, Blue = 4.
H(SF)=−51log2(51)−54log2(54)≈0.7219.
Step 3: Calculate the weighted average entropy of the children.
EPitch=105H(SS)+105H(SF)=0.5(0.9710)+0.5(0.7219)=0.4855+0.3610=0.8465.
Step 4: Calculate Information Gain.
IG(S,Pitch)=H(S)−EPitch=0.9710−0.8465=0.1245.
Step 5: Round to two decimal places as required. The result is 0.12.
Answer: 0.12