IDEAS home Printed from https://ideas.repec.org/p/zbw/safewp/288.html
   My bibliography  Save this paper

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

Author

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

Abstract

The possibility to investigate the impact of news on stock prices has observed a strong evolution thanks to the recent use of natural language processing (NLP) in finance and economics. In this paper, we investigate COVID-19 news, elaborated with the "Natural Language Toolkit" that uses machine learning models to extract the news' sentiment. We consider the period from January till June 2020 and analyze 203,886 online articles that deal with the pandemic and that were published on three platforms: MarketWatch.com, Reuters.com and NYtimes.com. Our findings show that there is a significant and positive relationship between sentiment score and market returns. This result indicates that an increase (decrease) in the sentiment score implies a rise in positive (negative) news and corresponds to positive (negative) market returns. We also find that the variance of the sentiments and the volume of the news sources for Reuters and MarketWatch, respectively, are negatively associated to market returns indicating that an increase of the uncertainty of the sentiment and an increase in the arrival of news have an adverse impact on the stock market.

Suggested Citation

  • Costola, Michele & Nofer, Michael & Hinz, Oliver & Pelizzon, Loriana, 2020. "Machine learning sentiment analysis, Covid-19 news and stock market reactions," SAFE Working Paper Series 288, Leibniz Institute for Financial Research SAFE.
  • Handle: RePEc:zbw:safewp:288
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/224131/1/173177205X.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. 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).
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. 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.
    7. 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).
    8. 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.
    9. 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.
    10. 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.
    11. 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.
    12. 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.
    13. 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).
    14. 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.
    15. Niels Joachim Gormsen & Ralph S J Koijen & Nikolai Roussanov, 0. "Coronavirus: Impact on Stock Prices and Growth Expectations," The Review of Asset Pricing Studies, Society for Financial Studies, vol. 10(4), pages 574-597.
    16. 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.
    17. 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.
    18. Diego García, 2013. "Sentiment during Recessions," Journal of Finance, American Finance Association, vol. 68(3), pages 1267-1300, June.
    19. 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.
    20. 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).
    21. 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).
    22. 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.
    23. 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.
    24. 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.
    25. 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.
    26. Taylan Kabbani & Ekrem Duman, 2022. "Deep Reinforcement Learning Approach for Trading Automation in The Stock Market," Papers 2208.07165, arXiv.org.
    27. 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.
    28. 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.
    29. 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).
    30. Akhtaruzzaman, Md & Boubaker, Sabri & Sensoy, Ahmet, 2021. "Financial contagion during COVID–19 crisis," Finance Research Letters, Elsevier, vol. 38(C).
    31. 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.
    32. 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.
    33. 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.
    34. 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.
    35. 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).
    36. 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).
    37. Athey, Susan & Imbens, Guido W., 2019. "Machine Learning Methods Economists Should Know About," Research Papers 3776, Stanford University, Graduate School of Business.
    38. 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).
    39. 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.
    40. 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.
    41. 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.
    42. Bledar Fazlija & Pedro Harder, 2022. "Using Financial News Sentiment for Stock Price Direction Prediction," Mathematics, MDPI, vol. 10(13), pages 1-20, June.
    43. Smales, L.A., 2021. "Investor attention and global market returns during the COVID-19 crisis," International Review of Financial Analysis, Elsevier, vol. 73(C).
    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. 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).
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    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. 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).
    8. 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.
    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. Niculaescu, Corina E. & Sangiorgi, Ivan & Bell, Adrian R., 2023. "Does personal experience with COVID-19 impact investment decisions? Evidence from a survey of US retail investors," International Review of Financial Analysis, Elsevier, vol. 88(C).
    13. 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).
    14. 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.
    15. Domonkos F. Vamossy, 2020. "Investor Emotions and Earnings Announcements," Papers 2006.13934, arXiv.org, revised Jun 2020.
    16. Ahmad, Khurshid & Han, JingGuang & Hutson, Elaine & Kearney, Colm & Liu, Sha, 2016. "Media-expressed negative tone and firm-level stock returns," Journal of Corporate Finance, Elsevier, vol. 37(C), pages 152-172.
    17. 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.).
    18. Jacob Boudoukh & Ronen Feldman & Shimon Kogan & Matthew Richardson, 2013. "Which News Moves Stock Prices? A Textual Analysis," NBER Working Papers 18725, National Bureau of Economic Research, Inc.
    19. 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.
    20. 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.

    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

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:zbw:safewp:288. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/csafede.html .

    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.