Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started