Question
A training data set shows that out of 50 potential customers 28 bought our product and 22 declined to buy our product.Your marketing manager wants
A training data set shows that out of 50 potential customers 28 bought our product and 22 declined to buy our product.Your marketing manager wants you to build a decision tree to explain this outcome.You want to determine which criteria (age < 30 or>30) or gender (male/female) is a better way to initially split the data for the decision tree.The age split shows that of those aged < 30, 22 bought the product while 12 did not, but for age>30, 6 bought the product and 10 did not.On the other hand, the gender split shows that 19 females bought the product while 14 females did not, but 9 males bought the product while 8 did not.Using the Gini Index, calculate the value of each split to determine which split, age or gender, is a better initial split for this decision tree.Show your work to clarify how you achieved your answer.
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