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 Yeart 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

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

a valuing of personal and psychological privacy;

Answered: 1 week ago