Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions