Research Article

Research on Stock Price Rise and Fall Prediction Based on Optimization Random Forest

Jingqi Wang*
Hebei University of Economics and Business, No.47 Xuefu Road, Xinhua District, Shijiazhuang City, Hebei Province, 050061

* Corresponding author: [email protected]

Abstract

Random forest algorithm is an effective machine learning algorithm in stock return classification prediction, with high accuracy, but it has problems such as parameter optimization defects and difficulty in feature selection. To this end, based on the traditional random forest algorithm, a new algorithm is proposed by combining the feature selection particle swarm algorithm with the parameter grid search algorithm - the particle swarm parameter grid search random forest algorithm. Using particle swarm optimization algorithm for feature selection of input data, reducing the dimensionality of input data by removing redundant features, and introducing grid search algorithm to optimize some parameters of random forest, not only reduces the computational complexity of random forest algorithm, but also improves the classification and prediction accuracy of random forest. The experimental results were compared with the original random forest, decision tree, and support vector machine classification models, confirming that the parameter optimized random forest stock prediction model has higher accuracy and AUC values in model evaluation than other models.

Keywords: random forest; Technical indicators; Parameter optimization; Grid search; Stock price prediction
Published: January 24, 2025
DOI: 10.54254/2755-2721/2025.20601
Volume: ACE Vol.133
pp. 60-66
Download PDF

References

  1. Deivendran P , G. C , Suresh B P ,et al.Analysis of Stock Price Fluctuations Accuracy using a Cloud-Based Recurrent Neural Network's Long Short-Term Memory Model[J].International Journal of Electrical and Electronics Engineering, 2023.
  2. Osu B O , Amadi I U .A Stochastic Analysis of Stock Market Price Fluctuations for Capital Market[J].Journal of Applied Mathematics and Computation, 2023, 6.
  3. Dong Z , Jia Y , Wang Z ,et al.Research on the Quantitative Causal Transmission of Stock Price Fluctuations of Listed Companies in the Rare Earth Industry Chain[J].International Journal of Energy Research, 2023.
  4. Kumari B , Patnaik S , Swarnkar T .Feature selection for stock price prediction: a critical review[J].International Journal of Intelligent Enterprise, 2023.
  5. Wang R , Shao Z , Tian W L .A Dual-View Model for Stock Price Prediction of Internet-of-Thing Enterprises[J].Journal of circuits, systems and computers, 2024, 33(1):1.1-1.17.