Question: Question 1. Consider the training examples shown in the table below for a binary classification problem Customer ID Gender Car Type Class 1 Family CO


Question 1. Consider the training examples shown in the table below for a binary classification problem Customer ID Gender Car Type Class 1 Family CO 2 M Sports 3 M Sports CO 4 M Sports 5 M Sports CO M Sports Sports 8 F Sports F Sports 10 F Luxury 11 M Family C1 12 M Family C1 13 M Family C1 14 M Luxury 15 F Luxury Ci 16 F Luxury C1 17 F Luxury Ci 18 F Luxury Ci 19 F Luxury Ci 20 F Luxury Ci (a) Compute the Gini index for the overall collection of training examples. (d) Compute the Gini index for the Car Type attribute using multiway split. (e) Which of the three attributes has the lowest Gini index? (1) Which of the three attributes will you use for splitting at the root node? Explain your choice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
