Question: After a data set was partitioned using the split value of 45.5 for age. The age < 45.5 partition contains 22 patients with a diabetes
After a data set was partitioned using the split value of 45.5 for age. The age < 45.5 partition contains 22 patients with a diabetes diagnosis and 178 patients without a diabetes diagnosis, and the age ≥ 45.5 partition contains 48 patients with a diabetes diagnosis and 152 patients without a diabetes diagnosis.
a. Compute the Gini impurity index for the root node.
b. Compute the Gini impurity index for the age < 45.5 partition.
c. Compute the Gini impurity index for the age ≥ 45.4 partition.
d. Compute the Gini impurity index for the split.
e. State the rules generated from this split.
Step by Step Solution
3.32 Rating (158 Votes )
There are 3 Steps involved in it
a The Gini impurity index for the root node is 048 This is calculated by taking the sum of the squared probabilities of each class diabetes diagnosis ... View full answer
Get step-by-step solutions from verified subject matter experts
