Machine Learning, AI, ML, Decision Trees, Probability.
Set 2: four red balls, three blue balls, two yellow balls, one green ball Set 1 looks more pure than set 2, because set 1 contains mostly red balls and a couple of blue ones, whereas set 2 has many different colors. Next, we devise a measure of impurity that assigns a low value to set 1 and a high