Question: c . Use Age = 5 1 as a split value to separate the newspaper subscribers from nonsubscribers, please calculate the Gini impurity index. Please

c. Use Age=51 as a split value to separate the newspaper subscribers from nonsubscribers, please calculate the Gini impurity index. Please show your complete work below.
d. Use Income \(=61,000\) as a split value to separate the newspaper subscribers from nonsubscribers, please calculate the Gini impurity index. Please show your complete work below.
e. Assume that the split with Age=51 produces the smallest Gini index across all possible Age splits, and assume that the best-split value for Income is 61,000, which predictor variable should be chosen as the first split for a decision tree? Why?
c . Use Age = 5 1 as a split value to separate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!