Question: Exercise 1 . Consider the training examples shown below for a binary classification problem. ( a ) Compute the Gini index for the Gender attribute.

Exercise 1. Consider the training examples shown below for a binary classification problem.
(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 2. In class, we stated that some decision tree algorithms only provide binary splits. If
such an algorithm creates a binary split based on a nominal attribute with k distinct values, say,
{v1,v2,dots,vk}, it must consider 2k-1-1 different partitions. Can you prove this statement for
every k>1?
Hint: Use mathematical induction
Exercise 3. Consider, again, the table for problem 1. Use the CHAID algorithm create a decision
tree of height 1, that is, one root and multiple children.
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!