Machine Learning Classification and Portfolio Construction: Does the Loss Function Matter?
Abstract
Classification outperforms regression across matched machine learning models in portfolio construction. A stacking ensemble of gradient boosted tree, random forest, and neural network yields a value-weighted annualized Sharpe ratio of 2.08 for classification and 1.39 for regression. This outperformance strengthens with class granularity and persists across subsamples and after transaction costs. Spanning tests show that classification retains economically large alphas after we control for regression, whereas regression alphas shrink substantially once we control for classification. These results indicate that classification extracts more return information than matched regression. Our diagnostics trace classification’s advantage to more precise separation of return deciles.
Fields of Study & Subjects
Financial Markets and Investment Strategies
Stock Market Forecasting Methods
Market Dynamics and Volatility
Publication details
- Journal / source
- SSRN Electronic Journal
- Publisher
- Elsevier BV
- Publication date
- 1 January 2026
- Language
- EN
- Document type
- Preprint