Bayesian Black-Litterman Model

The Bayesian Black-Litterman Model of Kolm and Ritter (2017) puts the views on the factors of a factor model rather than on the assets: the prior is the factor model itself, with the historical average factor returns as the prior factor premiums, the views update those premiums, and the asset returns follow from the model. It takes views on the factors only, never on the assets, and needs no market weights.

The formula for the Bayesian Black-Litterman Model starts from the prior factor premiums \(\mu_{f}\), the historical average factor returns with uncertainty \(\tau \cdot \text{Sigma}_{f}\), and the views on the factors as the rows of P with the view returns Q and the uncertainties Omega; the posterior premiums \(\text{Pi}_{\text{hat}}\) and their uncertainty \(S_{\text{hat}}\) are:

\[S_{\text{hat}} = \tau \cdot \Sigma_{f} - \tau \cdot \Sigma_{f} \cdot P' \cdot (P \cdot \tau \cdot \Sigma_{f} \cdot P' + \Omega)^{-1} \cdot P \cdot \tau \cdot \Sigma_{f}\] \[\Pi_{\text{hat}} = \mu_{f} + \tau \cdot \Sigma_{f} \cdot P' \cdot (P \cdot \tau \cdot \Sigma_{f} \cdot P' + \Omega)^{-1} \cdot (Q - P \cdot \mu_{f})\]

The asset returns and their covariance follow from the factor model, with alpha the intercepts, B the loadings and D the residual variances of the assets:

\[\mu = \alpha + B \cdot \Pi_{\text{hat}}\] \[\Sigma_{\text{Post}} = B \cdot \Sigma_{f} \cdot B' + D + B \cdot S_{\text{hat}} \cdot B'\]

Without views the expected return of every asset is its average return, \(\alpha + B \cdot \mu_{f}\), and the weights are the mean-variance portfolio of mu and Sigma_Post; a view on a factor moves every asset in proportion to its loading on that factor.

The model of Black and Litterman (1992) starts from the returns at which holding the market portfolio is optimal and moves them towards the views of the investor, in proportion to the confidence in each. Historical average returns make mean-variance weights extreme and unstable; starting from the market keeps the weights at the market weights without views, and only the views move them away.

Views are absolute ({“AAPL”: 0.10}: AAPL returns 10% a year in total, risk free rate included) or relative ({“AAPL-MSFT”: 0.02}: AAPL beats MSFT by 2% a year). Without a confidence, a view is as uncertain as the variance of the view portfolio scaled by tau, the uncertainty of the implied returns relative to the covariance (He and Litterman, 1999); a confidence c scales that by (1 - c) / c, the method of Idzorek (2005) in the closed form of Walters (2014), so a confidence of 0.5 keeps that uncertainty and one close to 1 moves the return all the way to the view. The risk aversion is 2.5 by default, the value He and Litterman (1999) use for the world market, or the one the benchmark implies, its annualized average excess return over its annualized variance. The weights are the mean-variance portfolio of the posterior returns with the same risk aversion. Without views, or with relative views only, the risk free rate shifts every return by the same amount and leaves the weights unchanged; an absolute view is compared with the implied total return, so there it matters.

Also known as: Bayesian Black-Litterman, BLB, factor model views.

In the Finance Toolkit this is get_black_litterman_weights with method="bayesian", the same function as Black-Litterman.

Example · AAPL, MSFT, JNJ, XOM · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_black_litterman_weights:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "JNJ", "XOM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

# The Bayesian model takes its views on the Fama and French factors
toolkit.portfolio.get_black_litterman_weights(
    method="bayesian", factor_views={"HML": 0.03, "SMB-HML": 0.01}
)

Which returns:

References

  • Paper Kolm, P. and Ritter, G. (2017). “On the Bayesian Interpretation of Black-Litterman.” European Journal of Operational Research, 258(2), 564-572.
  • Library Referenced against Riskfolio-Lib’s black_litterman_bayesian (Bayesian Black-Litterman Model)
Share