- 2074 Bhadra · 2+6 marks
Inductive learning and ID3
Short answer
Inductive learning derives general rules from specific examples. ID3 builds a decision tree by selecting the attribute with highest information gain at each node. For the Play Tennis example, Outlook is the root split into Sunny (Humidity), Overcast (Yes), Rain (Wind).
Define inductive learning. Explain in detail about the ID3 process with suitable example.
Inductive learning is learning a general rule or concept from specific training examples (specific to general). Given examples with attribute values and class labels, the learner builds a hypothesis (such as a decision tree) that classifies new, unseen cases.
ID3 (Iterative Dichotomiser 3, Quinlan)
ID3 builds a decision tree top-down; at each node it picks the attribute with the highest information gain.
- Entropy: E(S) = −Σ p_i log₂ p_i
- Gain(S, A) = E(S) − Σ (|S_v| / |S|) · E(S_v)
Steps
- If all examples in S belong to one class, make a leaf with that class.
- If no attributes remain, make a leaf with the majority class.
- Otherwise compute Gain for each attribute; choose the best A.
- Create a node for A; split S by the values of A.
- Recurse on each subset with A removed.
Example: Play Tennis (14 examples: 9 Yes, 5 No)
E(S) = −(9/14)log₂(9/14) − (5/14)log₂(5/14) = 0.940
| Attribute | Subsets (Yes/No) | Gain |
|---|---|---|
| Outlook | Sunny 2/3, Overcast 4/0, Rain 3/2 | 0.247 |
| Temperature | Hot 2/2, Mild 4/2, Cool 3/1 | 0.029 |
| Humidity | High 3/4, Normal 6/1 | 0.152 |
| Wind | Weak 6/2, Strong 3/3 | 0.048 |
Outlook has the highest gain, so it is the root.
- Overcast: all Yes, so leaf = Yes.
- Sunny (E = 0.971): gains: Humidity 0.971, Temperature 0.571, Wind 0.020. Choose Humidity: High gives No, Normal gives Yes.
- Rain (E = 0.971): Wind separates perfectly: Weak gives Yes, Strong gives No.
Outlook
/ | \
Sunny Overcast Rain
| | |
Humidity Yes Wind
/ \ / \
High Normal Weak Strong
No Yes Yes No
(Gains were computed by program.) The tree gives rules such as: IF Outlook = Sunny AND Humidity = Normal THEN Play = Yes.
Strengths: simple, readable rules, fast. Weaknesses: overfits noisy data (needs pruning), prefers attributes with many values.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Analogy vs inductive learning · Artificial Intelligence, chapter 6
- Machine learning; Boltzmann machines · Artificial Intelligence, chapter 6
- Process of pipe laying and jointing · Water Supply Engineering, chapter 8 · asked 7×
- JPEG compression process steps · Multimedia System, chapter 5 · asked 3×
- Process control block · Operating System, chapter 2
- MapReduce vs Hadoop; IR process · Information System, chapter 8