Abstract

In the modern capital market, the price of a stock is often considered to be highly volatile and unpredictable because of various social, financial, political and other dynamic factors. With calculated and thoughtful investment, stock market can ensure a handsome profit with minimal capital investment, while incorrect prediction can easily bring catastrophic financial loss to the investors. This paper introduces the application of a recently introduced machine learning model — the transformer model, to predict the future price of stocks of Dhaka Stock Exchange (DSE), the leading stock exchange in Bangladesh. The transformer model has been widely leveraged for natural language processing and computer vision tasks, but, to the best of our knowledge, has never been used for stock price prediction task task using DSE data. Recently, the introduction of time2vec encoding to represent the time series features has made it possible to employ the transformer model for the stock price prediction. This paper aims to leverage these two effective techniques to discover forecasting ability on the volatile stock market of DSE. We deal with the historical daily and weekly data of eight specific stocks listed in DSE. Our experiments demonstrate promising results and acceptable root-mean-squared error on most of the stocks. We also compare the performance of our model with that of a well-known benchmark stock forecasting model called ARIMA and report satisfactory results.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.