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.

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 reported below.

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).

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.

Empirical exhibits (below)

Interactive charts below cover the full scorecard: strategy performance (CAGR/total return, Sharpe/Sortino, max drawdown, volatility), relative analytics vs SPY (tracking error, correlation, up/down capture, and turnover), and risk profile (beta/alpha, information ratio, VaR/CVaR).

You also get behaviour over time (calendar-year returns, drawdown and cumulative wealth paths, monthly returns), plus allocation and model outputs (sector concentration and ranked cross-sectional signals). Regenerate with npm run data:us-mlpo after refreshing market data.

Results

Key takeaways

Automated reading of the latest backtest—use alongside the methodology section for context.

  • ML + MV CAGR (14.70%) trailed the SPY (15.50%) by 0.8 percentage points—active tilts did not add return in this sample.
  • MV-only Sharpe (1.14) matched or beat ML + MV (0.66) here—historical means may have been as informative as technical forecasts in this period.
  • Drawdown on ML + MV (-22.30%) 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.08 reflects modest or noisy active return relative to benchmark tracking error.

Data through 2026-05-26 · 30 stocks in universe · Walk-forward from 2020-11-30

Strategy scorecard

Out-of-sample metrics after quarterly rebalancing (~36-month rolling training window). CAGR annualizes terminal wealth; Sharpe and Sortino scale return against volatility (Sortino penalizes only downside moves); max drawdown is the worst peak-to-trough loss on the cumulative path.

StrategyCAGRTotalSharpeSortinoMax DDVol
ML + MV-0.8 pp vs SPY14.70%110.60%0.661.04-22.30%17.10%
MV only+9.1 pp vs SPY24.60%229.80%1.141.90-20.00%17.00%
Cap-weight+3.8 pp vs SPY19.30%160.70%0.981.62-19.20%15.10%
SPY15.50%118.40%0.701.15-23.80%16.80%

Active risk versus SPY (ML + MV)

How the optimized book behaves relative to the index over the same out-of-sample dates. Up-capture above 1 means the strategy participates more in index rallies; down-capture below 1 means softer participation in selloffs.

Tracking error

7.40%

Correlation

0.91

Up-capture

0.92

Down-capture

0.91

Avg rebalance turnover (ML)

58.70%

Calmar (ML + MV)

0.66

ML + MV risk profile

Relative to SPY daily returns over the same walk-forward dates. Alpha is average return not explained by beta; VaR and CVaR summarize typical and tail daily losses under the historical return distribution.

Alpha (ann.)

0.30%

Beta

0.92

Information ratio

-0.08

VaR 95% (daily)

1.70%

CVaR 95% (daily)

2.50%

Win rate (daily)

54.50%

Best / worst day

9.90% / -7.80%

Calendar-year returns

Full-year total return on each cumulative wealth path. Excess is ML + MV minus SPY for that calendar year.

YearML + MVSPYExcess
20204.00%3.70%+0.3 pp
202139.90%25.90%+14.0 pp
2022-11.70%-16.60%+4.9 pp
202323.30%25.90%-2.6 pp
202418.60%25.50%-6.9 pp
20258.00%17.40%-9.4 pp
20263.60%10.20%-6.6 pp

Cumulative wealth paths

Each line is cumulative excess return (rebased at the start of the out-of-sample window). Upward divergence means outperformance versus the starting level; parallel lines imply similar exposure. Sharp drops coincide with market stress or concentrated sector bets.

Drawdown paths

Peak-to-trough decline from the running maximum of cumulative wealth. Deeper lines mean longer or sharper loss episodes versus the strategy’s own prior high.

Monthly returns

Month-end return on each wealth path. Bars above zero are positive months; compare height and sign to see when the strategy beat or lagged the index.

Sector concentration (ML + MV)

Largest sector bucket: Finance at 42.20% of the latest optimized book. Bars show how weights aggregate across simplified industry groups.

Cross-sectional signals (latest training window)

Ranked by model forecast. Trend compares last price to the 50-day average; forecast is the annualized return implied by the ML view. Strong Buy requires an upward trend and a high forecast; conflicting inputs yield Hold.

TickerPrice ($)ForecastSignal
MSFT205.6135.0%Strong Buy
ADBE477.0335.0%Hold
COST357.131.4%Strong Buy
NEE65.6626.4%Strong Buy
AAPL113.2825.6%Strong Buy
NVDA13.2223.6%Hold
CRM244.0522.3%Hold
UNH307.9821.3%Strong Buy
PG120.5421.2%Hold
MS53.8420.3%Strong Buy
NKE123.9417.1%Strong Buy
BAC25.3917.0%Strong Buy
HON176.3816.8%Strong Buy
ABBV84.9216.3%Strong Buy
BA216.516.1%Strong Buy
LLY139.4415.6%Strong Buy
JPM105.4515.1%Strong Buy
GOOGL88.6215.1%Strong Buy
BLK627.5913.0%Strong Buy
CAT158.5312.9%Strong Buy

QuantifiedTrader is operated by an independent research-only group focused on building, documenting, and improving open quantitative-finance tools. Our purpose is to study markets, models, and methods—not to sell products, manage assets, or act on behalf of third parties.

No services. We do not provide investment, trading, brokerage, advisory, portfolio-management, custody, tax, legal, or any other professional or commercial services to any person or entity. Nothing on this site constitutes an offer, solicitation, recommendation, or endorsement to buy or sell securities or to adopt any investment strategy.

Research & education only. Content, data, backtests, charts, and software made available here are for informational and educational research. They may be incomplete, simulated, or based on third-party sources; past performance is not indicative of future results. You are solely responsible for your own decisions and for verifying any information before use.

No commercial benefit from shared knowledge. This site does not aim to profit from the knowledge, tools, or datasets published here. Materials are provided without charge for non-commercial research and learning, subject to applicable open-source or site terms where noted.

Disclaimer of warranties. All content and tools are supplied “as is” and “as available,” without warranties of any kind, express or implied, including accuracy, fitness for a particular purpose, or non-infringement. We disclaim liability for any loss or damage arising from use of or reliance on this site, to the fullest extent permitted by law.

Contact & disputes. For questions about this notice, the site, or any dispute relating to published materials, contact support@quantedx.com. We will endeavour to respond in good faith; this contact channel is for administrative and research correspondence only and does not create a client, advisory, or fiduciary relationship.

© 2026 QuantifiedTrader