Question: 3 Decision trees (4P) Given the transaction table from a car dealer database as the training set T for a binary classification problem. (Write intermediate

3 Decision trees (4P) Given the transaction table from a car dealer database as the training set T for a binary classification problem. (Write intermediate steps for all following questions, keep three digits after decimal for all calculation) buys.car no no ID is student income gender age T1 no high male middle aged T2 no high female youth T3 no high male middle aged T4 no medium male senior T5 yes low male senior T6 yes low female senior T7 yes low female middle aged T8 no medium male youth T9 yes low male youth T10 yes medium male senior T11 yes medium male youth T12 no medium female middle aged T13 yes high male middle aged T14 no medium female senior yes yes yes no yes no yes yes yes yes yes no (1) Compute the entropy of the attribute gender. (2) Compute the information gain of the attribute is student. (3) Compute the Gini index for the training set T. (4) Compute the Gini index of the attribute income w.r.t. T
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
