IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v8y2020i9p1441-d405069.html
   My bibliography  Save this article

Stock Price Forecasting with Deep Learning: A Comparative Study

Author

Listed:
  • Tej Bahadur Shahi

    (Central Queensland University, North Rockhampton, Rockhampton QLD 4702, Australia)

  • Ashish Shrestha

    (Central Department of Computer Science and Information Technology, Tribhuvan University, Kathmandu 44613, Nepal)

  • Arjun Neupane

    (Central Queensland University, North Rockhampton, Rockhampton QLD 4702, Australia)

  • William Guo

    (Central Queensland University, North Rockhampton, Rockhampton QLD 4702, Australia)

Abstract

The long short-term memory (LSTM) and gated recurrent unit (GRU) models are popular deep-learning architectures for stock market forecasting. Various studies have speculated that incorporating financial news sentiment in forecasting could produce a better performance than using stock features alone. This study carried a normalized comparison on the performances of LSTM and GRU for stock market forecasting under the same conditions and objectively assessed the significance of incorporating the financial news sentiments in stock market forecasting. This comparative study is conducted on the cooperative deep-learning architecture proposed by us. Our experiments show that: (1) both LSTM and GRU are circumstantial in stock forecasting if only the stock market features are used; (2) the performance of LSTM and GRU for stock price forecasting can be significantly improved by incorporating the financial news sentiments with the stock features as the input; (3) both the LSTM-News and GRU-News models are able to produce better forecasting in stock price equally; (4) the cooperative deep-learning architecture proposed in this study could be modified as an expert system incorporating both the LSTM-News and GRU-News models to recommend the best possible forecasting whichever model can produce dynamically.

Suggested Citation

  • Tej Bahadur Shahi & Ashish Shrestha & Arjun Neupane & William Guo, 2020. "Stock Price Forecasting with Deep Learning: A Comparative Study," Mathematics, MDPI, vol. 8(9), pages 1-15, August.
  • Handle: RePEc:gam:jmathe:v:8:y:2020:i:9:p:1441-:d:405069
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/8/9/1441/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/8/9/1441/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    2. Aniruddha Dutta & Saket Kumar & Meheli Basu, 2020. "A Gated Recurrent Unit Approach to Bitcoin Price Prediction," JRFM, MDPI, vol. 13(2), pages 1-16, February.
    3. Pai, Ping-Feng & Lin, Chih-Sheng, 2005. "A hybrid ARIMA and support vector machines model in stock price forecasting," Omega, Elsevier, vol. 33(6), pages 497-505, December.
    4. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    5. Dongdong Lv & Zhenhua Huang & Meizi Li & Yang Xiang, 2019. "Selection of the optimal trading model for stock investment in different industries," PLOS ONE, Public Library of Science, vol. 14(2), pages 1-20, February.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Ilia Zaznov & Julian Kunkel & Alfonso Dufour & Atta Badii, 2022. "Predicting Stock Price Changes Based on the Limit Order Book: A Survey," Mathematics, MDPI, vol. 10(8), pages 1-33, April.
    2. Tej Bahadur Shahi & Chiranjibi Sitaula & Arjun Neupane & William Guo, 2022. "Fruit classification using attention-based MobileNetV2 for industrial applications," PLOS ONE, Public Library of Science, vol. 17(2), pages 1-21, February.
    3. Wai Khuen Cheng & Khean Thye Bea & Steven Mun Hong Leow & Jireh Yi-Le Chan & Zeng-Wei Hong & Yen-Lin Chen, 2022. "A Review of Sentiment, Semantic and Event-Extraction-Based Approaches in Stock Forecasting," Mathematics, MDPI, vol. 10(14), pages 1-20, July.
    4. Illia Baranochnikov & Robert Ślepaczuk, 2022. "A comparison of LSTM and GRU architectures with novel walk-forward approach to algorithmic investment strategy," Working Papers 2022-21, Faculty of Economic Sciences, University of Warsaw.
    5. Harsimrat Kaeley & Ye QIAO & Nader BAGHERZADEH, 0000. "Support for Stock Trend Prediction Using Transformers and Sentiment Analysis," Proceedings of Economics and Finance Conferences 13815878, International Institute of Social and Economic Sciences.
    6. Li Rong Wang & Hsuan Fu & Xiuyi Fan, 2023. "Stock Price Predictability and the Business Cycle via Machine Learning," Papers 2304.09937, arXiv.org.
    7. Kshitij Sharma & Yogesh K. Dwivedi & Bhimaraya Metri, 2024. "Incorporating causality in energy consumption forecasting using deep neural networks," Annals of Operations Research, Springer, vol. 339(1), pages 537-572, August.
    8. Harsimrat Kaeley & Ye Qiao & Nader Bagherzadeh, 2023. "Support for Stock Trend Prediction Using Transformers and Sentiment Analysis," Papers 2305.14368, arXiv.org.
    9. Changzhi Li & Dandan Liu & Mao Wang & Hanlin Wang & Shuai Xu, 2023. "Detection of Outliers in Time Series Power Data Based on Prediction Errors," Energies, MDPI, vol. 16(2), pages 1-19, January.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Manahov, Viktor & Hudson, Robert & Gebka, Bartosz, 2014. "Does high frequency trading affect technical analysis and market efficiency? And if so, how?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 28(C), pages 131-157.
    2. Dhanya Jothimani & Ravi Shankar & Surendra S. Yadav, 2016. "Discrete Wavelet Transform-Based Prediction of Stock Index: A Study on National Stock Exchange Fifty Index," Papers 1605.07278, arXiv.org.
    3. Neely, Christopher J. & Weller, Paul, 2000. "Predictability in International Asset Returns: A Reexamination," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 35(4), pages 601-620, December.
    4. Raushan Kumar, 2021. "Predicting Wheat Futures Prices in India," Asia-Pacific Financial Markets, Springer;Japanese Association of Financial Economics and Engineering, vol. 28(1), pages 121-140, March.
    5. Mohamed Chikhi & Anne Péguin-Feissolle & Michel Terraza, 2013. "SEMIFARMA-HYGARCH Modeling of Dow Jones Return Persistence," Computational Economics, Springer;Society for Computational Economics, vol. 41(2), pages 249-265, February.
    6. Reinhard Ellwanger, Stephen Snudden, 2021. "Predictability of Aggregated Time Series," LCERPA Working Papers bm0127, Laurier Centre for Economic Research and Policy Analysis.
    7. Catania, Leopoldo & Proietti, Tommaso, 2020. "Forecasting volatility with time-varying leverage and volatility of volatility effects," International Journal of Forecasting, Elsevier, vol. 36(4), pages 1301-1317.
    8. repec:ipg:wpaper:2013-020 is not listed on IDEAS
    9. Bertrand Maillet & Thierry Michel, 2000. "Further insights on the puzzle of technical analysis profitability," The European Journal of Finance, Taylor & Francis Journals, vol. 6(2), pages 196-224.
    10. Zhao, Yixiu & Upreti, Vineet & Cai, Yuzhi, 2021. "Stock returns, quantile autocorrelation, and volatility forecasting," International Review of Financial Analysis, Elsevier, vol. 73(C).
    11. Sharon S. Yang & Jr-Wei Huang & Chuang-Chang Chang, 2016. "Detecting and modelling the jump risk of CO 2 emission allowances and their impact on the valuation of option on futures contracts," Quantitative Finance, Taylor & Francis Journals, vol. 16(5), pages 749-762, May.
    12. Timmermann, Allan & Granger, Clive W. J., 2004. "Efficient market hypothesis and forecasting," International Journal of Forecasting, Elsevier, vol. 20(1), pages 15-27.
    13. Guglielmo Maria Caporale & Juncal Cuñado & Luis A. Gil-Alana, 2013. "Modelling long-run trends and cycles in financial time series data," Journal of Time Series Analysis, Wiley Blackwell, vol. 34(3), pages 405-421, May.
    14. Ellen, Saskia ter & Zwinkels, Remco C.J., 2010. "Oil price dynamics: A behavioral finance approach with heterogeneous agents," Energy Economics, Elsevier, vol. 32(6), pages 1427-1434, November.
    15. Francis X. Diebold & Lutz Kilian, 2001. "Measuring predictability: theory and macroeconomic applications," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 16(6), pages 657-669.
    16. Basak, Suryoday & Kar, Saibal & Saha, Snehanshu & Khaidem, Luckyson & Dey, Sudeepa Roy, 2019. "Predicting the direction of stock market prices using tree-based classifiers," The North American Journal of Economics and Finance, Elsevier, vol. 47(C), pages 552-567.
    17. Kuo, Chen-Yin, 2016. "Does the vector error correction model perform better than others in forecasting stock price? An application of residual income valuation theory," Economic Modelling, Elsevier, vol. 52(PB), pages 772-789.
    18. Bartosz Bieganowski & Robert Ślepaczuk, 2024. "Supervised Autoencoder MLP for Financial Time Series Forecasting," Working Papers 2024-03, Faculty of Economic Sciences, University of Warsaw.
    19. Fischer, Thomas & Krauss, Christopher, 2017. "Deep learning with long short-term memory networks for financial market predictions," FAU Discussion Papers in Economics 11/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    20. Uddin, Ajim & Tao, Xinyuan & Yu, Dantong, 2023. "Attention based dynamic graph neural network for asset pricing," Global Finance Journal, Elsevier, vol. 58(C).
    21. Gupta, Rangan & Hammoudeh, Shawkat & Modise, Mampho P. & Nguyen, Duc Khuong, 2014. "Can economic uncertainty, financial stress and consumer sentiments predict U.S. equity premium?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 33(C), pages 367-378.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:8:y:2020:i:9:p:1441-:d:405069. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.