Supervised learning can be usually seen as picking one function (model) $f$, from a set of possible functions $F$ - umass sml2011
Loss function
<aside> 📖 Given some particular pair of inputs, $\mathbf x$ and outputs $\mathbf y$, the loss is defined as follows:
$$ L(f(\mathbf x), \mathbf y) $$
Where:
This tells us how much the prediction, $f(\mathbf x)$ “hurts”, given that the true output is $\mathbf y$
Risk
<aside> 📖 Assuming we have some ‘true’ distribution over inputs $\mathbf x$ and $\mathbf y$, the risk is defined as:
$$ \begin{align*} R_{true} &= \mathbb{E}[L(f(\mathbf x), \mathbf y)]\\ &= \int \int p(\mathbf x, \mathbf y)L(f(\mathbf x), \mathbf y)d\mathbf xd\mathbf y \end{align*} $$
i.e. the expected loss, true loss
</aside>
Risk measures how much on average, it ‘hurts’ to use $f$ as for our predictions.
Choosing a loss function
“What loss function is appropriate?”
The loss function depends on the priorities of the user
Assume we have: