In 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 at DSE. 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 concentrates on the application of transformer-based model to predict the price movement of eight specific stocks listed in DSE based on their historical daily and weekly data. Our experiments demonstrate promising results and acceptable root mean squared error on most of the stocks.
翻译:在现代资本市场中,股票的价格往往被认为由于各种社会、金融、政治和其他动态因素而高度波动和不可预测。在有计算和周到的投资中,股票市场可以确保以最低资本投资获得丰厚利润,而不正确的预测则很容易给投资者带来灾难性金融损失。本文介绍了最近采用机器学习模型的应用——变异模型,以预测孟加拉国主要证券交易所达卡证券交易所(达卡证券交易所)未来的股票价格。变异模型被广泛用于自然语言处理和计算机远景任务,但据我们所知,从未用于DSE的股票价格预测任务。最近采用时间2vec编码来代表时间序列特性使得有可能使用变异模型来预测股票价格。本文集中介绍了基于变异模型的应用,以预测DSE公司(达卡证券交易所)中8个具体股票的价格变动情况,这些股票的每日和每周历史数据是主要的。我们的实验表明,在大多数股票上都取得了有希望的结果,而且可以被接受的底平差。