Which of the following can be concluded from this decision tree segment? < 0.9655 Or Missing Node Id: DEFAULT: 25.08% PAID: 74.92% Count: 10868 Pig Farming < 0.493 Or Missing Node Id: 12 DEFAULT: 25.77% PAID: 74.234% Count: 10265 Mobile Phone >= 0.493 Node Id: DEFAULT: PAID: Count: 13 13.43% 86.574% 603 loan_amount < 512.5 Or Missing >= 512.5 Node Id: 26 DEFAULT: 7.334% PAID: 92.67% Count: 546 Node Id: DEFAULT: PAID: Count: 27 71.93% 28.079% 57 A Pig farming loans more than $512.49 have a high DEFAULT rate. B Pig farming loans less than $512.50 have a low PAID rate. C Pig farming loans have a higher default rate than paid rate. D Only 603 loans were taken out for Pig Farming.
Added by Marina A.
Step 1
5 or missing, the default rate is 25.77% and the paid rate is 74.234%. If the loan amount is greater than or equal to 512.5, the default rate is 7.334% and the paid rate is 92.67%. Show more…
Show all steps
Your feedback will help us improve your experience
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Consider the following dataset (outcome variable: Defaulted borrower) Dataset for building a decision tree ID | Home owner | Martial status | Annual income | Defaulted borrower ---|------------|----------------|---------------|------------------- 1 | Yes | Single | 125K | No 2 | No | Married | 100K | No 3 | No | Single | 70K | No 4 | Yes | Married | 120K | No 5 | No | Divorced | 95K | Yes 6 | No | Married | 60K | No 7 | Yes | Divorced | 220K | No 8 | No | Single | 85K | Yes 9 | No | Married | 75K | No 10 | No | Single | 90K | Yes (a). Develop a full decision tree (i.e., a full decision tree means all the leaf nodes contain data instances that come from the same class) using information gain. Please do manual calculation. Make detailed notes of the splitting process and the information gains generated by the splits you have selected to build the tree. (b). What is the testing error given the following testing data? ID | Home owner | Martial status | Annual income | Defaulted borrower ---|------------|----------------|---------------|------------------- 11 | No | Single | 150K | Yes 12 | No | Married | 120K | No 13 | Yes | Divorced | 180K | No 14 | Yes | Married | 90K | Yes
Sri K.
Consider the following table of observations: No. Outlook Temperature Humidity Windy Play Golf? 1 sunny hot high false N 2 sunny hot high true N 3 overcast hot high false Y 4 rain mild high false Y 5 rain cool normal false Y 6 rain cool normal true N 7 overcast cool normal true Y 8 sunny mild high false N 9 sunny cool normal false Y 10 rain mild normal false Y 11 sunny mild normal true Y 12 overcast mild high true Y 13 overcast hot normal false Y 14 rain mild high true N From the classified examples in the above table, construct two decision trees (by hand) for the classification "Play Golf." (a) For the first tree, use Temperature as the root node (this is a really bad choice). Continue the construction of tree as discussed in class for the subsequent nodes using information gain. Remember that different attributes can be used in different branches on a given level of the tree. (b) For the second tree, follow the Decision Tree Learning algorithm described in class. At each step, choose the attribute with the highest information gain. Work out the computations of information gain by hand and draw the decision tree.
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD