Question: Question 4 : Decision trees [ 2 8 ] The data in Table 1 shows attributes that might influence a family's decision on where to
Question : Decision trees
The data in Table shows attributes that might influence a family's decision on where to go for their vacation. The target variable is whether the family chose the destination Yes or No
tableDestinationType,Distance,Budget,KidsFriendly,Chosen?Beach,Short,Medium,Yes,YesMountain,Long,High,Yes,YesCity,Short,Low,NoNoBeach,Long,Medium,Yes,NoCity,Short,Medium,Yes,YesMountain,Long,Low,NoNoBeach,Short,High,Yes,YesCity,Short,High,Yes,YesMountain,Long,Medium,NoNoBeach,Short,Low,NoNo
Table : Vacation destination attributes and family's choices.
a Explain what Entropy and Information Gain represent in the context of the ID algorithm to construct decision trees. Explain what these values mean in practice.
b Calculate the base Entropy of this data set. Show every step of your calculation, including how you determine the ratios.
c Calculate the Information Gain for each of the attributes. Show all the ratios, steps and calculations.
d Based on your calculations, which attributes will be used as the root node of the decision tree? Explain why.
e Discuss how ID proceeds once it has determined the root node. Use your root node as an example to start your discussion. Indicate how the dataset gets modified in the next steps of the algorithm.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
