Optimization Analysis of Stock Price Prediction using Random Forest based Machine Learning Technique

Authors

  • Vicky Kumar, Prof. Atul Kumar Mishra

Keywords:

Machine Learning, Random Forest, Stock Market, Mean Square Error

Abstract

Stock price prediction has become an essential area of research due to its significance in financial planning, risk management, and investment decision-making. However, forecasting stock prices is highly challenging because financial markets are dynamic, nonlinear, and strongly influenced by external factors such as economic conditions, company performance, and investor sentiment. Machine learning techniques, particularly ensemble-based models, have shown remarkable potential for improving predictive accuracy. This study focuses on the use of the Random Forest (RF) algorithm for stock price prediction and examines how its performance can be enhanced through systematic optimization.

Random Forest is widely recognized for its robustness, ability to handle high-dimensional data, and capability to capture complex nonlinear relationships. Despite these strengths, its predictive efficiency largely depends on the appropriate selection of hyperparameters such as the number of trees, maximum depth, feature selection criteria, and sampling strategy. This research analyzes the impact of hyperparameter optimization using methods such as Grid Search, Random Search, and Bayesian optimization to identify the best-performing configuration of the RF model.

The results indicate that optimized Random Forest models significantly outperform their default counterparts, achieving lower prediction error and higher stability across various stock market datasets. Feature importance analysis further highlights the most influential technical indicators contributing to model performance. This study concludes that optimized RF-based models provide a reliable, scalable, and effective approach for stock price forecasting, offering valuable insights for investors and financial analysts.

References

Moumita Barua, Teerath Kumar, Kislay Raj and Arunabha M. Roy, “Comparative Analysis of Deep Learning Models for Stock Price Prediction in the Indian Market”, MDPI, FinTech, 3, 551–568, 2024.

Fathali, Z.; Kodia, Z.; Said, L.B. Stock Market Prediction of NIFTY 50 Index Applying Machine Learning Techniques. Appl. Artif. Intell. 2022, 36, 2111134.

Piyush; Amarjeet; Sharma, A.; Kumar, S.; Ansari, N.N. Stock Price Prediction Using Machine Learning. In Proceedings of the International Conference on Recent Trends in Computing, Jammu, India, 26–27 October 2023; Springer: Berlin/Heidelberg, Germany, 2023; pp. 79–87.

Kanwal, A.; Lau, M.F.; Ng, S.P.; Sim, K.Y.; Chandrasekaran, S. BiCuDNNLSTM-1dCNN—A hybrid deep learning-based predictive model for stock price prediction. Expert Syst. Appl. 2022, 202, 117123.

Shravan Raviraj, Manohara Pai M M. and Krithika M Pai, “Share price prediction of Indian Stock Markets using time series data - A Deep Learning Approach”, IEEE Mysore Sub Section International Conference (MysuruCon), IEEE 2021.

J. J. Duarte S. M. Gonzalez and J. C. Cruz "Predicting stock price falls using news data: Evidence from the brazilian market", Computational Economics vol. 57 no. 1 pp. 311-340 2021.

Zhi Su and Bo Yi, “Research on HMM-Based Efficient Stock Price Prediction”, Mobile Information System, Hindawi, 2022.

Alessio Staffini, “Stock Price Forecasting by a Deep Convolutional Generative Adversarial Network”, Frontiers in Artificial Intelligence, 2022.

Jingqi Liu;Xinzhen Pei;Junyan Zou, “Analysis and Research on the Stock Volatility Factors of Chinese Listed Companies Based on the FA-ANN-MLP Model”, International Conference on Computer, Blockchain and Financial Development (CBFD), IEEE 2021.

Chenkang Lv;Boyong Gao;Cui Yu, “A hybrid transfer learning framework for stock price index forecasting”, IEEE Intl Conf on Dependable, Autonomic and Secure Computing, Intl Conf on Pervasive Intelligence and Computing, IEEE 2021.

G. Ding and L. Qin "Study on the prediction of stock price based on the associated network model of lstm" International Journal of Machine Learning and Cybernetics vol. 11 no. 6 pp. 1307-1317 2020.

S. T. Z. De Pauli M. Kleina and W. H. Bonat "Comparing artificial neural network architectures for brazilian stock market prediction" Annals of Data Science vol. 7 no. 4 pp. 613-628 2020.

L. Qi M. Khushi and J. Poon "Event-driven lstm for forex price prediction" 2020 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE) pp. 1-6 2020.

D. Wu X. Wang J. Su B. Tang and S. Wu "A labeling method for financial time series prediction based on trends" Entropy vol. 22 no. 10 pp. 1162 2020.

Zhihao PENG, “Stocks Analysis and Prediction Using Big Data Analytics”, International Conference on Intelligent Transportation, Big Data & Smart City (ICITBS), IEEE 2019.

A. Site D. Birant and Z. Isik "Stock market forecasting using machine learning models" 2019 Innovations in Intelligent Systems and Applications Conference (ASYU) pp. 1-6 2019.

Downloads

How to Cite

Vicky Kumar, Prof. Atul Kumar Mishra. (2025). Optimization Analysis of Stock Price Prediction using Random Forest based Machine Learning Technique. International Journal of Research & Technology, 13(4), 472–480. Retrieved from https://ijrt.org/j/article/view/604

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.