S&P 500 Portfolio Optimization via K-Means Clustering
A systematic, data-driven trading strategy that applies unsupervised machine learning to a decade of S&P 500 equities. Technical indicators (RSI, ATR, MACD, Bollinger Bands, Garman-Klass volatility) and rolling Fama-French 5-factor betas are engineered as features, then K-Means clustering with customized centroid initialization groups stocks each month. Portfolios are built from the selected cluster via maximum Sharpe ratio optimization, and cumulative returns are backtested against the SPY benchmark.
Mar 1, 2025