Stock market forecasting has drawn interest from both economists and computer scientists as a classic yet difficult topic.With the objective of constructing an effective prediction model,both linear and machine learni...Stock market forecasting has drawn interest from both economists and computer scientists as a classic yet difficult topic.With the objective of constructing an effective prediction model,both linear and machine learning tools have been investigated for the past couple of decades.In recent years,recurrent neural networks(RNNs)have been observed to perform well on tasks involving sequence-based data in many research domains.With this motivation,we investigated the performance of long-short term memory(LSTM)and gated recurrent units(GRU)and their combination with the attention mechanism;LSTM+Attention,GRU+Attention,and LSTM+GRU+Attention.The methods were evaluated with stock data from three different stock indices:the KSE 100 index,the DSE 30 index,and the BSE Sensex.The results were compared to other machine learning models such as support vector regression,random forest,and k-nearest neighbor.The best results for the three datasets were obtained by the RNN-based models combined with the attention mechanism.The performances of the RNN and attention-based models are higher and would be more effective for applications in the business industry.展开更多
基金supported by NRPU Project No.20-16091awarded by Higher Education Commission,PakistanThe title of the project is“University Education and Occupational Skills Mismatch (A Case Study of SMEs in Khyber Pakhtunkhwa)”,by the National Natural Science Foundation of China (Grant No.61370073)the National High Technology Research and Development Program of China,the project of Science and Technology Department of Sichuan Province (Grant No.2021YFG0322).
文摘Stock market forecasting has drawn interest from both economists and computer scientists as a classic yet difficult topic.With the objective of constructing an effective prediction model,both linear and machine learning tools have been investigated for the past couple of decades.In recent years,recurrent neural networks(RNNs)have been observed to perform well on tasks involving sequence-based data in many research domains.With this motivation,we investigated the performance of long-short term memory(LSTM)and gated recurrent units(GRU)and their combination with the attention mechanism;LSTM+Attention,GRU+Attention,and LSTM+GRU+Attention.The methods were evaluated with stock data from three different stock indices:the KSE 100 index,the DSE 30 index,and the BSE Sensex.The results were compared to other machine learning models such as support vector regression,random forest,and k-nearest neighbor.The best results for the three datasets were obtained by the RNN-based models combined with the attention mechanism.The performances of the RNN and attention-based models are higher and would be more effective for applications in the business industry.