Please use this identifier to cite or link to this item: https://hdl.handle.net/10419/240713 
Year of Publication: 
2021
Series/Report no.: 
Working Papers No. 2021-04
Publisher: 
Banco de México, Ciudad de México
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.
Subjects: 
Sentiment analysis
systemic risk
banks
JEL: 
G1
G21
G41
Document Type: 
Working Paper
Appears in Collections:

Files in This Item:
File
Size





Items in EconStor are protected by copyright, with all rights reserved, unless otherwise indicated.