Question: x=4 y=5 A decision tree classifier needs to be designed to determine whether a person is going to buy a computer based on several attributes.

x=4
y=5
A decision tree classifier needs to be designed to determine whether a person is going to buy a computer based on several attributes. The table of training set is given below. E22222 no P1 P2 P3 P4 P5 P6 P7 PS P9 P10 P11 P12 P13 Age Income Student Credit Buys computer 40 medium no fair yes > 40 low yes fair yes > 40 low yes excellent 31...40 low excellent yes 40 medium yes fair yes 40 medium no excellent no yes no yes P14 This problem is parameterized as follows. Parameter1 X=0,1,2 Age X=3,4 Income X=5,6 Student X=7,8,9 Credit (a) Calculate the entropy of the entire population. (b) If Parameter1 is chosen at the root node, calculate the information gain. (c) Calculate the Gini Index of Parameter1. (d) Suppose "Age" is chosen at the root node, and then "Income" is chosen as the next attribute. Draw the decision space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
