Stock Price Prediction using Neural Networks

Authors

  • Sakina
  • Dr. Muhamamd Anees Khan

Keywords:

Keywords: Artificial intelligence, Artificial Neural Network, K-Nearest Neighbor, Recurrent Neural Network, and Long-short term memory, Stock Prediction, RMSE, MBE

Abstract

Stock market prediction is crucial for capital allocation and economic growth, but it is also challenging due to the uncertainty and complexity of the future. This study compares the performance of four machine learning models - Artificial Neural Network (ANN), K-Nearest Neighbor (KNN), Recurrent Neural Network (RNN), and Long-short term memory (LSTM) - in predicting the stock price in different geographical locations (S&P500, NYSE, NASDAQ, SSEC, EURONEXT, TSE). Using daily stock price data from November 25th, 2012, to November 25th, 2022, the models are evaluated based on root mean square error (RMSE), mean bias error (MBE), accuracy, and mean absolute percentage error (MAPE) and cross-validating the prediction results. The results show that KNN consistently outperforms the other models in most regions with the lowest error rates and the highest accuracy. The cross-validation results further confirm the superiority of KNN over the other three models.

 

References

Alkhatib, K., Najadat, H., Hmeidi, I., & Shatnawi, M. (2013). Stock Price Prediction Using K-Nearest Neighbor (kNN) Algorithm. https://www.semanticscholar.org/paper/Stock-Price-Prediction-Using-K-Nearest-Neighbor-Alkhatib-Najadat/1507329f5382a1550430657ebae7f70507f63410

Aslam, F., Hunjra, A. I., Ftiti, Z., Louhichi, W., & Shams, T. (2022). Insurance fraud detection: Evidence from artificial intelligence and machine learning. Research in International Business and Finance, 62, 101744. https://doi.org/10.1016/j.ribaf.2022.101744

Avci, E. (2007). FORECASTING DAILY AND SESSIONAL RETURNS OF THE ISE-100 INDEX WITH NEURAL NETWORK MODELS. Doğuş Üniversitesi Dergisi, 8(2), Article 2.

Bathla, G. (2020). Stock Price prediction using LSTM and SVR. 2020 Sixth International Conference on Parallel, Distributed and Grid Computing (PDGC), 211–214.

Chhajer, P., Shah, M., & Kshirsagar, A. (2022). The applications of artificial neural networks, support vector machines, and long–short term memory for stock market prediction. Decision Analytics Journal, 2, 100015. https://doi.org/10.1016/j.dajour.2021.100015

Dewan, A., & Sharma, M. (2015). Prediction of heart disease using a hybrid technique in data mining classification. 2015 2nd International Conference on Computing for Sustainable Global Development (INDIACom), 704–706.

Dhenuvakonda, P., Anandan, R., & Kumar, N. (2020). Stock price prediction using artificial neural networks. Journal of Critical Reviews, 7(11), 846–850.

Gurjar, M., Naik, P., Mujumdar, G., & Vaidya, T. (2018). Stock market prediction using ANN. International Research Journal of Engineering and Technology, 5(3), 2758–2761.

Henrique, B. M., Sobreiro, V. A., & Kimura, H. (2018). Stock price prediction using support vector regression on daily and up to the minute prices. The Journal of Finance and Data Science, 4(3), 183–201. https://doi.org/10.1016/j.jfds.2018.04.003

Kara, Y., Acar Boyacioglu, M., & Baykan, Ö. K. (2011). Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange. Expert Systems with Applications, 38(5), 5311–5319. https://doi.org/10.1016/j.eswa.2010.10.027

Kumar, I., Dogra, K., Utreja, C., & Yadav, P. (2018). A comparative study of supervised machine learning algorithms for stock market trend prediction. 2018 Second International Conference on Inventive Communication and Computational Technologies (ICICCT), 1003–1007.

Latha, R. S., Sreekanth, G. R., Suganthe, R. C., Geetha, M., Selvaraj, R. E., Balaji, S., Harini, K. R., & Ponnusamy, P. P. (2022). Stock Movement Prediction using KNN Machine Learning Algorithm. 2022 International Conference on Computer Communication and Informatics (ICCCI), 1–5. https://doi.org/10.1109/ICCCI54379.2022.9740781

Lei, J. (2017). Cross-Validation with Confidence (arXiv:1703.07904). arXiv. http://arxiv.org/abs/1703.07904

M, H., E.a., G., Menon, V. K., & K.p., S. (2018). NSE Stock Market Prediction Using Deep-Learning Models. Procedia Computer Science, 132, 1351–1362. https://doi.org/10.1016/j.procs.2018.05.050

Mehtab, S., Sen, J., & Dutta, A. (2021). Stock price prediction using machine learning and LSTM-based deep learning models. Symposium on Machine Learning and Metaheuristics Algorithms, and Applications, 88–106.

Moghaddam, A. H., Moghaddam, M. H., & Esfandyari, M. (2016). Stock market index prediction using artificial neural network. Journal of Economics, Finance and Administrative Science, 21(41), 89–93. https://doi.org/10.1016/j.jefas.2016.07.002

Nayak, J., Naik, B., & Behera, Prof. Dr. H. (2015). A comprehensive survey on support vector machine in data mining tasks: Applications & challenges. 8, 169–186. https://doi.org/10.14257/ijdta.2015.8.1.18

Patel, N., & Wang, J. T. L. (2015). Semi-supervised prediction of gene regulatory networks using machine learning algorithms. Journal of Biosciences, 40(4), 731–740. https://doi.org/10.1007/s12038-015-9558-9

Ravichandran, K. S., P.Thirunavukarasu, R, N., & R.Babu. (2007). Estimation of return on investment in share market through ANN. Journal of Theoretical and Applied Information Technology, 3.

Roondiwala, M., Patel, H., & Varma, S. (2017). Predicting Stock Prices Using LSTM. International Journal of Science and Research (IJSR), 6. https://doi.org/10.21275/ART20172755

Sak, H., Senior, A. W., & Beaufays, F. (2014). Long short-term memory recurrent neural network architectures for large scale acoustic modeling.

Saud, A. S., & Shakya, S. (2020). Analysis of look back period for stock price prediction with RNN variants: A case study on banking sector of NEPSE. Procedia Computer Science, 167, 788–798.

Vijh, M., Chandola, D., Tikkiwal, V. A., & Kumar, A. (2020). Stock Closing Price Prediction using Machine Learning Techniques. Procedia Computer Science, 167, 599–606. https://doi.org/10.1016/j.procs.2020.03.326

White, H. (1988). Economic prediction using neural networks: The case of IBM daily stock returns. ICNN, 2, 451–458.

Wu, S., Liu, Y., Zou, Z., & Weng, T.-H. (2022). S_I_LSTM: Stock price prediction based on multiple data sources and sentiment analysis. Connection Science, 34(1), 44–62. https://doi.org/10.1080/09540091.2021.1940101

Wu, X., Fund, M., & Flitman, A. (2001). Forecasting stock performance using intelligent hybrid systems. Springerlink, 44(7), 447–456.

Yunneng, Q. (2020). A new stock price prediction model based on improved KNN. 2020 7th International Conference on Information Science and Control Engineering (ICISCE), 77–80. https://doi.org/10.1109/ICISCE50968.2020.00026

Zhang, G., Eddy Patuwo, B., & Y. Hu, M. (1998). Forecasting with artificial neural networks: The state of the art. International Journal of Forecasting, 14(1), 35–62. https://doi.org/10.1016/S0169-2070(97)00044-7

Zhang, J., Li, L., & Chen, W. (2021). Predicting Stock Price Using Two-Stage Machine Learning Techniques. Computational Economics, 57(4), 1237–1261. https://doi.org/10.1007/s10614-020-10013-5

Downloads

Published

31.01.2024

How to Cite

Stock Price Prediction using Neural Networks. (2024). PAKISTAN JOURNAL OF LAW, ANALYSIS AND WISDOM, 3(1), 94-106. https://pjlaw.com.pk/index.php/Journal/article/view/v3i01-94-106

Similar Articles

1-10 of 61

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