Research on stock trend prediction based on grey wolf optimized RF and SVM models
DOI:
https://doi.org/10.54097/ezm13w73Keywords:
support vector machine; random forest; parameter optimization; Gray Wolf OptimizationAbstract
The volatility of the stock market has a profound impact on the stability of the financial market, and then has a significant effect on the overall economic situation, so the accurate prediction of stock trend has always been the focus of research in the financial field. In this paper, the raw minute-level stock data of SSE 50 and CSI 300 in 2021 are normalized, and the historical training and test sets of daily stocks for model training and testing are established based on the datasets. The RF-SVM model based on the gray wolf optimization algorithm is constructed to compare the traditional support vector machine and random forest model, and the relevant performance indexes are calculated. In this study, the RF-SVM model based on gray wolf optimization is highly correlated with the characteristics of stock data, and the prediction accuracy of stock index data is more than 85%. The cross-validation score is over 0.77 and the overall weighted score is as high as 0.98. Compared with the SVM and random forest models under the default parameters, the RF-SVM model based on gray wolf optimization has an average advantage of 25% in performance indicators. The generalization ability is increased by about 26%; The fitting error was reduced by about 51.15%; The overall average score advantage is about 34%. These results prove that the RF-SVM model of gray wolf optimization has superior performance and significant optimization effect in stock prediction, and compared with the traditional grid search optimization algorithm, gray wolf optimization has excellent adaptability and can gradually obtain the global optimal parameter configuration.
Downloads
References
KINGSTONE N, YUDHVIR S. Alternatives to the efficient market hypothesis: an overview [J]. Journal of Capital Markets Studies, 2023, 7(2): 111-124.
TOMአM, MARTINA K, LUDVíK F, et al. Backtesting the evaluation of Value-at-Risk methods for exchange rates [J]. Studies in Economics and Finance, 2023, 40(1): 175-191.
KUMAR I P, BALAKESAVAREDDY P, KUMAR S A. Stock price prediction methodology using random forest algorithm and support vector machine [J]. Materials Today: Proceedings, 2022, 56(P4): 1776-1782.
ZHENGXUN T, YAO F, HONG C, et al. Stock prices' long memory in China and the United States [J]. International Journal of Emerging Markets, 2022, 17(5): 1292-1314.
GBANADOR M A. An Empirical Test for Semi-strong form Efficient Market Hypothesis of the Nigeria Stock Market [J]. Asian Journal of Economics, Business and Accounting, 2021: 42-53.
BREIMAN L. Randomizing Outputs to Increase Prediction Accuracy [J]. Machine Learning, 2000, 40(3): 229-242.
PRADEEP S. Fundamentals and Methods of Machine and Deep Learning:Algorithms, Tools and Applications [M]. John Wiley & Sons, Inc.
ANGELIS L D, PAAS L J. A dynamic analysis of stock markets using a hidden Markov model [J]. Journal of Applied Statistics, 2013, 40(8): 1682-1700.
MIRJALILI S, MIRJALILI S M, LEWIS A. Grey Wolf Optimizer [J]. Advances in Engineering Software, 2014, 69: 46-61.
Downloads
Published
Issue
Section
License

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






