In The Recursive Construction Of Decision Trees It Sometimes Happens That A Mixed Se 2346571

In the recursive construction of decision trees, it sometimes happens that a mixed set of positive and negative examples remains at a leaf node, even after all the attributes have been used. Suppose that we have p positive examples and n negative examples.

a. Show that the solution used by DECISION-TREE-LEARNING, which picks the majority classification, minimizes the absolute error over the set of examples at the leaf.

 b. Show that the class probability p/(p + n) minimizes the sum of squared errors.