IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0253217.html
   My bibliography  Save this article

Bayesian neural networks for stock price forecasting before and during COVID-19 pandemic

Author

Listed:
  • Rohitash Chandra
  • Yixuan He

Abstract

Recently, there has been much attention in the use of machine learning methods, particularly deep learning for stock price prediction. A major limitation of conventional deep learning is uncertainty quantification in predictions which affect investor confidence. Bayesian neural networks feature Bayesian inference for providing inference (training) of model parameters that provides a rigorous methodology for uncertainty quantification in predictions. Markov Chain Monte Carlo (MCMC) sampling methods have been prominent in implementing inference of Bayesian neural networks; however certain limitations existed due to a large number of parameters and the need for better computational resources. Recently, there has been much progress in the area of Bayesian neural networks given the use of Langevin gradients with parallel tempering MCMC that can be implemented in a parallel computing environment. The COVID-19 pandemic had a drastic impact in the world economy and stock markets given different levels of lockdowns due to rise and fall of daily infections. It is important to investigate the performance of related forecasting models during the COVID-19 pandemic given the volatility in stock markets. In this paper, we use novel Bayesian neural networks for multi-step-ahead stock price forecasting before and during COVID-19. We also investigate if the pre-COVID-19 datasets are useful of modelling stock price forecasting during COVID-19. Our results indicate due to high volatility in the stock-price during COVID-19, it is more challenging to provide forecasting. However, we found that Bayesian neural networks could provide reasonable predictions with uncertainty quantification despite high market volatility during the first peak of the COVID-19 pandemic.

Suggested Citation

  • Rohitash Chandra & Yixuan He, 2021. "Bayesian neural networks for stock price forecasting before and during COVID-19 pandemic," PLOS ONE, Public Library of Science, vol. 16(7), pages 1-32, July.
  • Handle: RePEc:plo:pone00:0253217
    DOI: 10.1371/journal.pone.0253217
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0253217
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0253217&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0253217?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Farias Nazário, Rodolfo Toríbio & e Silva, Jéssica Lima & Sobreiro, Vinicius Amorim & Kimura, Herbert, 2017. "A literature review of technical analysis on stock markets," The Quarterly Review of Economics and Finance, Elsevier, vol. 66(C), pages 115-126.
    2. Yousaf, Muhammad & Zahir, Samiha & Riaz, Muhammad & Hussain, Sardar Muhammad & Shah, Kamal, 2020. "Statistical analysis of forecasting COVID-19 for upcoming month in Pakistan," Chaos, Solitons & Fractals, Elsevier, vol. 138(C).
    3. Maliszewska,Maryla & Mattoo,Aaditya & Van Der Mensbrugghe,Dominique, 2020. "The Potential Impact of COVID-19 on GDP and Trade : A Preliminary Assessment," Policy Research Working Paper Series 9211, The World Bank.
    4. Al-Awadhi, Abdullah M. & Alsaifi, Khaled & Al-Awadhi, Ahmad & Alhammadi, Salah, 2020. "Death and contagious infectious diseases: Impact of the COVID-19 virus on stock market returns," Journal of Behavioral and Experimental Finance, Elsevier, vol. 27(C).
    5. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    6. Chakraborty, Tanujit & Ghosh, Indrajit, 2020. "Real-time forecasts and risk assessment of novel coronavirus (COVID-19) cases: A data-driven analysis," Chaos, Solitons & Fractals, Elsevier, vol. 135(C).
    7. Rui Albuquerque & Yrjo Koskinen & Shuai Yang & Chendi Zhang, 2020. "Resiliency of Environmental and Social Stocks: An Analysis of the Exogenous COVID-19 Market Crash," The Review of Corporate Finance Studies, Society for Financial Studies, vol. 9(3), pages 593-621.
    8. Ali, Mohsin & Alam, Nafis & Rizvi, Syed Aun R., 2020. "Coronavirus (COVID-19) — An epidemic or pandemic for financial markets," Journal of Behavioral and Experimental Finance, Elsevier, vol. 27(C).
    9. Blonbou, Ruddy, 2011. "Very short-term wind power forecasting with neural networks and adaptive Bayesian learning," Renewable Energy, Elsevier, vol. 36(3), pages 1118-1124.
    10. Warwick McKibbin & Roshen Fernando, 2021. "The Global Macroeconomic Impacts of COVID-19: Seven Scenarios," Asian Economic Papers, MIT Press, vol. 20(2), pages 1-30, Summer.
    11. Daiki Matsunaga & Toyotaro Suzumura & Toshihiro Takahashi, 2019. "Exploring Graph Neural Networks for Stock Market Predictions with Rolling Window Analysis," Papers 1909.10660, arXiv.org, revised Nov 2019.
    12. Arias Velásquez, Ricardo Manuel & Mejía Lara, Jennifer Vanessa, 2020. "Forecast and evaluation of COVID-19 spreading in USA with reduced-space Gaussian process regression," Chaos, Solitons & Fractals, Elsevier, vol. 136(C).
    13. Rui Albuquerque & Yrjo Koskinen & Shuai Yang & Chendi Zhang, 0. "Resiliency of Environmental and Social Stocks: An Analysis of the Exogenous COVID-19 Market Crash," Review of Corporate Finance Studies, Oxford University Press, vol. 9(3), pages 593-621.
    14. Chimmula, Vinay Kumar Reddy & Zhang, Lei, 2020. "Time series forecasting of COVID-19 transmission in Canada using LSTM networks," Chaos, Solitons & Fractals, Elsevier, vol. 135(C).
    15. da Silva, Ramon Gomes & Ribeiro, Matheus Henrique Dal Molin & Mariani, Viviana Cocco & Coelho, Leandro dos Santos, 2020. "Forecasting Brazilian and American COVID-19 cases based on artificial intelligence coupled with climatic exogenous variables," Chaos, Solitons & Fractals, Elsevier, vol. 139(C).
    16. G.P. Kourtis & L.P. Κourtis & M.P. Kourtis & P. Curtis, 2017. "Fundamental Analysis, Stock Returns and High B/M Companies," International Journal of Economics & Business Administration (IJEBA), International Journal of Economics & Business Administration (IJEBA), vol. 0(4), pages 3-18.
    17. Andrew Atkeson, 2020. "What Will be the Economic Impact of COVID-19 in the US? Rough Estimates of Disease Scenarios," Staff Report 595, Federal Reserve Bank of Minneapolis.
    18. Song, Yu & Akagi, Fumio, 2016. "Application of artificial neural network for the prediction of stock market returns: The case of the Japanese stock marketAuthor-Name: Qiu, Mingyue," Chaos, Solitons & Fractals, Elsevier, vol. 85(C), pages 1-7.
    19. Salisu, Afees A. & Vo, Xuan Vinh, 2020. "Predicting stock returns in the presence of COVID-19 pandemic: The role of health news," International Review of Financial Analysis, Elsevier, vol. 71(C).
    20. Chad E. Hart & Dermot J. Hayes & Keri L. Jacobs & Lee L. Schulz & John M. Crespi, 2020. "The Impact of COVID-19 on Iowa's Corn, Soybean, Ethanol, Pork, and Beef Sectors," Center for Agricultural and Rural Development (CARD) Publications 20-pb28, Center for Agricultural and Rural Development (CARD) at Iowa State University.
    21. repec:ers:journl:v:v:y:2017:i:4:p:3-18 is not listed on IDEAS
    22. Li, Gong & Shi, Jing & Zhou, Junyi, 2011. "Bayesian adaptive combination of short-term wind speed forecasts from neural network models," Renewable Energy, Elsevier, vol. 36(1), pages 352-359.
    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. Tijana Matejić & Snežana Knežević & Vesna Bogojević Arsić & Tijana Obradović & Stefan Milojević & Miljan Adamović & Aleksandra Mitrović & Marko Milašinović & Dragoljub Simonović & Goran Milošević & Ma, 2022. "Assessing the Impact of the COVID-19 Crisis on Hotel Industry Bankruptcy Risk through Novel Forecasting Models," Sustainability, MDPI, vol. 14(8), pages 1-44, April.
    2. Jakub Drahokoupil, 2022. "Application of the XGBoost algorithm and Bayesian optimization for the Bitcoin price prediction during the COVID-19 period," FFA Working Papers 4.006, Prague University of Economics and Business, revised 09 May 2022.
    3. Faizal Hafiz & Jan Broekaert & Davide La Torre & Akshya Swain, 2021. "A Multi-criteria Approach to Evolve Sparse Neural Architectures for Stock Market Forecasting," Papers 2111.08060, arXiv.org.
    4. Martin Magris & Mostafa Shabani & Alexandros Iosifidis, 2022. "Bayesian Bilinear Neural Network for Predicting the Mid-price Dynamics in Limit-Order Book Markets," Papers 2203.03613, arXiv.org, revised Jan 2023.

    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. Brada, Josef C. & Gajewski, Paweł & Kutan, Ali M., 2021. "Economic resiliency and recovery, lessons from the financial crisis for the COVID-19 pandemic: A regional perspective from Central and Eastern Europe," International Review of Financial Analysis, Elsevier, vol. 74(C).
    2. Tomás Gómez Rodríguez & Humberto Ríos Bolívar & Adriana Zambrano Reyes, 2021. "Volatilidad y COVID-19: evidencia empírica internacional," Remef - Revista Mexicana de Economía y Finanzas Nueva Época REMEF (The Mexican Journal of Economics and Finance), Instituto Mexicano de Ejecutivos de Finanzas, IMEF, vol. 16(3), pages 1-20, Julio - S.
    3. Ines Abdelkafi & Sahar Loukil & YossraBen Romdhane, 2023. "Economic Uncertainty During COVID-19 Pandemic in Latin America and Asia," Journal of the Knowledge Economy, Springer;Portland International Center for Management of Engineering and Technology (PICMET), vol. 14(2), pages 1582-1601, June.
    4. Tayarani N., Mohammad-H., 2021. "Applications of artificial intelligence in battling against covid-19: A literature review," Chaos, Solitons & Fractals, Elsevier, vol. 142(C).
    5. Osman Taylan & Abdulaziz S. Alkabaa & Mustafa Tahsin Yılmaz, 2022. "Impact of COVID-19 on G20 countries: analysis of economic recession using data mining approaches," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-30, December.
    6. Adediran, Idris A. & Yinusa, Olalekan D. & Lakhani, Kanwal Hammad, 2021. "Where lies the silver lining when uncertainty hang dark clouds over the global financial markets?," Resources Policy, Elsevier, vol. 70(C).
    7. Narayan, Paresh Kumar & Devpura, Neluka & Wang, Hua, 2020. "Japanese currency and stock market—What happened during the COVID-19 pandemic?," Economic Analysis and Policy, Elsevier, vol. 68(C), pages 191-198.
    8. Takahashi, Hidenori & Yamada, Kazuo, 2021. "When the Japanese stock market meets COVID-19: Impact of ownership, China and US exposure, and ESG channels," International Review of Financial Analysis, Elsevier, vol. 74(C).
    9. Salisu, Afees A. & Vo, Xuan Vinh & Lucey, Brian, 2021. "Gold and US sectoral stocks during COVID-19 pandemic," Research in International Business and Finance, Elsevier, vol. 57(C).
    10. Padhan, Rakesh & Prabheesh, K.P., 2021. "The economics of COVID-19 pandemic: A survey," Economic Analysis and Policy, Elsevier, vol. 70(C), pages 220-237.
    11. Bora Aktan, 2022. "Emerging equity market reaction to pandemic prevention policy: Evidence from regression discontinuity design," Zbornik radova Ekonomskog fakulteta u Rijeci/Proceedings of Rijeka Faculty of Economics, University of Rijeka, Faculty of Economics and Business, vol. 40(2), pages 421-439.
    12. Demir, Ender & Danisman, Gamze Ozturk, 2021. "Banking sector reactions to COVID-19: The role of bank-specific factors and government policy responses," Research in International Business and Finance, Elsevier, vol. 58(C).
    13. Xue, Fujing & Li, Xiaoyu & Zhang, Ting & Hu, Nan, 2021. "Stock market reactions to the COVID-19 pandemic: The moderating role of corporate big data strategies based on Word2Vec," Pacific-Basin Finance Journal, Elsevier, vol. 68(C).
    14. Cakici, Nusret & Zaremba, Adam, 2021. "Who should be afraid of infections? Pandemic exposure and the cross-section of stock returns," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 72(C).
    15. Umar, Zaghum & Manel, Youssef & Riaz, Yasir & Gubareva, Mariya, 2021. "Return and volatility transmission between emerging markets and US debt throughout the pandemic crisis," Pacific-Basin Finance Journal, Elsevier, vol. 67(C).
    16. Piñeiro-Chousa, Juan & López-Cabarcos, M. Ángeles & Quiñoá-Piñeiro, Lara & Pérez-Pico, Ada M., 2022. "US biopharmaceutical companies' stock market reaction to the COVID-19 pandemic. Understanding the concept of the ‘paradoxical spiral’ from a sustainability perspective," Technological Forecasting and Social Change, Elsevier, vol. 175(C).
    17. Sanjay Kumar Rout, 2020. "Spillover of Financial Innovations during Covid-19: A Cross-Country Analysis," Asian Development Policy Review, Asian Economic and Social Society, vol. 8(4), pages 298-318, December.
    18. Baek, Seungho & Mohanty, Sunil K. & Glambosky, Mina, 2020. "COVID-19 and stock market volatility: An industry level analysis," Finance Research Letters, Elsevier, vol. 37(C).
    19. Zaremba, Adam & Kizys, Renatas & Tzouvanas, Panagiotis & Aharon, David Y. & Demir, Ender, 2021. "The quest for multidimensional financial immunity to the COVID-19 pandemic: Evidence from international stock markets," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 71(C).
    20. Pattanaporn Chatjuthamard & Pavitra Jindahra & Pattarake Sarajoti & Sirimon Treepongkaruna, 2021. "The effect of COVID‐19 on the global stock market," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 61(3), pages 4923-4953, September.

    More about this item

    Statistics

    Access and download statistics

    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:plo:pone00:0253217. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.