Multi-period Mean–variance Portfolio Selection with Real Constraints Based on Machine Learning
Shulin Cui,Peng Zhang
DOI: https://doi.org/10.1007/s13042-024-02400-3
2024-01-01
International Journal of Machine Learning and Cybernetics
Abstract:Machine learning has been widely applied to predict asset returns and can improve static portfolio selection model performance by handling complex financial information. However, investment is a dynamic process in the real world. This paper studies a multi-period portfolio selection problem based on machine learning. The mean and variance of the multi-period portfolio selection are calculated by the predicted returns, which are forecasted by Support Vector Regression, Elastic-Net, and eXtreme Gradient Boosting. By considering transaction costs, borrowing constraints, upper and lower bounds, cardinality constraints, and bankruptcy control, a novel multi-period mean–variance portfolio selection model with real constraints based on machine learning is proposed. Due to the transaction costs, cardinality constraints, and bankruptcy control, the proposed model is a non-linear mix-integer programming problem with path dependence, which is an NP-Hard problem. The solution can be obtained by Particle Swarm Optimization, Differential Evolution, Genetic Algorithm, and Immune Algorithm, respectively. The 39 assets of the Shanghai Stock Exchange (SSE), China, from January 1, 2013, until December 31, 2022, are collected as a case. The in-sample analysis explores the impact of parameters on the terminal wealth. The out-of-sample analysis evaluates the efficiency and advantages of the proposed model by comparing it with three benchmark models. Machine Learning reduces the prediction error of asset returns, and helps improve the effectiveness of multi-period investment. The proposed model is practical because it introduces realistic constraints and can be applied in stock and fund management.