Machine Learning Meets Markowitz

PBCSF-NIFR Research Paper

85 Pages Posted: 22 Dec 2025 Last revised: 18 Apr 2026

See all articles by Yijie Wang

Yijie Wang

Tongji University - School of Economics and Management

Hao Gao

Tsinghua University - PBC School of Finance

Campbell R. Harvey

Duke University - Fuqua School of Business; National Bureau of Economic Research (NBER)

Yan Liu

Tsinghua University - Tsinghua University School of Economics and Management

Xinyuan Tao

New Jersey Institute of Technology

Date Written: April 17, 2026

Abstract

The standard approach to portfolio selection involves two stages: forecast the asset returns and then plug them into an optimizer. We argue that this separation is deeply problematic. The first stage treats cross-sectional prediction errors as equally important across all securities.  However, given that final portfolios might differ given distinct risk preferences and investment restrictions, the standard approach fails to recognize that the investor is not just concerned with the average forecast error - but the precision of the forecasts for the specific assets that are most important for their portfolio.  Hence, it is crucial to integrate the two stages.  We propose a novel implementation utilizing machine learning tools that unifies the expected return generation process and the final optimized portfolio. Our empirical example provides convincing evidence that our end-to-end method outperforms the traditional two-stage approach.  In our framework, each investor has their own, endogenously determined, efficient frontier that depends on risk preferences, investor-specific constraints, as well as exposure to market frictions.

Keywords: Asset Pricing, Portfolio Optimization, Machine Learning, End-to-end Learning

JEL Classification: G11, G12, C61

Suggested Citation

Wang, Yijie and Gao, Hao and Harvey, Campbell R. and Liu, Yan and Tao, Xinyuan, Machine Learning Meets Markowitz (April 17, 2026). PBCSF-NIFR Research Paper, Available at SSRN: https://ssrn.com/abstract=5947774 or http://dx.doi.org/10.2139/ssrn.5947774

Yijie Wang

Tongji University - School of Economics and Management ( email )

Hao Gao

Tsinghua University - PBC School of Finance ( email )

Campbell R. Harvey

Duke University - Fuqua School of Business ( email )

Box 90120
Durham, NC 27708-0120
United States
919-660-7768 (Phone)

HOME PAGE: http://www.duke.edu/~charvey

National Bureau of Economic Research (NBER)

1050 Massachusetts Avenue
Cambridge, MA 02138
United States

Yan Liu (Contact Author)

Tsinghua University - Tsinghua University School of Economics and Management ( email )

Beijing
China

Xinyuan Tao

New Jersey Institute of Technology ( email )

University Heights
Newark, NJ 07102
United States

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
2,875
Abstract Views
6,581
Rank
15,361
PlumX Metrics