US ML-Enhanced Portfolio Optimization
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 CAGR (12.700%) trailed the SPY (13.500%) by 0.800 percentage points—active tilts did not add return in this sample.
- MV-only Sharpe (1.013) matched or beat ML + MV (0.544) here—historical means may have been as informative as technical forecasts in this period.
- Drawdown on ML + MV (-22.300%) was comparable to or shallower than SPY (-23.800%), indicating risk was not disproportionately worse than the benchmark.
- Alpha near zero—performance is largely explained by market co-movement (beta 0.923).
- Information ratio -0.073 reflects modest or noisy active return relative to benchmark tracking error.
Data through 2026-11-23 · 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.
Mean-Variance, Views, and Black–Litterman
At each quarterly rebalance the estimation sample is the prior 36 months. The pure mean-variance sleeve maximises Sharpe subject to full investment, long-only bounds, and an annualised volatility ceiling:
and are the sample mean and covariance on that window. The 22.5% cap stops the optimiser from levering a noisy mean into a single name.
Views. XGBoost maps technical features (moving averages, RSI, MACD, momentum, volatility) to a forward-return forecast . The view is shrunk toward the historical mean before it enters Black–Litterman; the shrinkage weight rises when the model’s out-of-sample on the training window is weak. A forecast that does not beat the mean is not allowed to dominate .
Black–Litterman. Capitalisation weights imply equilibrium excess returns . Views are stacked as , , with diagonal. With scalar controlling uncertainty in the equilibrium, the posterior mean is
The ML-enhanced sleeve re-solves the same Sharpe program with in place of the sample mean. Weights are then held for one quarter. Turnover at the rebalance is charged 0.1% slippage. CAGR, Sharpe, Sortino, drawdown, beta, alpha, VaR, and CVaR are computed on the resulting daily portfolio return against SPY; they describe that path, they do not correct for the search over features inside the training window.
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).
| Strategy | CAGR | Total | Sharpe | Sortino | Max DD | Vol |
|---|---|---|---|---|---|---|
| ML + MV-0.800 pp vs SPY | 12.700% | 102.800% | 0.544 | 0.868 | -22.300% | 17.400% |
| MV only+8.200 pp vs SPY | 21.700% | 220.100% | 1.013 | 1.687 | -20.000% | 16.900% |
| Cap-weight+4.400 pp vs SPY | 17.900% | 165.400% | 0.912 | 1.504 | -19.200% | 14.900% |
| SPY | 13.500% | 111.300% | 0.598 | 0.976 | -23.800% | 16.800% |
Tracking error
8.000%
Correlation
0.891
Up-capture
0.925
Down-capture
0.919
Avg rebalance turnover (ML)
58.600%
Calmar (ML + MV)
0.568
Alpha (ann.)
0.200%
Beta
0.923
Information ratio
-0.073
VaR 95% (daily)
1.700%
CVaR 95% (daily)
2.500%
Win rate (daily)
54.000%
Best / worst day
9.900% / -7.800%
| Year | ML + MV | SPY | Excess |
|---|---|---|---|
| 2020 | 4.000% | 3.700% | +0.300 pp |
| 2021 | 40.000% | 25.900% | +14.100 pp |
| 2022 | -11.700% | -16.600% | +4.900 pp |
| 2023 | 23.200% | 25.900% | -2.700 pp |
| 2024 | 18.900% | 25.500% | -6.600 pp |
| 2025 | 8.000% | 17.400% | -9.400 pp |
| 2026 | -0.400% | 6.600% | -7.000 pp |
Largest sector: Finance at 50.100%
| Ticker | Price ($) | Forecast | Signal |
|---|---|---|---|
| MSFT | 204.820 | 35.000% | Strong Buy |
| ADBE | 477.030 | 35.000% | Hold |
| COST | 356.010 | 31.440% | Strong Buy |
| NEE | 64.700 | 26.360% | Strong Buy |
| AAPL | 113.100 | 25.620% | Strong Buy |
| NVDA | 13.190 | 23.570% | Hold |
| CRM | 242.990 | 22.240% | Hold |
| UNH | 304.360 | 21.270% | Strong Buy |
| PG | 118.860 | 21.220% | Hold |
| MS | 53.220 | 20.320% | Strong Buy |
| HON | 183.850 | 17.560% | Strong Buy |
| NKE | 121.560 | 17.120% | Strong Buy |
| BAC | 25.130 | 17.040% | Strong Buy |
| ABBV | 83.800 | 16.310% | Strong Buy |
| BA | 216.500 | 16.090% | Strong Buy |
| LLY | 139.080 | 15.550% | Strong Buy |
| JPM | 104.450 | 15.130% | Strong Buy |
| GOOGL | 88.510 | 15.110% | Strong Buy |
| BLK | 620.890 | 13.000% | Strong Buy |
| CAT | 157.860 | 12.900% | 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.