Decision Trees
Decision Trees
Premalatha M
Decision Trees
The core algorithm for building decision trees
called ID3 by J. R. Quinlan which employs a
top-down, greedy search through the space of
possible branches with no backtracking. ID3
uses Entropy and Information Gain to
construct a decision tree.
Entropy
A decision tree is built top-down from a root
node and involves partitioning the data into
subsets that contain instances with similar
values (homogenous). ID3 algorithm uses
entropy to calculate the homogeneity of a
sample. If the sample is completely
homogeneous the entropy is zero and if the
sample is an equally divided it has entropy of
one.
Entropy
To build a decision tree, we need to calculate two types of entropy using
frequency tables as follows: