基于XGBoost的中国股票指数预测研究
Research on Predicting Chinese Stock Index Based on XGBoost
DOI: 10.12677/fin.2026.166073, PDF,    科研立项经费支持
作者: 赖力琦:广东外语外贸大学金融学院,广东 广州
关键词: 中国股票指数;XGBoost;机器学习;可解释性;Chinese Stock Index; XGBoost; Machine Learning; Interpretability
摘要: 中国股票市场具有高波动性和复杂的非线性特征,传统的线性预测模型难以捕捉其内在规律。本文基于周度数据,系统对比了线性回归(LR)、弹性网络(E-net)、决策树(DT)、随机森林(RF)、梯度提升树(GBRT)、XGBoost以及神经网络(NN)在中国股票指数预测中的表现。实证结果表明,集成学习模型整体优于传统线性模型,其中XGBoost在决定系数(R2)、均方误差(MSE)、平均绝对误差(MAE)、均方根误差(RMSE)以及方向胜率(HR)等所有核心评估指标上均表现最优。XGBoost的R2达到0.0888,HR达到56.01%,且各项指标的标准差极低,展现出卓越的预测精度与跨期稳定性。本文的研究为量化投资领域选择高效的基准预测模型提供了有力的实证支持。
Abstract: The Chinese stock market has high volatility and complex nonlinear characteristics, and traditional linear prediction models are difficult to capture its inherent patterns. This article systematically compares the performance of linear regression (LR), elastic network (E-net), decision tree (DT), random forest (RF), gradient boosting tree (GBRT), XGBoost, and neural network (NN) in predicting the Chinese stock index based on weekly data. The empirical results show that ensemble learning models are generally superior to traditional linear models, with XGBoost showing the best performance in all core evaluation indicators such as coefficient of determination (R2), mean square error (MSE), mean absolute error (MAE), root mean square error (RMSE), and directional win rate (HR). The R2 of XGBoost reaches 0.0888, HR reaches 56.01%, and the standard deviation of various indicators is extremely low, demonstrating excellent prediction accuracy and cross period stability. This study provides strong empirical support for selecting efficient benchmark prediction models in the field of quantitative investment.
文章引用:赖力琦. 基于XGBoost的中国股票指数预测研究[J]. 金融, 2026, 16(6): 748-755. https://doi.org/10.12677/fin.2026.166073

参考文献

[1] Cao, B., Wang, S., Lin, X., Wu, X., Zhang, H., Ni, L. M. and Guo, J. (2025) From Deep Learning to LLMs: A Survey of AI in Quantitative Investment. ACM/IMS Journal of Data Science, 37, Article 11.
[2] 李斌, 邵新月, 李玥阳. 机器学习驱动的基本面量化投资研究[J]. 中国工业经济, 2019(8): 61-79.
[3] Zheng, Z., Sun, H., Chen, S. and Cai, J. (2024) A Comparative Study of Linear and Nonlinear Machine Learning Algorithms in Quantitative Investment. Proceedings of the 4th Asia-Pacific Artificial Intelligence and Big Data Forum, Ganzhou, 27-29 December 2024, 909-913.
https://doi.org/10.1145/3718491.3718638
[4] 朱灿, 谢学琴. 基于弹性网络回归的股票价格预测[J]. 电子商务评论, 2024, 13(4): 5359-5374.
[5] Qian, Y. and Zhang, Y. (2025) Long-Term Forecasting in Asset Pricing: Machine Learning Models’ Sensitivity to Macroeconomic Shifts and Firm-Specific Factors. The North American Journal of Economics and Finance, 78, Article 102423.
https://doi.org/10.1016/j.najef.2025.102423
[6] Chen, T. and Guestrin, C. (2016) XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, 13-17 August 2016, 785-794.
https://doi.org/10.1145/2939672.2939785
[7] Xia, M., Wang, Z. and Liu, W. (2024) Data Driven Cost-Sensitive Boosted Tree for Interpretable Banking Systemic Risk Prediction. Chaos, Solitons & Fractals, 189, Article 115664.
https://doi.org/10.1016/j.chaos.2024.115664
[8] Bao, W., Cao, Y., Yang, Y., Che, H., Huang, J. and Wen, S. (2025) Data-Driven Stock Forecasting Models Based on Neural Networks: A Review. Information Fusion, 113, Article 102616.
https://doi.org/10.1016/j.inffus.2024.102616
[9] Jain, V. (2026) An Empirical Evaluation of Machine Learning Techniques for Return Prediction Using NIFTY-50 Weekly Data. 2026 9th International Conference on Trends in Electronics and Informatics (ICOEI), Tirunelveli, 21-23 April 2026, 1721-1726.
https://doi.org/10.1109/icoei68323.2026.11541341
[10] Chiang Lin, T.-J., Lee, Y.-S., Shieh, T.-H. and Wang, Y.-H. (2026) Weekly Direction Forecasting of Hang Seng Index: An EMD-Based Decomposition and XGBoost. 2025 IEEE International Conference, Nanjing, 26-28 December 2025, 1-5.
[11] Gao, J. (2024) Application of XGBoost in the A-Shares Stock Market Forecasting. Proceedings of the 2024 5th International Conference on Big Data Economy and Information Management, Zhengzhou, 13-15 December 2024, 503-511.
https://doi.org/10.1145/3724154.3724237
[12] Lahbabi, Y., El Alaoui, O. and Oubaali, F. (2026) Machine Learning in Finance: An Explainable Multi-Model Framework for Stock Return Forecasting and Risk-Aware Portfolio Allocation. African Scientific Journal, 3, 2976-3000.
[13] Feng, L., Zheng, Y., Wang, X., Guo, C. and Xue, R. (2025) Global Stock Market Forecasting: Insights from Series and Parallel Combination of Machine Learning Models. Pacific-Basin Finance Journal, 93, Article 102905.
https://doi.org/10.1016/j.pacfin.2025.102905
[14] 李子煜, 张金珠, 高青山. 基于模型和算法的量化投资方法股票预测研究综述[J]. 计算机工程与应用, 2025, 61(19): 1-11.