Question: 1. Decision trees (by hand) (25 points): Construct a decision tree by hand for the dataset given below (the dataset is simulated and does not


1. Decision trees (by hand) (25 points): Construct a decision tree by hand for the dataset given below (the dataset is simulated and does not represent the real world). The target variable is Mammal. For each node, show the information(Gini's Index) in the data set and the potential gain for each possible attribute. Also, show the final tree. Hint: Compute the Gini's Index for the root node Calculate the Gini's Index for each of the 3 variables (Body Temperature, Gives Birth and Four Legged) Compute the gain in each of the 3 cases and then select the first split based on the highest index gain. Continue this process till you only have terminal nodes Finally build a tree with the rules you have selected An example table is given below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
