Chapter 19
Supervised learning: classification


In the present chapter we discuss the main supervised classification models for both point (17.49) and probabilistic (17.74) prediction, where the goal is to predict either the specific outcome and/or the conditional probability of some categorical (17.9) target variables, or outputs (17.3), given the outcome of some continuous factors, or inputs (17.4), see Section 17.1.1 and Section 17.2. Supervised classification is a generalization of regression linear factor models with categorical outputs (17.9), as shown in Figure 1.6 which we report in highlight in the below
The aim for both point and probabilistic prediction is either for stress-testing (17.13) or forecasting (17.16).
| | (19.1) |
Also, let us use as input, the same return on the S&P 500 index (14.2), but between yesterday and today, so that we obtain a predictive model
| | (19.2) |
Then, the conditional predictive distribution is Bernoulli
| | (19.3) |
and we can use a binary classification model based on logistic regression with interactions to parametrize the conditional probability of the positive outcome
| | (19.4) |
so that . To set the optimal parameters, we should maximize the likelihood with respect to the true distribution
| | (19.5) |
In our case, the realized time series of the output (19.1)
| | (19.6) |
joined with the time series of the input (19.2)
| | (19.7) |
follows from the original time series (14.8)-(19.6)
| | (19.8) |
Then, if the output
is conditionally i.i.d. across time given the input
, and if the input
is i.i.d., we can fit the
conditional probability
(19.4) by replacing the true random variables in (19.5) with their sample counterparts in the time
series (19.8), using the optimal parameters (19.5) which read ![]()
![]()
| | (19.9) |
In our case the predicted conditional probability (19.4) that portfolio return (19.1) will be positive tomorrow reads
| | (19.10) |
to be compared with the unconditional estimated probability . From the probabilistic prediction (19.10), we can naturally obtain a point prediction for the future outcome of the binary variable (19.1)
| | (19.11) |
In point prediction (17.49), the predictor, or classifier (17.51) is given by a sum of indicators function on a suitable partition (44.132) of the input domain
|
| (19.12) |
and in probabilistic prediction (17.74), the predictor (17.75) is given by (conditional) probabilities
| | (19.13) |
The true outcome
(17.49) of the output
(17.3) is the state (6.7), which we predict via the realization
of the input
random vector
(17.4), i.e. the observed input (6.89), by means of a predictor
(17.50), as identified
by the partition ,
which is the decision (6.91).
To evaluate the goodness of the prediction, we consider a divergence
(43.269), which is the loss (6.14). Then, by feeding the loss with the data generating process (DGP)
(6.111) we
obtain the error
(17.71), which is the Bayes risk of a decision (6.118). Note from Table 19.1 that a decision in this context is
a predictor .
The search for the optimal predictor is performed across parametric functions, as summarized in
the table below for point prediction (17.49)
Similar to the point counterpart (Table 19.1), also probabilistic prediction is but an instance of
decision theory (Section 6.1), see Table 17.5 and also the below
The true outcome
(17.49) of the output
(17.3) is the state (6.7), which we predict via the realization
of the input
random vector
(17.4), i.e. the observed input (6.89), by means of a predictor
(17.75), which is the decision (6.91).
To evaluate the goodness of the prediction, we consider a scoring rule
(17.95), which is
the negative counterpart of a loss (6.14). Then, evaluating the expected loss, with the data generating process
(DGP) (6.111) we
obtain the error
(17.97), which is the Bayes risk of a decision (6.118). Note from Table 19.3 that a decision in this context is
a predictor .
The search for the optimal predictor is performed across parametric functions, as summarized in
the table below for probabilistic prediction (17.74)
The evaluation and optimization components in Tables 19.1-19.4 correspond to the frequentist approach (Section 6.3.4) discussed in general decision theory, see Table 6.4.
Most notable errors for supervised classification are e.g. the misclassification error (12.71) in point prediction (17.49); or the cross-entropy (5.5) in probabilistic prediction (17.74).
In order to find an optimal prediction, the standard approach is to restrict the search to a parametric family of predictors such as linear bases, trees, or neural networks:
| | (19.14) |
The remainder of this chapter is organized as follows.
In Section 19.1 we discuss point classification models for binary output variables.
In Section 19.2 we extend binary point classification to the multinomial case.
In Section 19.3 we present the more ambitious probabilistic classification models based on different errors, such as cross-entropy, Gini impurity and probabilistic misclassification.
Finally, in Section 19.4 we address some points of interest.


