Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Bayesian Portfolio Optimization: Understanding the Black-Litterman Model

4 min read

The Black-Litterman model is a Bayesian portfolio optimisation method that starts from the returns implied by market equilibrium and blends them with an investor’s own views, weighted by how confident the investor is in each view. The blended (posterior) returns are then fed into mean-variance optimisation, which gives more stable and intuitive portfolios than plain Markowitz optimisation.

Key Takeaways

  • Black-Litterman fixes the biggest weakness of mean-variance optimisation: extreme weights caused by small errors in expected returns.
  • The prior is the market-implied equilibrium return; the views can be absolute (“A returns 12%”) or relative (“A beats B by 3%”).
  • Each view carries an uncertainty (Ω); low-confidence views barely move the result.
  • Fischer Black and Robert Litterman developed the model at Goldman Sachs in 1990.

Investing in financial markets can be a daunting task, and one of the critical challenges investors face is constructing a portfolio that optimises returns while managing risks. Bayesian Portfolio Optimization, specifically the Black-Litterman Model, is a powerful tool that aids in this process. In this blog, we’ll break down the Black-Litterman Model in simple terms with formulas and examples, making it easier to grasp the concept.

Understanding Basic Portfolio Optimization

Before we look at the Black-Litterman Model, let’s briefly review traditional portfolio optimization. The goal of portfolio optimization is to find the right mix of assets that maximises returns while minimising risks. This involves the allocation of capital across various assets, such as stocks, bonds, and other investment opportunities.

Build desktop apps with Claude Code
LIVE COURSE · DEC 2026

Build desktop apps with Claude Code

Plan, build, package and distribute desktop apps for Windows, macOS and Linux, with Claude Code as your development partner.

  • 5 live sessions, 10 hours, starts 7 December 2026
  • CRM, algo trading and NSE Bhavcopy projects
  • Installers for Windows, macOS and Linux
Join the course →by Marketcalls

The most well-known approach to portfolio optimization is the Modern Portfolio Theory (MPT), which was developed by Harry Markowitz. MPT emphasises the trade-off between risk and return and strives to find the optimal allocation that balances these factors. In MPT, the primary input is the expected return and risk (typically measured as variance) of each asset.

However, MPT faces certain limitations, such as the sensitivity of results to expected return estimates. This is where the Black-Litterman Model comes into play.

Understanding the Black-Litterman Model

The Black-Litterman Model builds upon the foundation of MPT but provides a way to incorporate subjective views and expert opinions into the portfolio optimization process. This is particularly useful when historical data alone may not accurately reflect the current market conditions.

The model gets its name from its creators, Fischer Black and Robert Litterman, and it’s a Bayesian approach to portfolio optimization. According to Wikipedia, they developed it at Goldman Sachs in 1990, published it in 1991 in The Journal of Fixed Income, and followed up in 1992 with “Global Portfolio Optimization” in the Financial Analysts Journal.

The key idea behind Black-Litterman is to combine the investor’s prior beliefs about expected returns and the market equilibrium expected returns. The resulting expected returns are then used in the traditional MPT framework to optimise the portfolio allocation.

Steps in the Black-Litterman Model

Here are the steps to understand the Black-Litterman Model:

  1. Investor’s Prior Beliefs (Views): This is where the investor provides their subjective views or beliefs about the expected returns of assets. These views can be based on information, expert opinions, or any other insights.
  2. Equilibrium Expected Returns: These are the expected returns that would be implied by the market if the investor had no views. These can be calculated using historical data or other methods.
  3. Combining Views and Equilibrium Returns: The Black-Litterman Model combines the investor’s views and the equilibrium expected returns using Bayesian statistics. This results in a new set of expected returns that blend the two sources of information.
  4. Portfolio Optimization: With the adjusted expected returns, traditional MPT techniques are applied to optimize the portfolio allocation, taking into account the new beliefs.

Black-Litterman Model Formula

The formula to calculate the adjusted expected returns in the Black-Litterman Model is as follows:

Written out in text, the posterior expected return vector is:

E[R] = [ (τΣ)^-1 + Pᵀ Ω^-1 P ]^-1  [ (τΣ)^-1 Π + Pᵀ Ω^-1 Q ]

Π = δ Σ w_mkt   (market-implied equilibrium returns)
SymbolMeaning
E[R]Posterior (Black-Litterman) expected returns
ΠEquilibrium excess returns implied by market-cap weights
ΣCovariance matrix of asset returns (the “C” in the example below)
τScalar for the uncertainty of the prior, typically small (0.01 to 0.05)
PPick matrix: which assets each view refers to
QVector of view returns
ΩCovariance (uncertainty) of the views; usually diagonal
δ, wmktRisk-aversion coefficient and market-cap weights

If Ω is very large (no confidence in the views), E[R] collapses to Π. If Ω is very small (full confidence), the result moves all the way to the views.

Black-Litterman Model Example

Let’s say an investor holds a portfolio with stocks A, B, and C and has the following views and data:

  1. Investor’s Prior Beliefs (Views):
    • Stock A is expected to outperform the market by 5%.
    • Stock B will perform at the market level.
    • Stock C will underperform the market by 2%.
  2. Equilibrium Expected Returns (based on market data):
    • Stock A: 8%
    • Stock B: 7%
    • Stock C: 6%
    • Market: 7.5%
  3. Covariance Matrix (C), Scaling Factor (τ), and Covariance of Views (Ω) are also provided.

With these inputs, the Black-Litterman Model will adjust the expected returns based on the investor’s views, and then traditional portfolio optimization techniques can be applied to find the optimal portfolio allocation.

Worked Example in Python

Here is the same example with numbers filled in. The covariance matrix is illustrative, the market return is 7.5%, and the three views are written as absolute returns: A = 12.5%, B = 7.5% and C = 5.5%. Ω is set proportional to the prior variance of each view.

import numpy as np

# Equilibrium (prior) expected returns for stocks A, B, C
pi = np.array([0.08, 0.07, 0.06])

# Illustrative annual covariance matrix (volatility 20%, 18%, 15%)
vol = np.array([0.20, 0.18, 0.15])
corr = np.array([[1.0, 0.6, 0.4],
                 [0.6, 1.0, 0.5],
                 [0.4, 0.5, 1.0]])
sigma = np.outer(vol, vol) * corr

tau = 0.05

# Views (absolute): market return 7.5%
# A = 7.5% + 5% = 12.5%, B = 7.5%, C = 7.5% - 2% = 5.5%
P = np.eye(3)
Q = np.array([0.125, 0.075, 0.055])

# View uncertainty: proportional to the prior variance of each view
omega = np.diag(np.diag(P @ (tau * sigma) @ P.T))

inv_ts = np.linalg.inv(tau * sigma)
inv_om = np.linalg.inv(omega)
posterior = np.linalg.inv(inv_ts + P.T @ inv_om @ P) @ (inv_ts @ pi + P.T @ inv_om @ Q)

for name, prior, view, post in zip("ABC", pi, Q, posterior):
    print(f"Stock {name}: prior {prior:.2%}  view {view:.2%}  Black-Litterman {post:.2%}")

Output:

Stock A: prior 8.00%  view 12.50%  Black-Litterman 10.01%
Stock B: prior 7.00%  view 7.50%  Black-Litterman 7.75%
Stock C: prior 6.00%  view 5.50%  Black-Litterman 6.07%

Notice how the posterior sits between the prior and the view for A, rather than jumping to 12.5%. B ends slightly above both its prior and its view because it is correlated with A, and the bullish view on A spills over. This is exactly the behaviour that makes Black-Litterman portfolios less extreme than raw mean-variance portfolios. For production work, PyPortfolioOpt implements the model, including market-implied priors and confidence-based Ω.

Black-Litterman vs Markowitz Mean-Variance

PointMarkowitz mean-varianceBlack-Litterman
Expected return inputEstimated directly, often from historyMarket equilibrium blended with investor views
Sensitivity to inputsHigh; small changes swing weights sharplyLower; weights stay close to market weights unless views are strong
Investor viewsMust be expressed for every assetOnly for assets you have an opinion on
Typical resultConcentrated, corner portfoliosDiversified portfolios tilted toward the views

Limitations and Practical Tips

  • Results depend on τ and Ω, which are judgment calls. Test a range of values.
  • Market-cap weights are needed for the equilibrium prior; for Indian stocks use free-float market capitalisation.
  • Views should be few and well reasoned. Many weak views add noise.
  • Rebalance periodically and compare with a simple benchmark; see portfolio rebalancing and rolling Sharpe and Sortino ratios in Python.

The Black-Litterman Model is a valuable tool for portfolio optimization, as it allows investors to incorporate their subjective views into the decision-making process. By blending these views with market equilibrium returns in a Bayesian framework, the model provides a more robust approach to constructing an optimal portfolio. While the mathematics behind the model can be complex, it offers a powerful means of enhancing investment decision-making.

Frequently Asked Questions

What is the Black-Litterman model in simple terms?

It starts with the returns the market is implicitly expecting, adjusts them with your own views in proportion to your confidence, and uses the result to build a mean-variance portfolio.

Why is the Black-Litterman model called Bayesian?

The market equilibrium returns act as the prior, the investor views act as new evidence, and the blended returns are the posterior, just as in Bayes’ theorem.

What is tau in the Black-Litterman model?

Tau scales the uncertainty of the equilibrium returns. Small values such as 0.025 or 0.05 are common, meaning the prior is treated as fairly reliable.

Can I use the Black-Litterman model in Python?

Yes. You can implement the formula with NumPy as shown above, or use the PyPortfolioOpt library, which provides a BlackLittermanModel class.

Marketcalls Elite Traders Club

MEMBERSHIP

Marketcalls Elite Traders Club

Every Marketcalls course and live mentorship in one membership: 127 courses and 2,500+ hours of learning.

  • Market Profile, Orderflow, AFL, Pine Script and Python
  • Live mentorship and TradEdge trading room
  • Premium tools and the Elite Slack community

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More