Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 3. [15 points] Suppose we construct a decision tree (shown below) for the data set in the following table, using the Gini index to
Problem 3. [15 points] Suppose we construct a decision tree (shown below) for the data set in the following table, using the Gini index to select which features to split on. We want to predict YHeart attack Fill in the missing values, including the branches (what feature is split on, such as Xmale), the Gini index at each node, the number of samples at each node with Y = 0 and Y = 1, and the predictions at the leaf nodes. Show your calculations. Also report the training accuracy. Gini=? #Y = 0, #Y = 1 X? = 0 X = 1 Gini=? #Y = 0, #Y = 1 =? Gini=? #Y = 0, #Y = 1 Y =? 1 PATIENT ID CHEST PAIN? MALE? SMOKES? EXERCISES? HEART ATTACK? 1. yes yes no yes yes 2. yes yes yes no yes 3. no no yes no yes 4. no yes no yes no 5. yes no yes yes yes 6. no yes yes yes no
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