Question: Exercise 1 . Consider the training examples shown below for a binary classification problem. table [ [ Customer ID , Gender,Car Type,Shirt Size,Class ]

Exercise 1. Consider the training examples shown below for a binary classification problem.
\table[[Customer ID,Gender,Car Type,Shirt Size,Class],[1,M,Family,Small,C0],[2,M,Sports,Medium,C0],[3,M,Sports,Medium,C0],[4,M,Sports,Large,C0],[5,M,Sports,Extra Large,C0],[6,M,Sports,Extra Large,C0],[7,F,Sports,Small,C0],[8,F,Sports,Small,C0],[9,F,Sports,Medium,C0],[10,F,Luxury,Large,C0],[11,M,Family,Large,C1],[12,M,Family,Extra Large,C1],[13,M,Family,Medium,C1],[14,M,Luxury,Extra Large,C1],[15,F,Luxury,Small,C1],[16,F,Luxury,Small,C1],[17,F,Luxury,Medium,C1],[18,F,Luxury,Medium,C1],[19,F,Luxury,Medium,C1],[20,F,Luxury,Large,C1]]
(a) Compute the Gini index for the Gender attribute.
(b) Compute the Gini index for the Car Type attribute.
(c) Compute the Gini index for the shirt size attribute.
(d) Which of the above three attributes is better?
Exercise 1 . Consider the training examples shown

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!