Concept
- nodes test a set of attributes
- Branches select a set of values
- leaf nodes predict Y
Learning Decision Trees
1. Use all the training data
2. Select first node based on best split
3. Create child nodes
4. Continue until stopping criterion is reached
Stopping Criteria
- tree too large
- all examples have a class
Goal
- perfectly classify all examples with minimum amount of decisions
Occamas's Razor
- law of briefness for better generalization
Entropy
- measures for unpredictability
Entropy = Σ (-p*log_2(p))
High entropy
- X has a uniform distribution
- values are less predictable
Low entropy
- X has a varied distribution
- values are more predictable
Conditional Entropy
Ent(Y|X=v)
- Entropy for Y amongst the examples for which X=v
Average Conditional Entropy
Ent(Y|X) = Σ (p(X=v_i)*Ent(Y|X=v_i))
Information Gain
IG(Y|X) = Ent(Y) - Ent(Y|X)
- Information gain in Y due to X
id3 learning algorithm
- construct tree top down
Advantages
- easy implementation and interpretation
- good performance
Disadvantages
- complexity of large trees
- prone to overfitting
Prominent Applications
- loan applications
- medical diagnosis
- spam filters