Question
Build a decision tree by calculating the overall entropy and the entropy for each independent variable. Which attribute would be used for the first split
Build a decision tree by calculating the overall entropy and the entropy for each independent variable. Which attribute would be used for the first split only (no need to build the whole decision tree)? Show all work. Your answer may be kept in fraction form. (10 points)
The following table shows some software metrics (independent variables) and whether the software has a high number of defects, or low number of defects.
Independent Variables | Dependent Variable | ||
Program Vocabulary |
Complexity |
Lines of Code |
Software Defects |
Moderate | High | Few | Few |
Moderate | High | Many | Many |
Low | High | Many | Few |
Moderate | High | Many | Few |
Moderate | Low | Many | Few |
Moderate | Low | Few | Many |
Moderate | Low | Many | Many |
High | Low | Many | Many |
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