Impact of COVID-19 on Square Pharmaceuticals Stock Prices: A Comparative Analysis of Machine Learning Models

Authors

  • Sojaul Islam Data Mining and Environment Research Group, Department of Statistics, University of Rajshahi, Rajshahi 6205, Bangladesh
  • Md Mostafizur Rahman Data Mining and Environment Research Group, Department of Statistics, University of Rajshahi, Rajshahi 6205, Bangladesh
  • Md Asaduzzaman Khondoker Data Mining and Environment Research Group, Department of Statistics, University of Rajshahi, Rajshahi 6205, Bangladesh
  • Md Abdur Rahman Data Mining and Environment Research Group, Department of Statistics, University of Rajshahi, Rajshahi 6205, Bangladesh
  • M Sayedur Rahman Data Mining and Environment Research Group, Department of Statistics, University of Rajshahi, Rajshahi 6205, Bangladesh

DOI:

https://doi.org/10.3329/ijss.v24i2.77990

Keywords:

Stock Market, Machine Learning, COVID-19, Dhaka Stock Exchange, Square Pharmaceuticals.

Abstract

The aim of this paper is to compare the forecasting performance of different machine learning algorithms in case of the daily stock prices of Square Pharmaceuticals Limited. To ensure the impact of COVID-19 on the stock prices we separated the data into different segments such as pre-COVID period from January 2011 to March 2020, and the COVID period from March 2020 to September 2021 and the whole study period from January 2011 to December 2021. This study compares predicting performance of various machine learning algorithms such as K-Nearest Neighbors (KNN), Support Vector Machine (SVM), Random Forest (RF), Gradient Boosting (GB), and Long Short-Term Memory (LSTM). To ensure a fair comparison of algorithm performance, we implemented the same combination of data splits and time steps consistently across all algorithms, which yielded optimal performance for each model. The empirical findings indicate that the Random Forest model consistently delivered the highest accuracy across all periods, the SVM model showed an unexpected increase in accuracy during COVID period whereas the LSTM model's performance declined. This comprehensive analysis highlights the adaptability and robustness of machine learning models in volatile market conditions, emphasizing their utility in financial forecasting during global disruptions like the COVID-19 pandemic.

International Journal of Statistical Sciences, Vol. 24(2), November, 2024, pp 73-84

Abstract
84
PDF
32

Downloads

Published

2024-12-09

How to Cite

Islam, S., Rahman, M. M., Khondoker, M. A., Rahman , M. A., & Rahman, M. S. (2024). Impact of COVID-19 on Square Pharmaceuticals Stock Prices: A Comparative Analysis of Machine Learning Models. International Journal of Statistical Sciences, 24(2), 73–84. https://doi.org/10.3329/ijss.v24i2.77990

Issue

Section

Original Articles