IDEAS home Printed from https://ideas.repec.org/a/rfa/aefjnl/v10y2023i1p1023.html
   My bibliography  Save this article

Sentiment Analysis on Inflation after COVID-19

Author

Listed:
  • Xinyu Li
  • Zihan Tang

Abstract

We implement traditional machine learning and deep learning methods for global tweets from 2017-2022 to build a high-frequency measure of the public’s sentiment index on inflation and analyze its correlation with other online data sources such as google trend and market-oriented inflation index. We use manually labeled trigrams to test the prediction performance of several machine learning models (logistic regression, random forest etc.) and choose Bert model for final demonstration. Then, we sum daily tweets’ sentiment scores gained from Bert model to obtain the predicted inflation sentiment index, and we further analyze the regional and pre/post covid patterns of these inflation indexes. Lastly, we take other empirical inflation-related data as references and prove that twitter-based inflation sentiment analysis method has an outstanding capability to predict inflation. The results suggest that Twitter combined with deep learning methods can be a novel and timely method to utilize existing abundant data sources on inflation expectations and provide daily indicators of consumers’ perception on inflation.

Suggested Citation

  • 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.
  • Handle: RePEc:rfa:aefjnl:v:10:y:2023:i:1:p:1023
    as

    Download full text from publisher

    File URL: https://redfame.com/journal/index.php/aef/article/download/5821/5943
    Download Restriction: no

    File URL: https://redfame.com/journal/index.php/aef/article/view/5821
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Angelico, Cristina & Marcucci, Juri & Miccoli, Marcello & Quarta, Filippo, 2022. "Can we measure inflation expectations using Twitter?," Journal of Econometrics, Elsevier, vol. 228(2), pages 259-277.
    Full references (including those not matched with items on IDEAS)

    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. Xinyu Li & Zihan Tang, 2022. "Sentiment Analysis on Inflation after Covid-19," Papers 2209.14737, arXiv.org, revised Dec 2022.
    2. 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.
    3. Travis Adams & Andrea Ajello & Diego Silva & Francisco Vazquez-Grande, 2023. "More than Words: Twitter Chatter and Financial Market Sentiment," Papers 2305.16164, arXiv.org.
    4. 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.
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    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. Ajit Desai, 2023. "Machine Learning for Economics Research: When What and How?," Papers 2304.00086, arXiv.org, revised Apr 2023.
    11. 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).
    12. Lin Chen & Stephanie Houle, 2023. "Turning Words into Numbers: Measuring News Media Coverage of Shortages," Discussion Papers 2023-8, Bank of Canada.
    13. 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.
    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. 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.
    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. 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.
    18. 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.
    19. 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.
    20. 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.

    More about this item

    JEL classification:

    • R00 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General - - - General
    • Z0 - Other Special Topics - - General

    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:rfa:aefjnl:v:10:y:2023:i:1:p:1023. 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: Redfame publishing (email available below). General contact details of provider: https://edirc.repec.org/data/cepflch.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.