Suppose we have input vector $\bold x$ together with a corresponding vector $\bold t$ of target variables, and our goal is to predict $\bold t$ given a new value for $\bold x$. The joint probability distribution $p(\bold x,\bold t)$ provides a complete summary of the uncertainty associated with these variables. Determination of $p(\bold x,\bold t)$ from a set of training data is an example of inference.

It is the subject of decision theory to tell us how to make optimal decisions given the appropriate probabilities.

1.5.1 Minimizing the misclassification rate

Suppose that our goal is to make as few misclassifications as possible. We need a rule that assigns each value of $\bold x$ to one of the available classes. Such a rule will divide the input space into regions $\mathcal R_k$ called decision regions, one for each class, such that all points in $\mathcal R_k$ are assigned to class $\mathcal C_k$. The boundaries between decision regions are called decision boundaries or decision surfaces.

Consider first of all the case of two classes. A mistake occurs when an input vector belonging to class $\mathcal C_1$ is assigned to class $\mathcal C_2$ or vice versa. This gives

$$ \begin{aligned} p(\text{mistake})&=p(\bold x\in\mathcal R_1,\mathcal C_2)+p(\bold x\in\mathcal R_2,\mathcal C_1)\\ &=\int_{\mathcal R_1}p(\bold x,\mathcal C_2)\ \text d\bold x+\int_{\mathcal R_2}p(\bold x,\mathcal C_1)\ \text d\bold x \end{aligned} $$

To minimize $p(\text{mistake})$ we should arrange that each $\bold x$ is assigned to whichever class has the smaller value of the integrand. Thus we should assign that $\bold x$ to class which has larger value $p(\bold x,\mathcal C_k)$. Since $p(\bold x,\mathcal C_k)=p(\mathcal C_k|\bold x)p(\bold x)$, the minimum probability of making a mistake is obtained if each value of $\bold x$ is assigned to the class for which the posterior probability $p(\mathcal C_k|\bold x)$ is largest.

For the more general case of $K$ classes, it is easier to maximize the probability of being correct, which is given by

$$ p(\text {correct})=\sum_{k=1}^Kp(\bold x\in\mathcal R_k,\mathcal C_k)=\sum_{k=1}^K\int_{\mathcal R_k}p(\bold x,\mathcal C_k)\ \text d\bold x $$

which is maximized when the regions $\mathcal R_k$ are chosen such that each $\bold x$ is assigned to the class for which $p(\bold x,\mathcal C_k)$ is largest. Again, using the property $p(\bold x,\mathcal C_k)=p(\mathcal C_k|\bold x)p(\bold x)$, we see that each $\bold x$ should be assigned to the class having the largest posterior probability $p(\mathcal C_k|\bold x)$.

1.5.2 Minimizing the expected loss

A loss function, also called a cost function is a single, overall measure of loss incurred in taking any of the available decision or actions. Our goal is to minimize the total loss incurred.

Suppose that, for a new value of $\bold x$, the true class is $\mathcal C_k$and that we assign $\bold x$ to class $\mathcal C_j$. In so doing, we incur some level of loss that we denote by $L_{kj}$, which we can view as the $k,j$ element of a loss matrix.

For a given input vector $\bold x$, our uncertainty in the true class is expressed through the joint probability distribution $p(\bold x,\mathcal C_k)$ and so we seek to minimize the average loss, where the average is computed with respect to this distribution, which is given by

$$ \Bbb E[L]=\sum_k\sum_j\int_{\mathcal R_j}L_{kj}p(\bold x,\mathcal C_k)\ \text d\bold x $$

Our goal is to choose the regions $\mathcal R_j$ in order to minimize the expected loss, which implies that for each $\bold x$ we should minimize $\sum_kL_{kj}p(\bold x,\mathcal C_k)$. And equivalently the decision rule that minimizes the expected loss is the one that assigns each new $\bold x$ to the class $j$ for which the quantity

$$ \sum_kL_{kj}p(\mathcal C_k|\bold x) $$

1.5.3 The reject option

We can achieve the reject option by introducing a threshold $\theta$ and rejecting those inputs $\bold x$ for which the largest of the posterior probabilities $p(\mathcal C_k|\bold x)$ is less than or equal to $\theta$.

Note that setting $\theta=1$ will ensure that all examples are rejected, whereas if there are $K$ classes then setting $\theta<1/K$ will ensure that no examples are rejected.