Data Analysis and Price Prediction of Stock Market Using Machine Learning Regression Algorithms

Article Preview

Abstract:

Stock analysis and forecasting is a very challenging study due to the unpredictable and volatile database environment. However, their patterns are often unique as they are influenced by many uncertainties, such as financial results of companies (Earnings per share), risk transactions, market sentiment, government policies, and conditions such as epidemics. Even though they are challenging our goal is to predict the accurate values within a shorter span of a dataset. In this paper we have compared and analyzed the best ML model that predicts the exact closing amount of the next few days, using three to four months of nifty50 Indian stock from Yahoo Finance. Five regression models are involved in this analysis, Linear Regression (LR), Decision Tree (DT), Support Vector Regression (SVR), SARIMAX (Integrated Seasonal Integrated Season with EXogenous features), Gated Recurrent Unit (GRU – deep learning). The performance metrics like RMSE (Root Mean Squared Error), MAE (Mean Absolute Error) and MAPE (Mean Absolute Percentage Error) are used. On the basis of our comparison, we would like to conclude that GRU provides a low error value in all three performance metrics and also gives accurate predictions compared to the other five regression models used.

You might also be interested in these eBooks

Info:

Periodical:

Pages:

409-417

Citation:

Online since:

February 2023

Export:

Price:

Permissions CCC:

Permissions PLS:

Сopyright:

© 2023 Trans Tech Publications Ltd. All Rights Reserved

Share:

Citation:

* - Corresponding Author

[1] K.E. HOQUE, and H. ALJAMAAN, Impact of Hyperparameter Tuning on Machine Learning Models in Stock Price Forecasting,, IEE, vol. 9, 20/12/(2021).

DOI: 10.1109/access.2021.3134138

Google Scholar

[2] A. Atla, R. Tada, V. Sheng, and N. Singireddy, 'Sensitivity of different machine learning algorithms to noise,', J. Comput. Sci. Colleges, vol. 26, no. 5, p.96–103, (2011).

Google Scholar

[3] Ji, X., Wang, J. and Yan, Z. (2021), A stock price prediction method based on deep learning technology,, International Journal of Crowd Science, Vol. 5 No. 1, pp.55-72.

DOI: 10.1108/ijcs-05-2020-0012

Google Scholar

[4] Mehtab, S. and Sen, J., A Robust Predictive Model for Stock Price Prediction Using Deep Learning and Natural Language Processing.,, In: Proceedings of the 7th Int. Conf. on Business Analytics and Intelligence, Bangalore, India, December 5 – 7 (2019).

DOI: 10.36227/techrxiv.15023361.v1

Google Scholar

[5] S. Mehtab, J. Sen and A. Dutta, Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models,, TechRxiv powered by IEEE, (2021).

DOI: 10.36227/techrxiv.15103602

Google Scholar

[6] N. Rouf, M. B. Malik, T. Arif, S. Sharma, S. Singh, S. Aich, and H. Kim, Stock Market Prediction Using Machine Learning Techniques: A Decade Survey on Methodologies, Recent Developments, and Future Directions,, Electronics, vol. 10, issue 21,8/11/(2021).

DOI: 10.3390/electronics10212717

Google Scholar

[7] S. Ravikumar and P. Saraf, Prediction of Stock Prices using Machine Learning (Regression,Classification) Algorithms,, IEEE, (2020).

DOI: 10.1109/incet49848.2020.9154061

Google Scholar

[8] S. Mehtab, J. Sen, and S. Dasgupta, 'Robust analysis of stock price time series using CNN and LSTM-based deep learning models,', in Proc. 4th Int. Conf. Electron., Commun. Aerosp. Technol. (ICECA), Nov. 2020, p.1481–1486.

DOI: 10.1109/iceca49313.2020.9297652

Google Scholar

[9] B. M. Henrique, V. A. Sobreiro, and H. Kimura, 'Stock price prediction using support vector regression on daily and up to the minute prices,', J. Finance Data Sci., vol. 4, no. 3, p.183–201, (2018).

DOI: 10.1016/j.jfds.2018.04.003

Google Scholar

[10] L. K. Shrivastav and R. Kumar, 'An empirical analysis of stock market price prediction using arima and SVM,', in Proc. 6th Int. Conf. Comput. Sustain. Global Develop. (INDIACom), 2019, p.173–178.

Google Scholar

[11] K.E. Hoque and H. Aijamaan, Impact of Hyperparameter Tuning on Machine Learning Models in Stock Price Forecasting,, IEEE, vol. 9, pp.163815-163830, (2021).

DOI: 10.1109/access.2021.3134138

Google Scholar

[12] K. Cho, D. Bahdanau, F. Bougares, H. Schwenk and Y. Bengio, Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation,, arXiv:1406.1078v3 [cs.CL], 3 Sep (2014).

DOI: 10.3115/v1/d14-1179

Google Scholar

[13] Y. Lin, S. Liu, H. Yang and H. Wu, Stock Trend Prediction Using Candlestick Charting and Ensemble Machine Learning Techniques with a Novelty Feature Engineering Scheme,, in IEEE Access, vol. 9, pp.101433-101446, 2021,.

DOI: 10.1109/access.2021.3096825

Google Scholar