18.3 Probabilistic regression


Key points
- Probabilistic regression is a supervised learning approach, where the goal is to approximate the true conditional distribution (18.147) of a continuous output (18.146) given an input.
- In practice, discriminative regression models (18.159) are obtained from families of continuous distributions (18.153) parametrized via feature engineering (18.157) and are optimized by minimizing the cross-entropy (18.161).
- Discriminative linear regression (18.165) admits a generative embedding (18.179) and is a special instance of generalized linear models (18.181).
In the below we discuss the issue of probabilistic prediction (17.74) for supervised regression. In this context
- the output takes values in a continuum (17.6)
(18.146) - as we shall see, probabilistic statements (17.74) aim at guessing the conditional distribution of the output (17.3) given the input (17.4)
(18.147)
See more in Table 18.3.
Alert 18.4.
Probabilistic regression can be one of two classes: i) discriminative (17.82)
or ii) generative (17.87), see Section 17.2.2. Here we focus mainly on the discriminative
models, which are the most popular and computationally parsimonious, see e.g. Example
17.10.
Among the analytically tractable discriminative models, a special role is played by generalized linear models (Section 18.3.6) which include normal linear regression (18.181). From these follow immediate generalizations, and the more elaborate enhancements through the feature engineering techniques discussed in Chapter 7.
However, for most applications in risk and portfolio management, analytical discriminative models (17.82) are a luxury, as typically one needs to walk through all the steps of the “Checklist” (Parts IX-X-XI) to obtain a numerical predictive joint distribution of explanatory variables and target variables (17.1).
Example 18.16. In Example 17.14 we follow
the steps of the “Checklist” to compute the predictive distribution for a call option return
(17.55) via kernel smoothing (23.8) on the S&P 500 index return
(17.56).
18.3.1 Error
In the supervised context, consider the probabilistic prediction problem (17.74), where the goal is to obtain a probabilistic prediction (19.179) for the conditional distribution of the output (19.178).
To measure the goodness of the probabilistic prediction we use the logarithmic scoring rule (17.95), which we report here
| | (18.148) |
Then, following a discriminative approach (17.82), we evaluate the goodness of the prediction in terms of the ensuing cross-entropy (17.78), which here reads as in (17.83)
| | (18.149) |
where denotes the true, unknown joint distribution of the inputs (17.4) and outputs (17.3). See more in Table 18.3.
18.3.2 Theoretical optimum
Let us define the theoretical optimum, that we would achieve by minimizing the error (18.149) if we knew the joint distribution and if we had infinite computational power.
In the context of supervised point prediction (18.15), we consider arbitrary functions that with any input (17.4) associate a point guess for the output (18.13). Similar, in the context of supervised probabilistic prediction, we consider arbitrary functions which associate any input (17.4) to a probabilistic guess (18.147), and hence a positive function which integrates to one
|
| (18.150) |
Accordingly, let us perform the error minimization (18.149) across all the possible functions (18.150)
| | (18.151) |
and where we dropped the dependence of the expectation on the true joint distribution for ease of notation.
The minimization (18.151) trivially yields as solution the true, unknown, conditional distribution of the output (17.3) given the input (17.4) 70.10
| | (18.152) |
18.3.3 Target parameters
In order to obtain reasonable, interpretable, analytically tractable optimizations and solutions, we proceed in two steps.
First, we choose a parametric map onto the space of distributions as in (18.150)
|
| (18.153) |
where is a vector of target parameters and the parametrization ensures that, while the parameters span the set , the function remains a pdf (2.29)
| | (18.154) |
There exist several ways to specify a parametric map as in (18.153). In principle we can use any of the parametric families of (absolutely) continuous distributions discussed in Chapter 49. In practice, the specifications underlying the most popular approaches are summarized in the below.
Then, we postulate a model for the target parameters in (18.153) as a function of the inputs (17.4)
| | (18.155) |
At this stage it is important to ensure that the output remains in the parameter domain in (18.153). This yields a viable model for the conditional distribution (18.152)-(18.154)
|
| (18.156) |
18.3.4 Optimization in practice
Similar to least squares regression (Section 18.1.3), to build a probabilistic predictor (18.156) we proceed in two steps: first, we model suitably the dependence of the continuous, target parameters (18.155) on the inputs; second, we determine the optimal predictor (18.156) via error minimization.
To model the target parameters (18.155) we can leverage feature engineering techniques ( Chapter 7), applying the same results as for least squares regression (Section 18.1.3).
More precisely, at this stage, we can apply feature engineering to express the target parameters (18.155) as parametric functions of the inputs as in Table 7.2. For example, we can parametrize the variables in several ways, e.g. via fixed basis, such as polynomials (7.25), adaptive basis, such as trees (7.34), or neural networks (7.47)
| | (18.157) |
where the parameters belongs to a suitable domain such that ensures that the output belongs to the domain in (18.153)
| | (18.158) |
By sequencing the parametric map (18.153) and the model of the target parameters (18.157), we obtain a parametric family of probabilistic predictors (18.156)
| | (18.159) |
Then, similar to the theoretical counterpart (18.151), we evaluate the goodness of a predictor as in (18.159) through the cross-entropy (18.149)
| | (18.160) |
Finally, the minimization (17.84) of the error (18.160) yields the discriminative regression
|
| (18.161) |
Note how (18.159)-(18.160)-(18.161) are consistent with the basic principles of decision theory (Table 18.4).
18.3.5 Linear regression
Linear regression is one of the most popular model for discriminative regression. It can be specified either via i) discriminative approach or ii) generative approach, as we proceed to discuss.
Discriminative model
Let us consider a probabilistic (discriminative) model (18.159) where:
- 1.
- the parametric map (18.153) is defined through the multivariate normal family (49.1)
(18.162) and hence the target parameters in (18.153) are the location and dispersion ;
- 2.
- the first set of target parameters are modeled as linear functions of fixed features (7.21), such as affine (18.35) or polynomial (7.24)
(18.163) where is an matrix; and the second set of target parameters are modeled as a constant function
(18.164) where is a symmetric (43.139) and positive (semi)definite (43.150) matrix.
This way, by sequencing the parametric map (18.162) and the models of the target parameters (18.163)-(18.164) as in the general discriminative modeling (18.159), we obtain the discriminative linear regression model
| | (18.165) |
By inputting the probabilistic model (18.165) in the cross-entropy (18.149) we obtain the error (18.160) 70.11
| | (18.166) |
Then the optimal probabilistic predictor solves (18.161)
| | (18.167) |
which yield the optimal loadings 70.11
| | (18.168) |
and optimal dispersion parameters 70.11
| | (18.169) |
Refer to Section 25.2.2 for the empirical implementation.
Example 18.17. In Example 25.2 we fit the normal model (18.165) for the daily
linear returns of
stocks in the S&P 500 and
sector indices
via maximum likelihood approach to perform probabilistic prediction in the stock market.
Similar to least squares regression (Section 18.1.4), the simplest instance of the discriminative linear regression (18.165) is obtained by setting the target parameters (18.163) simply as linear functions of affine features (18.35)
| | (18.170) |
where is an matrix arranged as in (18.36).
In this special situation the linear regression prediction (18.165) becomes
| | (18.171) |
where the optimal loadings matrix (18.168) reads 70.13
| | (18.172) |
where are exactly the standard regression shifts (14.86) and are exactly the standard regression loadings (14.84) between the output (17.3) and the input (17.4); and the dispersion matrix (18.169) reads as the regression residual covariance (14.100) 70.13
| | (18.173) |
Note how in this special case the point prediction (17.49) stemming from (18.171) by using the expectation (17.100) is the same as the least-squares counterpart (18.34)-(18.37).
Similar results follow if the target parameters are modeled linearly (18.163) in features which include a constant and other non-constant functions of the original inputs (17.4)
| | (18.174) |
such as polynomials (7.23). Indeed, generalizing the affine case (18.172)-(18.173), here the optimal loadings matrix (18.168) reads as in the least-squares counterpart 70.17
|
| (18.175) |
where are the standard regression shifts (14.86) and are the standard regression loadings (14.84) between the output (17.3) and the non-constant features ; and the dispersion matrix (18.169) reads 70.17
| | (18.176) |
However bear in mind that here all the predictions are probabilistic and hence more informative than the (point) least-squares ones (18.31)-(18.41)-(18.42).
Generative embedding
A popular generative model (17.87) for probabilistic regression (18.147) is the jointly normal model (49.20)
| | (18.177) |
where is a vector and is a a symmetric (43.139) and positive (semi)definite (43.150) matrix. This is a generative embedding (17.93) for the linear regression (18.165) with affine features (18.35) 70.14
| | (18.178) |
Alert 18.5.
Furthermore, in this special case the conditional prediction (17.89) obtained by
optimizing (17.88) the generative normal model (18.177) is the same as the optimal discriminative
counterpart (18.171), or 70.14
| | (18.179) |
Example 18.18. In Example 14.14 we consider a jointly normal model as in (18.177) for a univariate
output and input
(14.79) and display the probabilistic prediction (17.1), or conditional distribution, which is still
normal
| | (18.180) |
as follows from the optimal parameters (18.172)-(18.173). Refer also to Figure 14.5 for a visualization.
Exponential family embedding
When the target parameters (18.164) are exogenously specified and kept fixed (say ), the linear regression model (18.165), which here reads
| | (18.181) |
can be expressed in the form of an exponential family distribution (49.395) as follows 70.19
| | (18.182) |
where denotes the Riccati root (43.539) of and
- the canonical parameters (49.404) are the target parameters in (18.153), which by construction (18.163) are linear functions of the features
| | (18.183) |
- the sufficient statistics are (49.407);
- the base measure is the zero-mean normal pdf (49.4);
- the log-partition function (49.396) is quadratic (49.409)
| | (18.184) |
In particular, since in this case the inverse link function (49.402) is the identity function (49.411), the model (18.182) can be equivalently specified in terms of expectation parameters (49.410)
| | (18.185) |
18.3.6 Generalized linear models
We can relax the restrictive normal model (18.162) as in the standard linear regression (18.165).
More precisely, let us consider a probabilistic (discriminative) model (18.159) where:
- 1.
- the parametric map (18.153) is defined through the exponential family distribution (49.395)
(18.186) where and are fixed sufficient statistics and base measure respectively, and hence the target parameters in (18.153) are the canonical coordinates ;
- 2.
- the target parameters are modeled as linear functions of fixed features (7.21), such as affine (18.35) or polynomial (7.24)
(18.187)
This way, by sequencing the parametric map (18.186) and the model for the target parameters (18.187) as in the general discriminative modeling (18.159), we obtain the generalized linear models (GLM) [W]
| | (18.188) |
Since the canonical parameters are in one-to-one correspondence (49.402) with the expectation parameters (49.400), a generalized linear model (18.188) can be equivalently formulated by modeling the expectation parameters as linear functions of fixed features as in (18.187)
| | (18.189) |
where denotes the link function (49.402).
By inputting the probabilistic model (18.188) in the cross-entropy (18.149) we obtain the error (18.160)
| | (18.190) |
where denotes the log-partition function (49.396).
Then the optimum predictor solves (18.161)
| | (18.191) |
which is then addressed numerically in most of the cases [W].
Generalized linear models (18.188) are very flexible and cover a wide range of models [W], such as:
- the linear regression model with fixed covariance (18.181) 70.19 ;
- the logistic regression model (19.216) when adapted to classification problems (17.9), see Section 19.3.6.
Finally, we can further extend GLMs (18.188) by including other shapes for the canonical coordinates (18.187), in that we can consider any of the parametrizations discussed in Chapter 7, see Table 7.2
| | (18.192) |
18.3.7 Alternative generalizations
Similar to GLMs (18.188) we can easily extend the standard linear regression (18.165) by exploring other families of distributions.
For example, let us consider a probabilistic (discriminative) model (18.159) where:
- 1.
- the parametric map (18.153) is defined through the multivariate Student family (49.141)
(18.193) where the degrees of freedom are fixed, and hence the target parameters in (18.153) are the location and dispersion ;
- 2.
- the first set of target parameters are modeled as linear functions of fixed features (7.21), such as affine (18.35) or polynomial (7.24)
(18.194) where is an matrix; and the second set of target parameters are modeled as a constant function
(18.195) where is a symmetric (43.139) and positive (semi)definite (43.150) matrix.
This way, by sequencing the parametric map (18.193) and the models for the target parameters (18.194)-(18.195) as in the general discriminative modeling (18.159), we obtain another discriminative regression model (17.82)
| | (18.196) |
which is more suitable in applications, because it better fits the empirically observed fat tails in financial markets, see more in Section 25.2.3.
By inputting the probabilistic model (18.196) in the cross-entropy (18.149) we obtain the error (18.160) 70.3
| | (18.197) |
Then the optimal probabilistic predictor solves (18.161)
| | (18.198) |
which yield the optimal loadings 70.3
| | (18.199) |
and optimal dispersion parameters 70.3
| | (18.200) |
We remark that (18.199)-(18.200) provide the solution in terms of implicit equations. In practice, we must rely on recursive algorithms in order to approximate them numerically, see more in Section 25.2.3.
Furthermore, we recover the normal linear regression solutions (18.168)-(18.169) in the limit 70.3 .
Alert 18.6.
Notice that the Student
regression model (18.196):
- in contrast to the linear regression (18.181), is not a GLM (18.188), because the Student
distribution (49.141) does not belong to the exponential family (49.394), see [W];
- in contrast to the linear regression (18.177), does not admit a generative embedding (17.93)
with a joint Student
model (49.155), most notably because the dispersion parameter
(18.200), representing the conditional covariance (3.87), does not depend on the inputs
as in the generative counterpart (49.156)-(49.158).
Example 18.19. In Example 25.3 we fit the general Student
model (18.196) with
degrees of freedom for the daily linear returns of
stocks in the S&P 500 and
sector indices
via maximum likelihood approach to perform probabilistic prediction in the stock market.
