Portfolio optimizer with Black-Litterman and machine-learning views

Blend market equilibrium with StoQuant's ML price forecasts (the "views") using the Black-Litterman model. Adjust confidence in your views via Omega, the uncertainty matrix.

Black-Litterman: equilibrium plus your convictions

The Black-Litterman model solves a key problem in portfolio construction: how to blend market-implied returns (the equilibrium prior) with your own forecasts (the views) without creating overconfident allocations. StoQuant provides the views: a 93-feature ML ensemble predicting 30/60/90-day excess returns, combined with sentiment, analyst consensus, and macro regime signals. The Black-Litterman optimizer uses a covariance matrix (computed from rolling historical returns) and an uncertainty matrix (Omega) to blend equilibrium and views. The result is a diversified portfolio that respects your conviction level while staying grounded in market reality. Optional regime overlay adjusts the optimization strategy based on Hidden Markov Model regime detection (bull, range, bear).

How it works

  1. Establish the market equilibrium prior — Compute market-cap-weighted expected returns (implied by the covariance matrix). This is the baseline if you had no special views.
  2. Layer in ML forecasts as views — StoQuant's 93-feature ensemble produces probability of 30/60/90-day outperformance. Map these to expected returns (the Q vector). Specify confidence in each view via Omega, the uncertainty matrix.
  3. Solve for posterior expected returns — Black-Litterman combines equilibrium + views using Bayesian logic. The result is a revised expected-return vector that feeds into mean-variance optimization, producing portfolio weights with optionally adjusted risk limits by market regime.

Related on StoQuant

Master the theory: Black-Litterman Explained (stoquant.com/learn/black-litterman-explained) and Hidden Markov Model for Stocks (stoquant.com/learn/hidden-markov-model-stocks). Check the current regime: Today's Market Regime (stoquant.com/today/market-regime). Compare approaches: StoQuant vs Simply Wall St (stoquant.com/compare/simply-wall-st).

FAQ

What is the Black-Litterman model?

A Bayesian portfolio optimization method that starts with market equilibrium (implied returns) and updates it with your views (forecasts). It avoids the extreme allocations that naïve mean-variance optimization often produces.

"Views" in Black-Litterman

Your forecasts of expected returns (or excess returns) for each asset. StoQuant's views come from a 93-feature ML ensemble. You specify your confidence in each view via Omega (the uncertainty matrix).

What is Omega?

The uncertainty (covariance) matrix of your views. Diagonal elements reflect confidence in each forecast; off-diagonal elements capture correlation between views. StoQuant maps ML model confidence intervals to Omega automatically.

How does regime overlay affect portfolio weights?

In bull regimes, the optimizer may increase equity exposure. In bear regimes, it tightens stop-losses or increases cash. HMM regime classification updates daily based on S&P 500 log-returns, volatility, and yield curve signals.