60b.2 Mean-variance Bayesian optimization
Key points
- The Bayesian approach to estimation risk mitigation yields the Bayesian allocation (60b.44), which maximizes the expected utility of a Bayesian predictive distribution (60b.42).
- To obtain this allocation, a prior distribution (60b.37) is postulated for the return mean and covariance, then a likelihood for the data (60b.36) and for the future returns (60b.41).
- The Bayesian allocation lies between the sample-based and implied return allocations (60b.48), with sample size and confidence parameters specifying the mix between these two extreme allocations.
One approach to obtaining an optimal estimate of the efficient frontier (60b.8) is the Bayesian approach, summarized in Table 27.3.
Accordingly, we postulate
1. A likelihood (27.3), namely a distribution for the past returns (60b.13) given the mean and the covariance (60b.5)
| | (60b.36) |
This way we can compute the conditional distribution of the loss (60b.25).
2. A prior distribution (27.26) for the mean and the covariance (60b.5)
| | (60b.37) |
With the likelihood (60b.36) and the prior (60b.37) we can build a joint model (27.27) for the past returns (60b.13), the mean and the covariance (60b.5)
| | (60b.38) |
Then we must minimize the expectation (27.32)-(27.33) over all estimators
| | (60b.39) |
The solution is equivalent to postulating a larger joint model (29.25) for the future returns, the mean, the covariance and the past returns
| | (60b.40) |
then marginalizing out the parameters to compute the predictive (29.29)
| | (60b.41) |
and then finally computing the optimal estimator (60b.39) as in (29.45) as the Bayes action (6.82) of the predictive distribution for the loss (60b.41) or 70.4
| | (60b.42) |
To get a predictive distribution we assume that:
- the returns (60b.13) are i.i.d. (27.8) and normal (49.1)
| | (60b.43) |
for , which addresses the term in the joint distribution (60b.40);
- the mean and covariance are normal-inverse-Wishart (24.53)-(24.54), which addresses the term in the joint distribution (60b.40).
Then under the above normal-inverse-Wishart model Table 24.8, the predictive distribution (60b.41) is the Student distribution (24.62). Minimizing the expected loss (60b.42) under this distribution, we obtain the Bayesian allocation 70.5
| | (60b.44) |
where:
- is the
sample mean (24.2);
- is the sample covariance (24.4);
- is a
constant;
- the constants
(24.57)-(24.59) determine the amount of shrinkage towards the prior allocation, as we describe in
greater detail below.
When the sample size is large and we have small confidence in the prior, we obtain
| | (60b.45) |
and therefore the Bayesian allocation (60b.44) becomes the sample-based allocation (60b.16), scaled by .
Conversely, we have high confidence in the prior, and a small sample size , we obtain
| | (60b.46) |
If we further enforce the implied return constraint (60a.40) on the prior
| | (60b.47) |
where is the strategic allocation giving rise to the implied returns allocation, the Bayesian allocation (60b.44) becomes the implied returns allocation (60b.17).
In summary, the Bayesian allocation (60b.44) blends the sample-based allocation (60b.16) and the implied return allocation (60b.17) non-linearly, with the shrinkage toward the implied return allocation determined by the sample size and confidence in the prior
| | (60b.48) |
Example 60b.5. Stock portfolio: Bayesian allocations


Consider the setting described in Example 60b.1, namely a market of stocks with true mean and covariance (60b.9). We wish to estimate the efficient allocation (60b.11) for trade-off parameter (60b.10). In this example, we consider the Bayesian allocation (60b.44). We set the prior mean and covariance as
| | (60b.49) |
so that the implied return constraint (60b.47) is enforced with the target allocation set as the
equally-weighted allocation (60b.19).
We set the shrinkage parameters as
| | (60b.50) |
and compute the Bayesian allocations (60b.44) for each of the
time series
of length
drawn from the true return distribution (60b.28).
Figure 60b.2 shows the mean-variance profile of the Bayesian allocations (orange), compared to the
true efficient frontier (60b.4) and true efficient allocation (60b.11) (pink). We also mark sample-based allocations computed from the same samples from the true distribution (60b.28)
(gray) and implied return (60b.19) (green) allocations. Notice that the Bayesian allocations
display less variability than the sample-based allocations, while still using the available
data.


