Let be a table of labelled examples whose feature vectors are all different. Let be an input that appears in no row of , and let be any label. Construct a predictor whose empirical risk on under the zero-one loss is zero and whose answer at is . Then explain what the construction shows about empirical risk minimisation over the class of all predictors.
This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.
Worked solution
Define in three parts. At each stored input set . At the new input set . At every other input set , or any other fixed label. On each stored row the prediction equals the recorded label, so the zero-one loss is 0. The empirical risk is the average of zeros, which is 0. Now replace by a different label and define a second predictor in the same way. Both and have empirical risk 0 on , and they disagree at . The empirical risk minimisation problem asks for a candidate with the smallest average loss on the stored rows, so it gives the same value, 0, to both candidates and cannot choose between them. Section 2.1 says the table constrains a predictor at six places and is silent at the seventh; this construction proves the general form of that statement. Something beyond the table has to choose: a restriction on the class, a tie rule, or a prior preference. Section 2.6 calls that restriction the hypothesis class, and it is the first of the four questions.