are given in Table C. This table consists of matches played on different pitches,
across formats along with their winners. The attribute Pitch can take one of two
values: spin-friendly (represented as ) or pace-friendly (represented as ). The
attribute Format can take one of two values: one-day match (represented as ) or
test match (represented as .
A cricket organization would like to use the information given in Table C to develop
a decision-tree model to predict outcomes of future games between these two teams.
To develop such a model, the computed InformationGain(C, Pitch) with respect to
the Target is ______ (rounded off to two decimal places).
| Match Number | Pitch | Format | Winner (Target) |
| 1 | Green | ||
| 2 | Blue | ||
| 3 | Blue | ||
| 4 | Blue | ||
| 5 | Green | ||
| 6 | Blue | ||
| 7 | Green | ||
| 8 | Blue | ||
| 9 | Blue | ||
| 10 | Green |
0.12
Step-by-Step Solution
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 .
Green wins: Matches 1, 5, 7, 10 4 instances.
Blue wins: Matches 2, 3, 4, 6, 8, 9 6 instances.
Parent Entropy .
Step 2: Analyze the split on "Pitch".
- Pitch = S: Matches 1, 2, 4, 7, 10 (5 instances). Green = 3, Blue = 2.
.
- Pitch = F: Matches 3, 5, 6, 8, 9 (5 instances). Green = 1, Blue = 4.
.
Step 3: Calculate the weighted average entropy of the children.
.
Step 4: Calculate Information Gain.
.
Step 5: Round to two decimal places as required. The result is 0.12.
Answer: 0.12