IDEAS home Printed from https://ideas.repec.org/p/bdi/wptemi/td_1318_21.html
   My bibliography  Save this paper

Can we measure inflation expectations using Twitter?

Author

Listed:
  • Cristina Angelico

    (Bank of Italy)

  • Juri Marcucci

    (Bank of Italy)

  • Marcello Miccoli

    (International Monetary Fund)

  • Filippo Quarta

    (Bank of Italy)

Abstract

Using Italian data from Twitter, we employ textual data and machine learning techniques to build new real-time measures of consumers' inflation expectations. First, we select some relevant keywords to identify tweets related to prices and expectations thereof. Second, we build a set of daily measures of inflation expectations on the selected tweets combining the Latent Dirichlet Allocation (LDA) with a dictionary-based approach, using manually labelled bi-grams and tri-grams. Finally, we show that the Twitter-based indicators are highly correlated with both monthly survey-based and daily market-based inflation expectations. Our new indicators provide additional information beyond the market-based expectations, the professional forecasts, and the realized inflation, and anticipate consumers' expectations proving to be a good real-time proxy. Results suggest that Twitter can be a new timely source to elicit beliefs.

Suggested Citation

  • Cristina Angelico & Juri Marcucci & Marcello Miccoli & Filippo Quarta, 2021. "Can we measure inflation expectations using Twitter?," Temi di discussione (Economic working papers) 1318, Bank of Italy, Economic Research and International Relations Area.
  • Handle: RePEc:bdi:wptemi:td_1318_21
    as

    Download full text from publisher

    File URL: https://www.bancaditalia.it/pubblicazioni/temi-discussione/2021/2021-1318/en_tema_1318.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Dolan Antenucci & Michael Cafarella & Margaret Levenstein & Christopher Ré & Matthew D. Shapiro, 2014. "Using Social Media to Measure Labor Market Flows," NBER Working Papers 20010, National Bureau of Economic Research, Inc.
    2. Mao, Huina & Counts, Scott & Bollen, Johan, 2015. "Quantifying the effects of online bullishness on international financial markets," Statistics Paper Series 09, European Central Bank.
    3. 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.
    4. Jiao, Peiran & Veiga, André & Walther, Ansgar, 2020. "Social media, news media and the stock market," Journal of Economic Behavior & Organization, Elsevier, vol. 176(C), pages 63-90.
    5. Joseph Haubrich & George Pennacchi & Peter Ritchken, 2012. "Inflation Expectations, Real Rates, and Risk Premia: Evidence from Inflation Swaps," The Review of Financial Studies, Society for Financial Studies, vol. 25(5), pages 1588-1629.
    6. Christopher D. Carroll, 2003. "Macroeconomic Expectations of Households and Professional Forecasters," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 118(1), pages 269-298.
    7. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    8. Casiraghi, Marco & Miccoli, Marcello, 2019. "Inflation risk premia and risk-adjusted expectations of inflation," Economics Letters, Elsevier, vol. 175(C), pages 36-39.
    9. Francesca Modena & Giulia Martina Tanzi & Santiago Pereda Fernandez, 2020. "On the design of grant assignment rules," Temi di discussione (Economic working papers) 1307, Bank of Italy, Economic Research and International Relations Area.
    10. Refet S. Gürkaynak & Brian Sack & Jonathan H. Wright, 2010. "The TIPS Yield Curve and Inflation Compensation," American Economic Journal: Macroeconomics, American Economic Association, vol. 2(1), pages 70-92, January.
    11. Mao, Huina & Counts, Scott & Bollen, Johan, 2015. "Quantifying the effects of online bullishness on international financial markets," Statistics Paper Series 9, European Central Bank.
    12. Hailiang Chen & Prabuddha De & Yu (Jeffrey) Hu & Byoung-Hyoun Hwang, 2014. "Wisdom of Crowds: The Value of Stock Opinions Transmitted Through Social Media," Review of Financial Studies, Society for Financial Studies, vol. 27(5), pages 1367-1403.
    Full references (including those not matched with items on IDEAS)

    Citations

    Blog mentions

    As found by EconAcademics.org, the blog aggregator for Economics research:
    1. New indicators of perceived inflation in France based on media data
      by raphael.moncomble in Eco Notepad on 2022-12-26 14:31:41

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Aprigliano, Valentina & Emiliozzi, Simone & Guaitoli, Gabriele & Luciani, Andrea & Marcucci, Juri & Monteforte, Libero, 2023. "The power of text-based indicators in forecasting Italian economic activity," International Journal of Forecasting, Elsevier, vol. 39(2), pages 791-808.
    2. Donato Masciandaro & Davide Romelli & Gaia Rubera, 2021. "Monetary policy, Twitter and financial markets: evidence from social media traffic," BAFFI CAREFIN Working Papers 21160, BAFFI CAREFIN, Centre for Applied Research on International Markets Banking Finance and Regulation, Universita' Bocconi, Milano, Italy.
    3. Xinyu Li & Zihan Tang, 2022. "Sentiment Analysis on Inflation after Covid-19," Papers 2209.14737, arXiv.org, revised Dec 2022.
    4. Mary Chen & Matthew DeHaven & Isabel Kitschelt & Seung Jung Lee & Martin J. Sicilian, 2023. "Identifying Financial Crises Using Machine Learning on Textual Data," JRFM, MDPI, vol. 16(3), pages 1-28, March.
    5. Marc-André Gosselin & Temel Taskin, 2023. "What Can Earnings Calls Tell Us About the Output Gap and Inflation in Canada?," Discussion Papers 2023-13, Bank of Canada.
    6. Travis Adams & Andrea Ajello & Diego Silva & Francisco Vazquez-Grande, 2023. "More than Words: Twitter Chatter and Financial Market Sentiment," Papers 2305.16164, arXiv.org.
    7. Donato Masciandaro & Davide Romelli & Gaia Rubera, 2021. "Monetary policy and financial markets: evidence from Twitter traffic," BAFFI CAREFIN Working Papers 21160, BAFFI CAREFIN, Centre for Applied Research on International Markets Banking Finance and Regulation, Universita' Bocconi, Milano, Italy.
    8. Jouchi Nakajima & Hiroaki Yamagata & Tatsushi Okuda & Shinnosuke Katsuki & Takeshi Shinohara, 2021. "Extracting Firms' Short-Term Inflation Expectations from the Economy Watchers Survey Using Text Analysis," Bank of Japan Working Paper Series 21-E-12, Bank of Japan.
    9. Tetiana Yukhymenko, 2021. "Role of the Media in the Inflation Expectation Formation Process," IHEID Working Papers 13-2021, Economics Section, The Graduate Institute of International Studies.
    10. Swapnil Virendra Chalwadi & Preeti Tushar Joshi & Nitin Mohanlal Sharma & Chaitanya Gite & Sangita Salve, 2023. "Gender Differences in Inflation Expectations: Recent Evidence from India," Administrative Sciences, MDPI, vol. 13(2), pages 1-14, February.
    11. Massimiliano Marcellino & Dalibor Stevanovic, 2022. "The demand and supply of information about inflation," Working Papers 22-06, Chair in macroeconomics and forecasting, University of Quebec in Montreal's School of Management, revised Nov 2022.
    12. Vivian Chu & Tatjana Dahlhaus & Christopher Hajzler & Pierre-Yves Yanni, 2023. "Digitalization: Implications for Monetary Policy," Discussion Papers 2023-18, Bank of Canada.
    13. J. Daniel Aromí & Martín Llada, 2024. "Are professional forecasters inattentive to public discussions? The case of inflation in Argentina," Working Papers 300, Red Nacional de Investigadores en Economía (RedNIE).
    14. Andrea Ajello & Diego Silva & Travis Adams & Francisco Vazquez-Grande, 2023. "More than Words: Twitter Chatter and Financial Market Sentiment," Finance and Economics Discussion Series 2023-034, Board of Governors of the Federal Reserve System (U.S.).
    15. Cafferata, Alessia & Cerruti, Gianluca & Mazzone, Giulio, 2022. "Taxation, health system endowment and quality of institutions: a "social" perception across Europe," MPRA Paper 112118, University Library of Munich, Germany.
    16. Mary Chen & Matthew DeHaven & Isabel Kitschelt & Seung Jung Lee & Martin Sicilian, 2023. "Identifying Financial Crises Using Machine Learning on Textual Data," International Finance Discussion Papers 1374, Board of Governors of the Federal Reserve System (U.S.).
    17. Valentina Aprigliano & Guerino Ardizzi & Alessia Cassetta & Alessandro Cavallero & Simone Emiliozzi & Alessandro Gambini & Nazzareno Renzi & Roberta Zizza, 2021. "Exploiting payments to track Italian economic activity: the experience at Banca d’Italia," Questioni di Economia e Finanza (Occasional Papers) 609, Bank of Italy, Economic Research and International Relations Area.
    18. Lin Chen & Stephanie Houle, 2023. "Turning Words into Numbers: Measuring News Media Coverage of Shortages," Discussion Papers 2023-8, Bank of Canada.
    19. Petrova, Diana, 2022. "Assessment of inflation expectations based on internet data," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 66, pages 25-38.
    20. Xinyu Li & Zihan Tang, 2023. "Sentiment Analysis on Inflation after COVID-19," Applied Economics and Finance, Redfame publishing, vol. 10(1), pages 1023-1023, February.
    21. Helena Chuliá & Sabuhi Khalili & Jorge M. Uribe, 2024. "Monitoring time-varying systemic risk in sovereign debt and currency markets with generative AI," IREA Working Papers 202402, University of Barcelona, Research Institute of Applied Economics, revised Feb 2024.
    22. Ajit Desai, 2023. "Machine learning for economics research: when, what and how," Staff Analytical Notes 2023-16, Bank of Canada.
    23. De Bandt Olivier & Bricongne Jean-Charles & Denes Julien & Dhenin Alexandre & De Gaye Annabelle & Robert Pierre-Antoine, 2023. "Using the Press to Construct a New Indicator of Inflation Perceptions in France," Working papers 921, Banque de France.
    24. Valerio Astuti & Marta Crispino & Marco Langiulli & Juri Marcucci, 2022. "Textual analysis of a Twitter corpus during the COVID-19 pandemics," Questioni di Economia e Finanza (Occasional Papers) 692, Bank of Italy, Economic Research and International Relations Area.
    25. Giulio Gariano & Gianluca Viggiano, 2022. "Press news and social media in credit risk assessment: the experience of Banca d’Italia’s In-house Credit Assessment System," Temi di discussione (Economic working papers) 24, Bank of Italy, Economic Research and International Relations Area.

    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. Berge, Travis J., 2018. "Understanding survey-based inflation expectations," International Journal of Forecasting, Elsevier, vol. 34(4), pages 788-801.
    2. James Mitchell & Saeed Zaman, 2023. "The Distributional Predictive Content of Measures of Inflation Expectations," Working Papers 23-31, Federal Reserve Bank of Cleveland.
    3. Jon Ellingsen & Vegard H. Larsen & Leif Anders Thorsrud, 2020. "News Media vs. FRED-MD for Macroeconomic Forecasting," CESifo Working Paper Series 8639, CESifo.
    4. Jon Ellingsen & Vegard H. Larsen & Leif Anders Thorsrud, 2022. "News media versus FRED‐MD for macroeconomic forecasting," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(1), pages 63-81, January.
    5. Berardi, Andrea & Plazzi, Alberto, 2022. "Dissecting the yield curve: The international evidence," Journal of Banking & Finance, Elsevier, vol. 134(C).
    6. Shah, Syed Faisal & Albaity, Mohamed, 2022. "The role of trust, investor sentiment, and uncertainty on bank stock return performance: Evidence from the MENA region," The Journal of Economic Asymmetries, Elsevier, vol. 26(C).
    7. Gaus, Eric & Sinha, Arunima, 2018. "What does the yield curve imply about investor expectations?," Journal of Macroeconomics, Elsevier, vol. 57(C), pages 248-265.
    8. Aparicio, Diego & Bertolotto, Manuel I., 2020. "Forecasting inflation with online prices," International Journal of Forecasting, Elsevier, vol. 36(2), pages 232-247.
    9. Andrew B. Martinez, 2020. "Extracting Information from Different Expectations," Working Papers 2020-008, The George Washington University, Department of Economics, H. O. Stekler Research Program on Forecasting.
    10. Florian Röder & Andreas Walter, 2019. "What Drives Investment Flows Into Social Trading Portfolios?," Journal of Financial Research, Southern Finance Association;Southwestern Finance Association, vol. 42(2), pages 383-411, July.
    11. Gholampour, Vahid, 2019. "Daily expectations of returns index," Journal of Empirical Finance, Elsevier, vol. 54(C), pages 236-252.
    12. Perico Ortiz, Daniel, 2023. "Inflation news coverage, expectations and risk premium," FAU Discussion Papers in Economics 05/2023, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    13. Kitsul, Yuriy & Wright, Jonathan H., 2013. "The economics of options-implied inflation probability density functions," Journal of Financial Economics, Elsevier, vol. 110(3), pages 696-711.
    14. Gabriel Arce‐Alfaro & Boris Blagov, 2023. "Monetary Policy Uncertainty and Inflation Expectations," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 85(1), pages 70-94, February.
    15. Leif Anders Thorsrud, 2016. "Nowcasting using news topics Big Data versus big bank," Working Papers No 6/2016, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    16. Larsen, Vegard H. & Thorsrud, Leif Anders & Zhulanova, Julia, 2021. "News-driven inflation expectations and information rigidities," Journal of Monetary Economics, Elsevier, vol. 117(C), pages 507-520.
    17. Baumeister, Christiane, 2021. "Measuring Market Expectations," CEPR Discussion Papers 16520, C.E.P.R. Discussion Papers.
    18. Carlson, Kyle, 2015. "Fear itself: The effects of distressing economic news on birth outcomes," Journal of Health Economics, Elsevier, vol. 41(C), pages 117-132.
    19. Cornand, Camille & Hubert, Paul, 2020. "On the external validity of experimental inflation forecasts: A comparison with five categories of field expectations," Journal of Economic Dynamics and Control, Elsevier, vol. 110(C).
    20. Hung, Kuo-Che & Ma, Tai, 2017. "The effects of expectations-based monetary policy on international stock markets: An application of heterogeneous agent model," International Review of Economics & Finance, Elsevier, vol. 47(C), pages 70-87.

    More about this item

    Keywords

    inflation expectations; Twitter data; text mining; big data; survey-based measures; market-based measures; forecasting;
    All these keywords.

    JEL classification:

    • E31 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Price Level; Inflation; Deflation
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C55 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Large Data Sets: Modeling and Analysis
    • D84 - Microeconomics - - Information, Knowledge, and Uncertainty - - - Expectations; Speculations
    • E58 - Macroeconomics and Monetary Economics - - Monetary Policy, Central Banking, and the Supply of Money and Credit - - - Central Banks and Their Policies

    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:bdi:wptemi:td_1318_21. 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: the person in charge (email available below). General contact details of provider: https://edirc.repec.org/data/bdigvit.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.