Empirical risk (source code)

= Empirical risk
{title2=$\widehat R_n$}

The empirical risk of a hypothesis $h$ on observations $z_1,\ldots,z_n$ is the sample-average loss
$$
\widehat R_n(h)=\frac1n\sum_{i=1}^n\ell(h,z_i).
$$