Definition (classification problem, Bayes classifier)

Consider a regression problem with $X\in \mathcal{X}$ and $Y\in \set{0,1}$. Assume $X\mid Y = 0$ has density $f_0$ and $X\mid Y = 1$ has density $f_1$. Suppose $π$ is prior on $Y$, with $π_0 = \prob[Y = 0]$ and $π_1 = \prob[Y = 1]$.

The regression function is $$ \begin{align*} η(x) := \prob[Y = 1 \mid X = x] = \frac{π_1 f_1(x)}{π_0 f_0(x) + π_1 f_1(x)}. \end{align*} $$

A classifier is a decision rule $δ: \mathcal{X} \to \set{0,1}$.

The 0-1 loss is $$ \begin{align*} L(δ(X), Y) = \mathbb{1}_{\set{δ(X) \neq Y}}. \end{align*} $$

A classifier $δ$ is a Bayes classifier if it is a $π$-Bayes rule, i.e. it minimises the $π$-Bayes risk $$ \begin{align*} R_π(δ) = \prob[δ(X) \neq Y]. \end{align*} $$