IDEAS home Printed from https://ideas.repec.org/a/eee/riibaf/v64y2023ics0275531923000077.html
   My bibliography  Save this article

Machine learning sentiment analysis, COVID-19 news and stock market reactions

Author

Listed:
  • Costola, Michele
  • Hinz, Oliver
  • Nofer, Michael
  • Pelizzon, Loriana

Abstract

The recent COVID-19 pandemic represents an unprecedented worldwide event to study the influence of related news on the financial markets, especially during the early stage of the pandemic when information on the new threat came rapidly and was complex for investors to process. In this paper, we investigate whether the flow of news on COVID-19 had an impact on forming market expectations. We analyze 203,886 online articles dealing with COVID-19 and published on three news platforms (MarketWatch.com, NYTimes.com, and Reuters.com) in the period from January to June 2020. Using machine learning techniques, we extract the news sentiment through a financial market-adapted BERT model that enables recognizing the context of each word in a given item. Our results show that there is a statistically significant and positive relationship between sentiment scores and S&P 500 market. Furthermore, we provide evidence that sentiment components and news categories on NYTimes.com were differently related to market returns.

Suggested Citation

  • Costola, Michele & Hinz, Oliver & Nofer, Michael & Pelizzon, Loriana, 2023. "Machine learning sentiment analysis, COVID-19 news and stock market reactions," Research in International Business and Finance, Elsevier, vol. 64(C).
  • Handle: RePEc:eee:riibaf:v:64:y:2023:i:c:s0275531923000077
    DOI: 10.1016/j.ribaf.2023.101881
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0275531923000077
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ribaf.2023.101881?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
    ---><---

    As the access to this document is restricted, you may want to look for a different version below or search for a different version of it.

    Other versions of this item:

    References listed on IDEAS

    as
    1. Daniele Bianchi & Matthias Büchner & Tobias Hoogteijling & Andrea Tamoni, 2021. "Corrigendum: Bond Risk Premiums with Machine Learning [Bond risk premiums with machine learning]," Review of Financial Studies, Society for Financial Studies, vol. 34(2), pages 1090-1103.
    2. Sanjiv R. Das & Mike Y. Chen, 2007. "Yahoo! for Amazon: Sentiment Extraction from Small Talk on the Web," Management Science, INFORMS, vol. 53(9), pages 1375-1388, September.
    3. Ahmad, Wasim & Kutan, Ali M. & Gupta, Smarth, 2021. "Black swan events and COVID-19 outbreak: Sector level evidence from the US, UK, and European stock markets," International Review of Economics & Finance, Elsevier, vol. 75(C), pages 546-557.
    4. Mitchell, Mark L & Mulherin, J Harold, 1994. "The Impact of Public Information on the Stock Market," Journal of Finance, American Finance Association, vol. 49(3), pages 923-950, July.
    5. Lyócsa, Štefan & Baumöhl, Eduard & Výrost, Tomáš & Molnár, Peter, 2020. "Fear of the coronavirus and the stock markets," Finance Research Letters, Elsevier, vol. 36(C).
    6. Alexander W. Butler & Gustavo Grullon & James P. Weston, 2005. "Can Managers Forecast Aggregate Market Returns?," Journal of Finance, American Finance Association, vol. 60(2), pages 963-986, April.
    7. Daniele Bianchi & Matthias Büchner & Andrea Tamoni, 2021. "Bond Risk Premiums with Machine Learning [Quadratic term structure models: Theory and evidence]," Review of Financial Studies, Society for Financial Studies, vol. 34(2), pages 1046-1089.
    8. Michele Costola & Matteo Iacopini & Carlo R. M. A. Santagiustina, 2020. "Public Concern and the Financial Markets during the COVID-19 outbreak," Papers 2005.06796, arXiv.org.
    9. Haroon, Omair & Rizvi, Syed Aun R., 2020. "COVID-19: Media coverage and financial markets behavior—A sectoral inquiry," Journal of Behavioral and Experimental Finance, Elsevier, vol. 27(C).
    10. Ricardo P. Masini & Marcelo C. Medeiros & Eduardo F. Mendes, 2023. "Machine learning advances for time series forecasting," Journal of Economic Surveys, Wiley Blackwell, vol. 37(1), pages 76-111, February.
    11. Niels Joachim Gormsen & Ralph S J Koijen & Nikolai Roussanov, 0. "Coronavirus: Impact on Stock Prices and Growth Expectations," The Review of Asset Pricing Studies, Oxford University Press, vol. 10(4), pages 574-597.
    12. Zhang, Qi & Cai, Charlie X. & Keasey, Kevin, 2013. "Market reaction to earnings news: A unified test of information risk and transaction costs," Journal of Accounting and Economics, Elsevier, vol. 56(2), pages 251-266.
    13. Shamima Ahmed & Muneer Alshater & Anis El Ammari & Helmi Hammami, 2022. "Artificial intelligence and machine learning in finance: A bibliometric review," Post-Print hal-03697290, HAL.
    14. Taylan Kabbani & Ekrem Duman, 2022. "Deep Reinforcement Learning Approach for Trading Automation in The Stock Market," Papers 2208.07165, arXiv.org.
    15. Akhtaruzzaman, Md & Boubaker, Sabri & Sensoy, Ahmet, 2021. "Financial contagion during COVID–19 crisis," Finance Research Letters, Elsevier, vol. 38(C).
    16. Scott R Baker & Nicholas Bloom & Steven J Davis & Kyle Kost & Marco Sammon & Tasaneeya Viratyosin & Jeffrey Pontiff, 0. "The Unprecedented Stock Market Reaction to COVID-19," The Review of Asset Pricing Studies, Society for Financial Studies, vol. 10(4), pages 742-758.
    17. Xu, Yongan & Liang, Chao & Li, Yan & Huynh, Toan L.D., 2022. "News sentiment and stock return: Evidence from managers’ news coverages," Finance Research Letters, Elsevier, vol. 48(C).
    18. Athey, Susan & Imbens, Guido W., 2019. "Machine Learning Methods Economists Should Know About," Research Papers 3776, Stanford University, Graduate School of Business.
    19. Biktimirov, Ernest N. & Sokolyk, Tatyana & Ayanso, Anteneh, 2021. "Sentiment and hype of business media topics and stock market returns during the COVID-19 pandemic," Journal of Behavioral and Experimental Finance, Elsevier, vol. 31(C).
    20. Xin Huang, 2018. "Macroeconomic news announcements, systemic risk, financial market volatility, and jumps," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(5), pages 513-534, May.
    21. Bledar Fazlija & Pedro Harder, 2022. "Using Financial News Sentiment for Stock Price Direction Prediction," Mathematics, MDPI, vol. 10(13), pages 1-20, June.
    22. Smales, L.A., 2021. "Investor attention and global market returns during the COVID-19 crisis," International Review of Financial Analysis, Elsevier, vol. 73(C).
    23. Jiang, Zhi-Qiang & Zhou, Wei-Xing & Sornette, Didier & Woodard, Ryan & Bastiaensen, Ken & Cauwels, Peter, 2010. "Bubble diagnosis and prediction of the 2005-2007 and 2008-2009 Chinese stock market bubbles," Journal of Economic Behavior & Organization, Elsevier, vol. 74(3), pages 149-162, June.
    24. Alessandro Rebucci & Jonathan S. Hartley & Daniel Jiménez, 2022. "An Event Study of COVID-19 Central Bank Quantitative Easing in Advanced and Emerging Economies," Advances in Econometrics, in: Essays in Honor of M. Hashem Pesaran: Prediction and Macro Modeling, volume 43, pages 291-322, Emerald Group Publishing Limited.
    25. Ahmed, Shamima & Alshater, Muneer M. & Ammari, Anis El & Hammami, Helmi, 2022. "Artificial intelligence and machine learning in finance: A bibliometric review," Research in International Business and Finance, Elsevier, vol. 61(C).
    26. Joshua Zoen Git Hiew & Xin Huang & Hao Mou & Duan Li & Qi Wu & Yabo Xu, 2019. "BERT-based Financial Sentiment Index and LSTM-based Stock Return Predictability," Papers 1906.09024, arXiv.org, revised Jul 2022.
    27. Tom Marty & Bruce Vanstone & Tobias Hahn, 2020. "News media analytics in finance: a survey," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 60(2), pages 1385-1434, June.
    28. Yarovaya, Larisa & Matkovskyy, Roman & Jalan, Akanksha, 2021. "The effects of a “black swan” event (COVID-19) on herding behavior in cryptocurrency markets," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 75(C).
    29. Ankur Sinha & Satishwar Kedas & Rishu Kumar & Pekka Malo, 2022. "SEntFiN 1.0: Entity‐aware sentiment analysis for financial news," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 73(9), pages 1314-1335, September.
    30. Roberto Casarin & Flaminio Squazzoni, 2013. "Being on the Field When the Game Is Still Under Way. The Financial Press and Stock Markets in Times of Crisis," PLOS ONE, Public Library of Science, vol. 8(7), pages 1-14, July.
    31. Susan Athey & Guido W. Imbens, 2019. "Machine Learning Methods That Economists Should Know About," Annual Review of Economics, Annual Reviews, vol. 11(1), pages 685-725, August.
    32. Ghoddusi, Hamed & Creamer, Germán G. & Rafizadeh, Nima, 2019. "Machine learning in energy economics and finance: A review," Energy Economics, Elsevier, vol. 81(C), pages 709-727.
    33. Diego García, 2013. "Sentiment during Recessions," Journal of Finance, American Finance Association, vol. 68(3), pages 1267-1300, June.
    34. Chiah, Mardy & Zhong, Angel, 2020. "Trading from home: The impact of COVID-19 on trading volume around the world," Finance Research Letters, Elsevier, vol. 37(C).
    35. Huynh, Toan Luu Duc & Foglia, Matteo & Nasir, Muhammad Ali & Angelini, Eliana, 2021. "Feverish sentiment and global equity markets during the COVID-19 pandemic," Journal of Economic Behavior & Organization, Elsevier, vol. 188(C), pages 1088-1108.
    36. Pekka Malo & Ankur Sinha & Pekka Korhonen & Jyrki Wallenius & Pyry Takala, 2014. "Good debt or bad debt: Detecting semantic orientations in economic texts," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 65(4), pages 782-796, April.
    37. 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).
    38. Jan De Spiegeleer & Dilip B. Madan & Sofie Reyners & Wim Schoutens, 2018. "Machine learning for quantitative finance: fast derivative pricing, hedging and fitting," Quantitative Finance, Taylor & Francis Journals, vol. 18(10), pages 1635-1643, October.
    39. Paul C. Tetlock, 2007. "Giving Content to Investor Sentiment: The Role of Media in the Stock Market," Journal of Finance, American Finance Association, vol. 62(3), pages 1139-1168, June.
    40. Werner Antweiler & Murray Z. Frank, 2004. "Is All That Talk Just Noise? The Information Content of Internet Stock Message Boards," Journal of Finance, American Finance Association, vol. 59(3), pages 1259-1294, June.
    41. Nofer, Michael & Hinz, Oliver, 2015. "Using Twitter to Predict the Stock Market: Where is the Mood Effect?," Publications of Darmstadt Technical University, Institute for Business Studies (BWL) 77140, Darmstadt Technical University, Department of Business Administration, Economics and Law, Institute for Business Studies (BWL).
    42. J. Bradford De Long & Andrei Shleifer & Lawrence H. Summers & Robert J. Waldmann, 1987. "The Economic Consequences of Noise Traders," NBER Working Papers 2395, National Bureau of Economic Research, Inc.
    43. Xingchen Wan & Jie Yang & Slavi Marinov & Jan-Peter Calliess & Stefan Zohren & Xiaowen Dong, 2020. "Sentiment Correlation in Financial News Networks and Associated Market Movements," Papers 2011.06430, arXiv.org, revised Feb 2021.
    44. Carlini, Federico & Cucinelli, Doriana & Previtali, Daniele & Soana, Maria Gaia, 2020. "Don't talk too bad! stock market reactions to bank corporate governance news," Journal of Banking & Finance, Elsevier, vol. 121(C).
    45. Dey, Asim K. & Hoque, G.M. Toufiqul & Das, Kumer P. & Panovska, Irina, 2022. "Impacts of COVID-19 local spread and Google search trend on the US stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 589(C).
    46. Michael Nofer & Oliver Hinz, 2015. "Using Twitter to Predict the Stock Market," Business & Information Systems Engineering: The International Journal of WIRTSCHAFTSINFORMATIK, Springer;Gesellschaft für Informatik e.V. (GI), vol. 57(4), pages 229-242, August.
    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. Ali Asgarov, 2023. "Predicting Financial Market Trends using Time Series Analysis and Natural Language Processing," Papers 2309.00136, arXiv.org.
    2. Vecchi, Edoardo & Berra, Gabriele & Albrecht, Steffen & Gagliardini, Patrick & Horenko, Illia, 2023. "Entropic approximate learning for financial decision-making in the small data regime," Research in International Business and Finance, Elsevier, vol. 65(C).
    3. Ahelegbey, Daniel Felix & Cerchiello, Paola & Scaramozzino, Roberta, 2022. "Network based evidence of the financial impact of Covid-19 pandemic," International Review of Financial Analysis, Elsevier, vol. 81(C).
    4. Marcus Vinicius Santos & Fernando Morgado-Dias & Thiago C. Silva, 2023. "Oil Sector and Sentiment Analysis—A Review," Energies, MDPI, vol. 16(12), pages 1-29, June.
    5. Thavavel Vaiyapuri & Sharath Kumar Jagannathan & Mohammed Altaf Ahmed & K. C. Ramya & Gyanendra Prasad Joshi & Soojeong Lee & Gangseong Lee, 2023. "Sustainable Artificial Intelligence-Based Twitter Sentiment Analysis on COVID-19 Pandemic," Sustainability, MDPI, vol. 15(8), pages 1-15, April.
    6. Szczygielski, Jan Jakub & Charteris, Ailie & Bwanya, Princess Rutendo & Brzeszczyński, Janusz, 2023. "Which COVID-19 information really impacts stock markets?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 84(C).

    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. Möller, Rouven & Reichmann, Doron, 2023. "COVID-19 related TV news and stock returns: Evidence from major US TV stations," The Quarterly Review of Economics and Finance, Elsevier, vol. 87(C), pages 95-109.
    2. Dash, Saumya Ranjan & Maitra, Debasish, 2022. "The COVID-19 pandemic uncertainty, investor sentiment, and global equity markets: Evidence from the time-frequency co-movements," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    3. Hoang, Daniel & Wiegratz, Kevin, 2022. "Machine learning methods in finance: Recent applications and prospects," Working Paper Series in Economics 158, Karlsruhe Institute of Technology (KIT), Department of Economics and Management.
    4. Daniele Ballinari & Simon Behrendt, 2021. "How to gauge investor behavior? A comparison of online investor sentiment measures," Digital Finance, Springer, vol. 3(2), pages 169-204, June.
    5. Huynh, Toan Luu Duc & Foglia, Matteo & Nasir, Muhammad Ali & Angelini, Eliana, 2021. "Feverish sentiment and global equity markets during the COVID-19 pandemic," Journal of Economic Behavior & Organization, Elsevier, vol. 188(C), pages 1088-1108.
    6. Szczygielski, Jan Jakub & Charteris, Ailie & Bwanya, Princess Rutendo & Brzeszczyński, Janusz, 2023. "Which COVID-19 information really impacts stock markets?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 84(C).
    7. Eryka Probierz & Adam Galuszka & Katarzyna Klimczak & Karol Jedrasiak & Tomasz Wisniewski & Tomasz Dzida, 2021. "Financial Sentiment on Twitter's Community and it's Connection to Polish Stock Market Movements in Context of Behavior Modelling," European Research Studies Journal, European Research Studies Journal, vol. 0(4B), pages 56-65.
    8. Zhang, Xiaotao & Li, Guoran & Li, Yishuo & Zou, Gaofeng & Wu, Ji George, 2023. "Which is more important in stock market forecasting: Attention or sentiment?," International Review of Financial Analysis, Elsevier, vol. 89(C).
    9. Vamossy, Domonkos F., 2021. "Investor emotions and earnings announcements," Journal of Behavioral and Experimental Finance, Elsevier, vol. 30(C).
    10. Domonkos F. Vamossy & Rolf Skog, 2021. "EmTract: Extracting Emotions from Social Media," Papers 2112.03868, arXiv.org, revised Jun 2023.
    11. Tiwari, Aviral Kumar & Abakah, Emmanuel Joel Aikins & Bonsu, Christiana Osei & Karikari, Nana Kwasi & Hammoudeh, Shawkat, 2022. "The effects of public sentiments and feelings on stock market behavior: Evidence from Australia," Journal of Economic Behavior & Organization, Elsevier, vol. 193(C), pages 443-472.
    12. Chen, Cathy Yi-Hsuan & Fengler, Matthias R. & Härdle, Wolfgang Karl & Liu, Yanchu, 2022. "Media-expressed tone, option characteristics, and stock return predictability," Journal of Economic Dynamics and Control, Elsevier, vol. 134(C).
    13. Thomas Renault, 2020. "Sentiment analysis and machine learning in finance: a comparison of methods and models on one million messages," Digital Finance, Springer, vol. 2(1), pages 1-13, September.
    14. Steven Heston & Nitish R. Sinha, 2016. "News versus Sentiment : Predicting Stock Returns from News Stories," Finance and Economics Discussion Series 2016-048, Board of Governors of the Federal Reserve System (U.S.).
    15. Yang Gao & Chengjie Zhao & Bianxia Sun & Wandi Zhao, 2022. "Effects of investor sentiment on stock volatility: new evidences from multi-source data in China’s green stock markets," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-30, December.
    16. Sergio Consoli & Luca Tiozzo Pezzoli & Elisa Tosetti, 2022. "Neural forecasting of the Italian sovereign bond market with economic news," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(S2), pages 197-224, December.
    17. Akhtaruzzaman, Md & Boubaker, Sabri & Umar, Zaghum, 2022. "COVID–19 media coverage and ESG leader indices," Finance Research Letters, Elsevier, vol. 45(C).
    18. Szczygielski, Jan Jakub & Charteris, Ailie & Bwanya, Princess Rutendo & Brzeszczyński, Janusz, 2022. "The impact and role of COVID-19 uncertainty: A global industry analysis," International Review of Financial Analysis, Elsevier, vol. 80(C).
    19. Renault, Thomas, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Journal of Banking & Finance, Elsevier, vol. 84(C), pages 25-40.
    20. Xie, Wen-Jie & Li, Mu-Yao & Zhou, Wei-Xing, 2021. "Learning representation of stock traders and immediate price impacts," Emerging Markets Review, Elsevier, vol. 48(C).

    More about this item

    Keywords

    COVID-19 news; Sentiment analysis; Stock markets;
    All these keywords.

    JEL classification:

    • G10 - Financial Economics - - General Financial Markets - - - General (includes Measurement and Data)
    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading
    • G15 - Financial Economics - - General Financial Markets - - - International Financial Markets

    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:eee:riibaf:v:64:y:2023:i:c:s0275531923000077. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ribaf .

    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.