IDEAS home Printed from https://ideas.repec.org/p/bdm/wpaper/2021-04.html
   My bibliography  Save this paper

A Sentiment-based Risk Indicator for the Mexican Financial Sector

Author

Listed:
  • Rho Caterina
  • Fernández Raúl
  • Palma Brenda

Abstract

We apply text analysis to Twitter messages in Spanish to build a sentiment- based risk index for the financial sector in Mexico. We classify a sample of tweets for the period 2006-2019 to identify messages in response to positive or negative shocks to the Mexican financial sector. We use a voting classifier to aggregate three different classifiers: one based on word polarities from a pre-defined dictionary; one based on a support vector machine; and one based on neural networks. Next, we compare our Twitter sentiment index with existing indicators of financial stress. We find that this novel index captures the impact of sources of financial stress not explicitly encompassed in quantitative risk measures. Finally, we show that a shock in our Twitter sentiment index correlates positively with an increase in financial market risk, stock market volatility, sovereign risk, and foreign exchange rate volatility.

Suggested Citation

  • Rho Caterina & Fernández Raúl & Palma Brenda, 2021. "A Sentiment-based Risk Indicator for the Mexican Financial Sector," Working Papers 2021-04, Banco de México.
  • Handle: RePEc:bdm:wpaper:2021-04
    as

    Download full text from publisher

    File URL: https://www.banxico.org.mx/publications-and-press/banco-de-mexico-working-papers/%7BE66AD52A-5016-A258-D24F-C6C5BF10A64A%7D.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Robert B. Barsky & Eric R. Sims, 2012. "Information, Animal Spirits, and the Meaning of Innovations in Consumer Confidence," American Economic Review, American Economic Association, vol. 102(4), pages 1343-1377, June.
    2. Timm O. Sprenger & Andranik Tumasjan & Philipp G. Sandner & Isabell M. Welpe, 2014. "Tweets and Trades: the Information Content of Stock Microblogs," European Financial Management, European Financial Management Association, vol. 20(5), pages 926-957, November.
    3. Nyman, Rickard & Kapadia, Sujit & Tuckett, David, 2021. "News and narratives in financial systems: Exploiting big data for systemic risk assessment," Journal of Economic Dynamics and Control, Elsevier, vol. 127(C).
    4. Buch, Claudia M. & Bussierè, Matthieu & Goldberg, Linda & Hills, Robert, 2019. "The international transmission of monetary policy," Journal of International Money and Finance, Elsevier, vol. 91(C), pages 29-48.
    5. Duprey, Thibaut & Klaus, Benjamin & Peltonen, Tuomas, 2017. "Dating systemic financial stress episodes in the EU countries," Journal of Financial Stability, Elsevier, vol. 32(C), pages 30-56.
    6. Kremer, Manfred & Lo Duca, Marco & Holló, Dániel, 2012. "CISS - a composite indicator of systemic stress in the financial system," Working Paper Series 1426, European Central Bank.
    7. Vlastakis, Nikolaos & Markellos, Raphael N., 2012. "Information demand and stock market volatility," Journal of Banking & Finance, Elsevier, vol. 36(6), pages 1808-1821.
    8. Reinhardt, Dennis & Sowerbutts, Rhiannon, 2015. "Regulatory arbitrage in action: evidence from banking flows and macroprudential policy," Bank of England working papers 546, Bank of England.
    9. Bukovina, Jaroslav, 2016. "Social media big data and capital markets—An overview," Journal of Behavioral and Experimental Finance, Elsevier, vol. 11(C), pages 18-26.
    10. David Bholat & Stephen Hans & Pedro Santos & Cheryl Schonhardt-Bailey, 2015. "Text mining for central banks," Handbooks, Centre for Central Banking Studies, Bank of England, number 33, April.
    11. Eleni Kalamara & Arthur Turrell & Chris Redl & George Kapetanios & Sujit Kapadia, 2022. "Making text count: Economic forecasting using newspaper text," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 896-919, August.
    12. Marianne Baxter & Robert G. King, 1999. "Measuring Business Cycles: Approximate Band-Pass Filters For Economic Time Series," The Review of Economics and Statistics, MIT Press, vol. 81(4), pages 575-593, November.
    13. Ricardo Correa & Keshav Garud & Juan M Londono & Nathan Mislang, 2021. "Sentiment in Central Banks’ Financial Stability Reports," Review of Finance, European Finance Association, vol. 25(1), pages 85-120.
    14. Giuseppe Bruno, 2017. "Central Bank Communications: information extraction and semantic analysis," IFC Bulletins chapters, in: Bank for International Settlements (ed.), Big Data, volume 44, Bank for International Settlements.
    15. Scott R. Baker & Nicholas Bloom & Steven J. Davis, 2016. "Measuring Economic Policy Uncertainty," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 131(4), pages 1593-1636.
    16. Lawrence J. Christiano & Terry J. Fitzgerald, 2003. "The Band Pass Filter," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 44(2), pages 435-465, May.
    17. Carlo Alcaraz & Stijn Claessens & Gabriel Cuadra & David Marques-Ibanez & Horacio Sapriza, 2018. "Whatever it takes. What's the impact of a major nonconventional monetary policy intervention?," BIS Working Papers 749, Bank for International Settlements.
    18. Craig S. Hakkio & William R. Keeton, 2009. "Financial stress: what is it, how can it be measured, and why does it matter?," Economic Review, Federal Reserve Bank of Kansas City, vol. 94(Q II), pages 5-50.
    19. Morais, Bernardo & Peydró, José-Luis & Roldán Peña, Jessica & Ruiz Ortega, Claudia, 2019. "The International Bank Lending Channel of Monetary Policy Rates and QE: Credit Supply, Reach-for-Yield, and Real Effects," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 74(1), pages 55-90.
    20. Jess Benhabib & Mark M Spiegel, 2019. "Sentiments and Economic Activity: Evidence from US States," The Economic Journal, Royal Economic Society, vol. 129(618), pages 715-733.
    21. Stephen Hansen & Michael McMahon & Andrea Prat, 2018. "Transparency and Deliberation Within the FOMC: A Computational Linguistics Approach," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 133(2), pages 801-870.
    22. repec:ecb:ecbwps:20111426 is not listed on IDEAS
    23. Matteo Accornero & Mirko Moscatelli, 2018. "Listening to the buzz: social media sentiment and retail depositors' trust," Temi di discussione (Economic working papers) 1165, Bank of Italy, Economic Research and International Relations Area.
    24. Vasilios Plakandaras & Theophilos Papadimitriou & Periklis Gogas, 2015. "Forecasting Daily and Monthly Exchange Rates with Machine Learning Techniques," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 34(7), pages 560-573, November.
    25. Ding, Rong & Hou, Wenxuan, 2015. "Retail investor attention and stock liquidity," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 37(C), pages 12-26.
    26. Morten O. Ravn & Harald Uhlig, 2002. "On adjusting the Hodrick-Prescott filter for the frequency of observations," The Review of Economics and Statistics, MIT Press, vol. 84(2), pages 371-375.
    27. Svetlana Borovkova & Evgeny Garmaev & Philip Lammers & Jordi Rustige, 2017. "SenSR: A sentiment-based systemic risk indicator," DNB Working Papers 553, Netherlands Central Bank, Research Department.
    28. Backus, David K & Kehoe, Patrick J, 1992. "International Evidence of the Historical Properties of Business Cycles," American Economic Review, American Economic Association, vol. 82(4), pages 864-888, September.
    29. Hodrick, Robert J & Prescott, Edward C, 1997. "Postwar U.S. Business Cycles: An Empirical Investigation," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 29(1), pages 1-16, February.
    30. Ángel Iván Moreno Bernal & Carlos González Pedraz, 2020. "Sentiment analysis of the Spanish Financial Stability Report," Working Papers 2011, Banco de España.
    31. King, Robert G. & Rebelo, Sergio T., 1993. "Low frequency filtering and real business cycles," Journal of Economic Dynamics and Control, Elsevier, vol. 17(1-2), pages 207-231.
    32. Jiménez, Gabriel & Mian, Atif & Peydró, José-Luis & Saurina, Jesús, 2020. "The Real Effects of the Bank Lending Channel," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 115, pages 162-179.
    33. George A. Akerlof, 2009. "How Human Psychology Drives the Economy and Why It Matters," American Journal of Agricultural Economics, Agricultural and Applied Economics Association, vol. 91(5), pages 1175-1175.
    34. Ricardo Correa & Keshav Garud & Juan M. Londono & Nathan Mislang, 2017. "Constructing a Dictionary for Financial Stability," IFDP Notes 2017-06-28, Board of Governors of the Federal Reserve System (U.S.).
    35. Nicola Cetorelli & Linda S Goldberg, 2011. "Global Banks and International Shock Transmission: Evidence from the Crisis," IMF Economic Review, Palgrave Macmillan;International Monetary Fund, vol. 59(1), pages 41-76, April.
    36. Tripathy, Jagdish, 2020. "Cross-border effects of regulatory spillovers: Evidence from Mexico," Journal of International Economics, Elsevier, vol. 126(C).
    37. Charles W. Calomiris & Harry Mamaysky, 2018. "How News and Its Context Drive Risk and Returns Around the World," NBER Working Papers 24430, National Bureau of Economic Research, Inc.
    38. Luca Brugnolini, 2018. "About Local Projection Impulse Response Function Reliability," CEIS Research Paper 440, Tor Vergata University, CEIS, revised 09 Jun 2018.
    39. Kevin M. Quinn & Burt L. Monroe & Michael Colaresi & Michael H. Crespin & Dragomir R. Radev, 2010. "How to Analyze Political Attention with Minimal Assumptions and Costs," American Journal of Political Science, John Wiley & Sons, vol. 54(1), pages 209-228, January.
    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. Barbaglia, Luca & Bellia, Mario & Di Girolamo, Francesca & Rho, Caterina, 2024. "Crypto news and policy innovations: Are European markets affected?," JRC Working Papers in Economics and Finance 2024-07, Joint Research Centre, European Commission.
    2. Jean-Charles Bricongne & Baptiste Meunier & Raquel Caldeira, 2024. "Should Central Banks Care About Text Mining? A Literature Review," Working papers 950, Banque de France.
    3. Ramírez-Rondán, Nelson R. & Rojas-Rojas, Renato M. & Villavicencio, Julio A., 2023. "Political institutions, economic uncertainty and sovereign credit ratings," Finance Research Letters, Elsevier, vol. 53(C).
    4. Stolbov, Mikhail & Shchepeleva, Maria & Karminsky, Alexander, 2022. "When central bank research meets Google search: A sentiment index of global financial stress," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 81(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. Nyman, Rickard & Kapadia, Sujit & Tuckett, David, 2021. "News and narratives in financial systems: Exploiting big data for systemic risk assessment," Journal of Economic Dynamics and Control, Elsevier, vol. 127(C).
    2. Maravall, A. & del Rio, A., 2007. "Temporal aggregation, systematic sampling, and the Hodrick-Prescott filter," Computational Statistics & Data Analysis, Elsevier, vol. 52(2), pages 975-998, October.
    3. Hartwig, Benny & Meinerding, Christoph & Schüler, Yves S., 2021. "Identifying indicators of systemic risk," Journal of International Economics, Elsevier, vol. 132(C).
    4. Martin Baumgaertner & Johannes Zahner, 2021. "Whatever it takes to understand a central banker - Embedding their words using neural networks," MAGKS Papers on Economics 202130, Philipps-Universität Marburg, Faculty of Business Administration and Economics, Department of Economics (Volkswirtschaftliche Abteilung).
    5. Ángel L. Martín‐Román & Jaime Cuéllar‐Martín & Alfonso Moral, 2020. "Labor supply and the business cycle: The “bandwagon worker effect”," Papers in Regional Science, Wiley Blackwell, vol. 99(6), pages 1607-1642, December.
    6. Tawadros, George B., 2011. "The stylised facts of Australia's business cycle," Economic Modelling, Elsevier, vol. 28(1), pages 549-556.
    7. Stolbov, Mikhail & Shchepeleva, Maria & Karminsky, Alexander, 2022. "When central bank research meets Google search: A sentiment index of global financial stress," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 81(C).
    8. Cantú, Carlos & Lobato, Roberto & López, Calixto & López-Gallo, Fabrizio, 2022. "A loan-level analysis of financial resilience in Mexico," Journal of Banking & Finance, Elsevier, vol. 135(C).
    9. Shapiro, Adam Hale & Sudhof, Moritz & Wilson, Daniel J., 2022. "Measuring news sentiment," Journal of Econometrics, Elsevier, vol. 228(2), pages 221-243.
    10. Padhan, Rakesh & Prabheesh, K.P., 2020. "Business cycle synchronization: Disentangling direct and indirect effect of financial integration in the Indian context," Economic Modelling, Elsevier, vol. 85(C), pages 272-287.
    11. Andres Algaba & David Ardia & Keven Bluteau & Samuel Borms & Kris Boudt, 2020. "Econometrics Meets Sentiment: An Overview Of Methodology And Applications," Journal of Economic Surveys, Wiley Blackwell, vol. 34(3), pages 512-547, July.
    12. Urbina, Jilber, 2014. "Producto Potencial y Brecha del Producto en Nicaragua [Potential output and output gap in Nicaragua]," MPRA Paper 75592, University Library of Munich, Germany, revised Dec 2015.
    13. Peter C. B. Phillips & Zhentao Shi, 2021. "Boosting: Why You Can Use The Hp Filter," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 62(2), pages 521-570, May.
    14. Peter C.B. Phillips & Zhentao Shi, 2019. "Boosting the Hodrick-Prescott Filter," Cowles Foundation Discussion Papers 2192, Cowles Foundation for Research in Economics, Yale University.
    15. Conti, Antonio M., 2021. "Resurrecting the Phillips Curve in Low-Inflation Times," Economic Modelling, Elsevier, vol. 96(C), pages 172-195.
    16. Anesti, Nikoleta & Kalamara, Eleni & Kapetanios, George, 2021. "Forecasting UK GDP growth with large survey panels," Bank of England working papers 923, Bank of England.
    17. Roberto Iannaccone & Edoardo Otranto, 2003. "Signal Extraction in Continuous Time and the Generalized Hodrick- Prescott Filter," Econometrics 0311002, University Library of Munich, Germany.
    18. Galimberti, Jaqueson K. & Moura, Marcelo L., 2016. "Improving the reliability of real-time output gap estimates using survey forecasts," International Journal of Forecasting, Elsevier, vol. 32(2), pages 358-373.
    19. Álvarez, Luis J. & Gómez-Loscos, Ana, 2018. "A menu on output gap estimation methods," Journal of Policy Modeling, Elsevier, vol. 40(4), pages 827-850.
    20. Jean-Charles Bricongne & Baptiste Meunier & Raquel Caldeira, 2024. "Should Central Banks Care About Text Mining? A Literature Review," Working papers 950, Banque de France.

    More about this item

    JEL classification:

    • G1 - Financial Economics - - General Financial Markets
    • G21 - Financial Economics - - Financial Institutions and Services - - - Banks; Other Depository Institutions; Micro Finance Institutions; Mortgages
    • G41 - Financial Economics - - Behavioral Finance - - - Role and Effects of Psychological, Emotional, Social, and Cognitive Factors on Decision Making in 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:bdm:wpaper:2021-04. 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: Subgerencia de desarrollo de sistemas (email available below). General contact details of provider: https://edirc.repec.org/data/bangvmx.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.