EconPapers    
Economics at your fingertips  
 

Predicting the daily closing price of selected shares on the Dhaka Stock Exchange using machine learning techniques

Sharmin Islam (), Md. Shakil Sikder (), Md. Farhad Hossain () and Partha Chakraborty ()
Additional contact information
Sharmin Islam: Bangabandhu Sheikh Mujibur Rahman Science and Technology University
Md. Shakil Sikder: Bangabandhu Sheikh Mujibur Rahman Science and Technology University
Md. Farhad Hossain: Comilla University
Partha Chakraborty: Comilla University

SN Business & Economics, 2021, vol. 1, issue 4, 1-16

Abstract: Abstract One of the most challenging topics in financial market analysis is predicting stock prices. Factors like supply and demand in the market, market sentiment, and investor's expectations, economic and political shocks can affect stock prices. All these factors make stock prices volatile and chaotic. Several machine learning models have been developed to make more precise and accurate predictions. Support vector regression (SVR) and K-nearest neighbor (KNN) regression are the most popular machine learning techniques used for stock price prediction. Our study follows the hypothesis that the SVR algorithm is a more precise way of predicting the Dhaka Stock Exchange (DSE) than the KNN regression. This research has made predictions and compared prediction errors between SVR and KNN. The analysis has been conducted on recent years’ data of some selected shares listed on the DSE. The performance of the models is measured in terms of their root mean squared error (RMSE), R-squared ( $$R^{2}$$ R 2 ), adjusted R-squared score values. We have optimized our model performance by tuning different combinations of hyper-parameters. The best result was found with the linear SVR model in the case of BXPHARMA with the highest R-squared score of about 97.04%, and lowest RMSE of about 1.23, followed by the KNN regression model with an R-squared score of approximately 96.39% and RMSE of about 1.38. SVR has the lowest RMSE and highest R-squared values in all cases.

Keywords: Stock market; Machine learning techniques; Regression; Linear SVR; KNN (search for similar items in EconPapers)
Date: 2021
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (1)

Downloads: (external link)
http://link.springer.com/10.1007/s43546-021-00065-6 Abstract (text/html)
Access to the full text of the articles in this series is restricted.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:snbeco:v:1:y:2021:i:4:d:10.1007_s43546-021-00065-6

Ordering information: This journal article can be ordered from
https://www.springer.com/journal/43546

DOI: 10.1007/s43546-021-00065-6

Access Statistics for this article

SN Business & Economics is currently edited by Gino D'Oca

More articles in SN Business & Economics from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2025-03-20
Handle: RePEc:spr:snbeco:v:1:y:2021:i:4:d:10.1007_s43546-021-00065-6