Multi-factor Selection and Stock Picking Strategy Based on Random Forest and LightGBM Algorithms
DOI:
https://doi.org/10.61173/w66yzp49Keywords:
Random Forest, LightGBM, Multi-factor Stock Selection, CSI 300 Index, Backtesting AnalysisAbstract
This study employs Random Forest (RF) and Light Gradient Boosting Machine (LightGBM) algorithms to construct a multi-factor stock selection strategy. Focusing on China Securities Index 300 (CSI 300) constituent stocks, it integrates fundamental and technical factors to conduct factor validity testing and weight optimization through machine learning methods. The study first constructs and preprocesses the factor system. Subsequently, a Random Forest model is employed for binary classification prediction of stock returns, achieving an accuracy of 81.7% and an Area Under the Receiver Operating Characteristic Curve (AUC) value of 0.88 on the test set, demonstrating strong classification capability. Further, a Light Gradient Boosting Machine regression model is used to predict stock market capitalization, yielding a goodness-of-fit of 0.91, which is then utilized to screen for undervalued stock portfolios. During strategy backtesting, four highimportance factors were weighted and synthesized. Over the backtesting period from August 2022 to August 2025, the strategy achieved a total return of 28.68% and an annualized return of 9.07%, generating an excess return of 29.65% relative to the benchmark index. The maximum drawdown was 18.39%, with a Sharpe Ratio of 0.310. The results demonstrate that quantitative strategies integrating multi-factor and machine learning approaches exhibit certain effectiveness and practicality in the A-share market.
References
[1] Wang J, Zhuang Z, Feng L. Intelligent optimization-based multi-factor deep learning stock selection model and quantitative trading strategy. Mathematics, 2022, 10(4): 566.
[2] Yang Y Z. Research on multi-factor quantitative stock selection strategy based on machine learning. Xi’an University of Technology, 2024.
[3] Fama E F, French K R. The cross-section of expected stock returns. Journal of Finance, 1992, 47(2): 427-465.
[4] Zhang S X. The CSI 300 Index marks two decades since its launch, establishing itself as the core benchmark for China’s A-share market. Securities Times, 2025-07-01(A002).
[5] On the theory and practice of multifactor portfolios. The Journal of Portfolio Management, 2019, 45(3): 87-101.
[6] Huang P. Research on multi-factor stock selection scheme based on knockoff screening factors and CatBoost algorithm prediction. Shanghai Normal University, 2024.
[7] Wang X Y. Construction of multi-factor stock selection model based on random forest: A special topic report on financial engineering. Beijing: Sina.com Technology (China) Co., Ltd., 2025-07-01 [cited 2025-08-20]. Available from: https://finance. sina.com.cn/stock/stockzmt/2025-07-01/doc-infcxncq9134858. shtml.
[8] Yang S L. Application of stock multi-factor strategy based on JoinQuant quantitative investment platform. Zhejiang University, 2018.
[9] Li C H. Multi-factor quantitative stock selection analysis based on LightGBM algorithm and investor sentiment. Money, 2024, (9): 89-90+92.
[10] Fawcett T. An introduction to ROC analysis. Pattern Recognition Letters, 2006, 27(8): 861-874.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 by the authors.

This work is licensed under a Creative Commons Attribution 4.0 International License.
