Question: 1) Develop a decision tree based on the following dataset, where CO represents high school teachers and C1 represents university staff. Part A) Develop the

 1) Develop a decision tree based on the following dataset, whereCO represents high school teachers and C1 represents university staff. Part A)

1) Develop a decision tree based on the following dataset, where CO represents high school teachers and C1 represents university staff. Part A) Develop the rule only for the root node (level1). Part B) Develop the rule for the second level. Hint: This is a lengthy question. To find the best decision rules, you need to consider all features (Gender, Housing Type, Number of Children) one by one, and for each feature consider all possible decision rules one by one (e.g., Number of children=2 -> CO else C1, Number of children=1=>CO, else C1, etc). Finally, we will choose the decision rule whose result is more accurate (consistent with the dataset). Here, we use all samples for training and testing. Provide all details. Note that sometimes you may end up with the same and lowest) accuracy for two decision rules, and then you can choose any of them. Number of Children Class 2 2 1 2 CO CO CO CO CO 1 1 0 1 2 Gender Female Male Male Male Male Male Male Female Female Female Female Female Male Male Male Male Female Female Female Female House Type Single family house Apartment Single family house Single family house Apartment Apartment Apartment Apartment Single family house Single family house Single family house Apartment Apartment Apartment Apartment Single family house Single family house Apartment Apartment Single family house 2 C1 1 0 C1 C1 0 0 C1 C1 1 2 1 C1 C1 C1 0 1 2 C1 C1

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 Accounting Questions!