Articles
Vol. 55 No. 4 (2021)
Mean-variance Portfolio Optimization with Stock Return Prediction Using XGBoost
Mathematics, Korea University
-
Submitted
-
October 24, 2026
Abstract
Portfolio optimization is one of the most concerning issues in finance and its success relies on accurate prediction of future stock market, which is challenging due to its dynamic, non-stationary, chaotic and noisy nature. This paper studies the performance of a portfolio optimization model when combined with stock return prediction using a machine learning model. In this study, two portfolio optimization algorithms are proposed. The first algorithm performs the eXtreme Gradient Boosting (XGBoost) for stock return forecasting and the mean- variance (MV) model for portfolio selectio n. The second algorithm modifies the MV model by introducing an additional penalty term based on the prediction error of XGBoost. The empirical tests using the historical data from 2010 to 2016 of the component stocks of the Korea Composite Stock Price Index show that the proposed algorithms are superior to traditional methods.
References
- [1] Aggarwal, S., Aggarwal, S. (2017), Deep Investment in Financial Markets
- using Deep Learning Models. International Journal of Computer
- Applications, 162, 40-43;
- [2] Basak, S., Kar, S., Saha, S., Khaidem, L., Dey, S.R. (2019), Predicting the
- Direction of Stock Market Prices Using Tree-Based Classifiers. The North
- American Journal of Economics and Finance, 47, 552-567;
- [3] Batres-Estrada, B. (2015), Deep Learning for Multivariate Financial Time
- Series; (Master’s thesis), KTH, Mathematical Statistics;
- [4] Chen, T., Guestrin, C. (2016), XGBoost: A Scalable Tree Boosting System.
- In Proceedings of the 22nd ACM SIGKDD International Conference on
- Knowledge Discovery and Data Mining, 785-794;
- Mean-variance Portfolio Optimization with Stock Return Prediction Using XGBoost
- ____________________________________________________________
- 19
- [5] Chen, J., Tindall, M.L., Wu, W. (2016), Hedge Fund Return Prediction and
- Fund Selection: A Machine-Learning Approach; Occasional Papers 16-4,
- Federal Reserve Bank of Dallas;
- [6] Chen, W., Zhang, H., Mehlawat, M.K., Jia, L. (2021), Mean-variance
- Portfolio Optimization Using Machine Learning-based Stock Price
- Prediction. Applied Soft Computing Journal, 100:106943;
- [7] Fu, X., Du, J., Guo, Y., Liu, M., Dong, T., Duan, X. (2018), A Machine
- Learning Framework for Stock Selection. ArXiv, abs/1806.01743;
- [8] Grace, A. (2017), Can Deep Learning Techniques Improve the Risk Adjusted
- Returns from Enhanced Indexing Investment Strategies;
- [9] Heaton, J.B., Polson, N.G., Witte, J. (2016), Deep Learning for Finance:
- Deep Portfolios. Econometric Modeling: Capital Markets - Portfolio Theory
- eJournal;
- [10] Ince, H., Trafalis, T. (2017), A Hybrid Forecasting Model for Stock Market
- Prediction. Economic Computation and Economic Cybernetics Studies and
- Research, 51, 263-280; ASE Publishing;
- [11] Iwasaki, H., Chen, Y. (2018), Topic Sentiment Asset Pricing with DNN
- Supervised Learning. Econometric Modeling: Capital Markets - Asset Pricing
- eJournal;
- [12] Jiang, Z., Liang, J. (2017), Cryptocurrency Portfolio Management with
- Deep Reinforcement Learning. 2017 Intelligent Systems Conference (IntelliSys),
- 905-913;
- [13] Jiang, Z., Xu, D., Liang, J. (2017), A Deep Reinforcement Learning
- Framework for the Financial Portfolio Management Problem; arXiv preprint
- arXiv:1706.10059;
- [14] Jujie, W., Danfeng, Q. (2018), An Experimental Investigation of Two
- Hybrid Frameworks for Stock Index Prediction Using Neural Network and
- Support Vector Regression. Economic Computation and Economic Cybernetics
- Studies and Research, 52, 193-210; ASE Publishing;
- [15] Lee, S., Yoo, S.J. (2018), Threshold-based Portfolio: The Role of the
- Threshold and its Applications. The Journal of Supercomputing, 1-18;
- [16] Liang, Z., Jiang, K., Chen, H., Zhu, J., Li, Y. (2018), Adversarial Deep
- Reinforcement Learning in Portfolio Management. arXiv: Portfolio
- Management;
- [17] Lin, C., Huang, J., Gen, M., Tzeng, G. (2006), Recurrent Neural Network
- for Dynamic Portfolio Selection. Appl. Math. Comput., 175, 1139-1146;
- [18] Maknickiene, N. (2014), Selection of Orthogonal Investment Portfolio
- Using Evolino RNN Trading Model. Procedia - Social and Behavioral Sciences,
- 110, 1158-1165;
- Hongjoong Kim
- ____________________________________________________________
- 20
- [19] Markowitz, H. (1952), Portfolio Selection. Journal of finance, 7:77–91;
- [20] Moon, K., Kim, H. (2019), Performance of Deep Learning in Prediction of
- Stock Market Volatility, Economic Computation & Economic Cybernetics Studies
- & Research, 53(2):77-92; ASE Publishing:
- [21] Ozbayoglu, A.M., Gudelek, M.U., Sezer, O.B. (2020), Deep Learning for
- Financial Applications : A Survey. Appl. Soft Comput., 93, 106384;
- [22] Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B.,
- Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas,
- J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., Duchesnay, E. (2011),
- Scikit-learn: Machine Learning in Python; Journal of Machine Learning
- Research, 12:2825-2830;
- [23] Takeuchi, L. (2013), Applying Deep Learning to Enhance Momentum
- Trading Strategies in Stocks;
- [24] Zhou, B. (2019); Deep Learning and the Cross-Section of Stock Returns:
- Neural Networks Combining Price and Fundamental Information.
- Neuroeconomics eJournal;
- [25] Zolotareva, E. (2021), Aiding Long-Term Investment Decisions with
- XGBoost Machine Learning Model. ArXiv, abs/2104.09341.