The illustration shows the computation of information gain for the first iteration (based on the data table) for other three attributes of “Gender,” “Car ownership,” and “Income level.” |
Results of the First Iteration for Information Gain Computation | ||||
---|---|---|---|---|
Gain | Gender | Car Ownership | Travel Cost/km | Income Level |
Entropy | 0.125 | 0.534 | 1.210 | 0.695 |
Gini index | 0.060 | 0.207 | 0.500 | 0.293 |
Classification error | 0.100 | 0.200 | 0.500 | 0.300 |