a) Define a miss as h(x) \neq f(x) for some x, and a hit when h(x) = f(x).
By definition, f(x) = 1 for all x. Now, since h(x_k) \neq 1 for even k, we have that a miss when k is even. Hence E_{off}(h, f) = \frac{Number of **even** m between 1 and M}{M}, resulting in E_{off}(h, f) = 1/2.
I think you got it the other way around.
b) Isn't this the same idea as section 1.3.1? The idea is that you can vary all points outside the training set and still have f generate D. Since \mathcal{Y} = \{ -1, +1\}, each point x outside of the training set can have 2 possible f(x) = y. Therefore, it should be 2^M and not 2^N
a) Define a miss as
h(x) \neq f(x)for some x, and a hit whenh(x) = f(x).By definition,
f(x) = 1for allx. Now, sinceh(x_k) \neq 1for evenk, we have that a miss whenkis even. HenceE_{off}(h, f) = \frac{Number of **even** m between 1 and M}{M}, resulting inE_{off}(h, f) = 1/2.I think you got it the other way around.
b) Isn't this the same idea as section 1.3.1? The idea is that you can vary all points outside the training set and still have
fgenerateD. Since\mathcal{Y} = \{ -1, +1\}, each pointxoutside of the training set can have 2 possiblef(x) = y. Therefore, it should be2^Mand not2^N