In modern portfolio optimization, the standard correlation matrix is full of noise. When optimizing a portfolio of 100+ assets, Markowitz Mean-Variance Optimization often mistakes random coincidences for true economic relationships. This leads to unstable portfolios that perform poorly out-of-sample (maximization of error).
This project implements a "Theoretical Quant" pipeline that cleans the input data using Random Matrix Theory (Physics) and allocates capital using Hierarchical Risk Parity (Machine Learning).
- Marchenko-Pastur Distribution: Fits a theoretical probability density function to the eigenvalues of the correlation matrix.
- Eigenvalue Clipping: Identifies eigenvalues that fall within the "Noise Band" and replaces them with a constant average, preserving only true signals (Market Mode + Sector Clusters).
- Hierarchical Risk Parity (HRP): Uses clustering (linkage) to group assets and allocate risk recursively, avoiding the instability of matrix inversion.
In a high-noise synthetic environment (
| Strategy | OOS Sharpe Ratio |
|---|---|
| RMT + HRP (Proposed) | 1.842 |
| Standard HRP | 1.650 |
| RMT + Markowitz | 1.420 |
| Standard Markowitz | 1.105 |
> Improvement over baseline: ~66%
-
Eigenvalue Spectrum (Signal vs. Noise) The histogram represents empirical eigenvalues. The Red Curve is the theoretical noise limit. Everything to the left is noise.
-
Asset Clustering (HRP) Dendrogram showing how the algorithm groups assets into economic clusters.
This project is for educational and research purposes only. Nothing herein constitutes financial advice or a recommendation to buy or sell any security.