Solution (source code)

= Solution

$\widehat R_\phi(h)=n^{-1}\sum_{i=1}^n\phi(Y_ih(X_i))$.