US ML-Enhanced Portfolio Optimization

US ML-enhanced portfolio optimization research MVO + XGBoost forecasts blended with Black-Litterman quarterly walk-forward backtest versus SPY plus charts for CAGR/Sharpe/Sortino drawdowns beta/alpha information ratio VaR/CVaR

Summary

This report implements the AI-Driven Quantitative Portfolio Optimization Engine (MLPO) on US large-cap equities: a 30-name diversified panel across technology, healthcare, finance, consumer, energy, industrial, and utilities sectors, benchmarked against SPY.

Out-of-sample evaluation uses quarterly walk-forward rebalancing with a rolling 36-month estimation window, training on history from late 2013 through November 2020, then simulating through the latest available prices. A 4% annualized risk-free rate proxies US cash/T-bill returns. Four constructions are tracked out-of-sample: mean-variance (MV) optimized, ML-enhanced MV (XGBoost views via Black-Litterman), a cap-weight reference, and SPY.

Interactive exhibits quantify return and risk (CAGR/total return, Sharpe/Sortino, max drawdown, beta/alpha, information ratio, and VaR/CVaR) plus SPY-relative behaviour (tracking error, correlation, up/down capture, and turnover), along with allocation and model diagnostics (sector concentration and ranked forecast signals).

Results are research illustrations of method behaviour—not investment advice or live trading signals.

  • ML + MV compound annual growth (15.10%) exceeded the SPY (14.90%) by 0.2 percentage points over the walk-forward window.
  • MV-only Sharpe (1.12) matched or beat ML + MV (0.67) here—historical means may have been as informative as technical forecasts in this period.
  • Drawdown on ML + MV (-22.40%) was comparable to or shallower than SPY (-23.80%), indicating risk was not disproportionately worse than the benchmark.
  • Alpha near zero—performance is largely explained by market co-movement (beta 0.92).
  • Information ratio 0.03 reflects modest or noisy active return relative to benchmark tracking error.

Data through 2026-07-17 · 30 stocks in universe · Walk-forward from 2020-11-30

Research workflow and data processing

Stage 1 — Universe and prices. Thirty liquid US tickers with aligned adjusted closes from Yahoo Finance; names with insufficient history are dropped before estimation.

Stage 2 — Feature engineering. Technical indicators (moving averages, RSI, MACD, momentum, volatility) feed the gradient-boosted forecasting model.

Stage 3 — Training window. At each quarterly rebalance, the prior 36 months form the estimation sample for means, covariances, and ML features.

Stage 4 — Optimization. Pure MV maximizes Sharpe under long-only bounds and a volatility ceiling; ML + MV replaces expected returns with Black-Litterman posteriors from ML views.

Stage 5 — Walk-forward simulation. Weights are held for one quarter; 0.1% slippage applies to turnover at each rebalance.

Stage 6 — Risk analytics. Cumulative paths, drawdowns, Sharpe/Sortino, beta/alpha versus SPY, VaR/CVaR, and sector concentration are summarized in the interpretation section.

Quantitative framework

Mean-variance optimization. Weights maximize Sharpe subject to , box constraints, and with annualized.

Machine-learning views. XGBoost predicts forward returns from technical features; out-of-sample maps to view confidence, with forecasts shrunk toward historical means before Black-Litterman blending ().

Black-Litterman. Cap-weight notionals imply equilibrium returns; investor views with diagonal produce posterior expected returns for the second MV solve.

Performance metrics. CAGR, Sharpe, Sortino, max drawdown, beta, alpha, VaR, and CVaR follow standard definitions on daily portfolio returns versus SPY.

How to interpret the results

Compare ML + MV to MV only to see whether ML views improve the risk-return trade-off; compare both to SPY for passive benchmark context.

Sector allocation bars show industry concentration in the latest optimized book. Signal tables rank cross-sectional forecasts from the most recent training window (annualized, model-implied)—illustrative, not orders. Use the risk and relative analytics above to judge whether any outperformance (if observed) comes with better downside control (drawdowns + VaR/CVaR) and how the portfolio participates in market up- and down-moves (capture metrics).

StrategyCAGRTotalSharpeSortinoMax DDVol
ML + MV+0.2 pp vs SPY15.10%118.50%0.671.08-22.40%17.10%
MV only+9.1 pp vs SPY24.00%231.90%1.121.87-20.00%16.90%
Cap-weight+4.5 pp vs SPY19.40%167.70%0.991.63-19.20%15.00%
SPY14.90%116.80%0.681.11-23.80%16.70%

Tracking error

7.70%

Correlation

0.90

Up-capture

0.92

Down-capture

0.90

Avg rebalance turnover (ML)

59.00%

Calmar (ML + MV)

0.67

Alpha (ann.)

1.10%

Beta

0.92

Information ratio

0.03

VaR 95% (daily)

1.70%

CVaR 95% (daily)

2.50%

Win rate (daily)

54.40%

Best / worst day

9.90% / -7.90%

YearML + MVSPYExcess
20204.00%3.70%+0.3 pp
202139.40%25.90%+13.5 pp
2022-11.70%-16.60%+4.9 pp
202323.20%25.90%-2.7 pp
202418.60%25.50%-6.9 pp
20258.00%17.40%-9.4 pp
20268.00%9.40%-1.4 pp

Largest sector: Finance at 62.10%

TickerPrice ($)ForecastSignal
MSFT205.6135.0%Strong Buy
ADBE477.0335.0%Hold
COST357.130.9%Strong Buy
NEE65.1926.4%Strong Buy
AAPL113.2825.6%Strong Buy
NVDA13.223.6%Hold
CRM243.4222.3%Hold
UNH306.2321.3%Strong Buy
PG120.5421.0%Hold
MS53.8420.3%Strong Buy
HON184.9917.3%Strong Buy
BAC25.2617.1%Strong Buy
NKE122.8417.1%Strong Buy
BA216.516.1%Strong Buy
ABBV84.3215.8%Strong Buy
LLY139.4415.6%Strong Buy
JPM104.9715.1%Strong Buy
GOOGL88.5715.1%Strong Buy
BLK624.0813.0%Strong Buy
CAT158.5312.8%Strong Buy

Limitations

Yahoo Finance prices and simplified transaction costs (slippage on turnover only) may differ from live execution.

The fixed 30-stock panel is not the full S&P 500; results may not generalize to broader universes.

ML forecasts are noisy; views are shrunk toward historical means by design.

Past backtest performance does not guarantee future results.

Conclusion

ML-enhanced portfolio optimization on a diversified US equity panel illustrates how forecast views blended via Black–Litterman can shift mean-variance weights relative to a pure MVO baseline. Walk-forward quarterly rebalancing with explicit turnover costs is essential for interpreting headline Sharpe ratios.

Strong backtest performance can reflect factor exposures, constraint slack, or period-specific regimes rather than repeatable alpha after costs. Refresh the study when new market data are available to keep conclusions aligned with current conditions.

QuantifiedTrader logoQuantifiedTrader

Independent quantitative research on trading methods, backtesting, and market analytics.

Research disclaimer

QuantifiedTrader is operated by an independent quantitative research group. We study, document, and compare different methods of trading, portfolio construction, risk management, and investment analysis. Our work is exploratory and academic in nature—we build tools, run backtests, and publish findings to advance understanding, not to promote any particular strategy or product.

Not investment advice. Nothing on this website constitutes investment, trading, financial, tax, legal, or other professional advice. We do not recommend, endorse, or solicit the purchase or sale of any security, derivative, or financial instrument, nor do we suggest that any strategy, model, or result presented here is suitable for any individual or institution. Any examples, simulations, or performance figures are illustrative research outputs only.

No client or advisory relationship. We do not provide investment advisory, brokerage, portfolio-management, custody, or asset-management services to any person or entity. Browsing this site, using our tools, or contacting us does not create a client, fiduciary, or advisory relationship. We do not manage money on behalf of third parties and do not act as agents for any financial institution.

Research & education only. Content, datasets, backtests, charts, code, and software made available here are for informational and educational research. Materials may be incomplete, simulated, hypothetical, or derived from third-party sources that we do not control. Past performance, backtested results, and historical analyses are not indicative of future results. Market conditions change; models may fail; assumptions may be wrong. You are solely responsible for evaluating any information and for all decisions you make.

No responsibility or liability. To the fullest extent permitted by applicable law, QuantifiedTrader and its contributors disclaim all responsibility and liability for any loss, damage, cost, or expense—direct or indirect—arising from access to, use of, or reliance on this website, its content, or its tools. All materials are provided “as is” and “as available,” without warranties of any kind, whether express or implied, including but not limited to accuracy, completeness, fitness for a particular purpose, or non-infringement.

Non-commercial research sharing. This site does not aim to profit from the knowledge, tools, or datasets published here. Materials are shared for non-commercial research and learning, subject to applicable open-source or site terms where noted. We are a research collective, not a commercial product or service provider.

Contact. For questions about this notice, the site, or published research materials, contact support@quantedx.com. Correspondence is for administrative and research purposes only and does not constitute advice or create any professional obligation on our part.

© 2026 QuantifiedTrader. All rights reserved.