Gini Index
X1
X2
Y
1
1
0
1
2
1
2
1
1
2
2
0
2
3
1
3
3
1
Consider the above table of 6 observations. Values of X1 and X2 are used to predict the outcome Y. When Y is 1 the outcome is considered to be positive.
Now, instead of 2.5, if the splitting value of X2 is chosen as 1.5 then what is the Gini impurity of the split data?
Your Answer