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. Borgioli, Stefano & Gallo, Giampiero M. & Ongari, Chiara, 2024. "Financial returns, sentiment and market volatility. A dynamic assessment," Working Paper Series 2999, European Central Bank.
    2. Maria Saveria Mavillonio, 2024. "Natural Language Processing Techniques for Long Financial Document," Discussion Papers 2024/317, Dipartimento di Economia e Management (DEM), University of Pisa, Pisa, Italy.
    3. Cafferata, Alessia & Cerruti, Gianluca & Mazzone, Giulio, 2023. "Taxation, health system endowment and institutional quality: ‘Social media’ perceptions across Europe," Journal of Economic Behavior & Organization, Elsevier, vol. 215(C), pages 224-243.
    4. 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.
    5. Ajit Desai, 2023. "Machine Learning for Economics Research: When What and How?," Papers 2304.00086, arXiv.org, revised Apr 2023.
    6. Lin Chen & Stephanie Houle, 2023. "Turning Words into Numbers: Measuring News Media Coverage of Shortages," Discussion Papers 2023-8, Bank of Canada.
    7. 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.).
    8. 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.
    9. Vyshnevskyi, Iegor & Jombo, Wytone & Sohn, Wook, 2024. "The clarity of monetary policy communication and financial market volatility in developing economies," Emerging Markets Review, Elsevier, vol. 59(C).
    10. 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.).
    11. 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.
    12. Arndt, Sarah, 2024. "Different Newspapers – Different Inflation Perceptions," Working Papers 0748, University of Heidelberg, Department of Economics.
    13. Etienne Briand & Massimiliano Marcellino & Dalibor Stevanovic, 2025. "Inflation, Attention and Expectations," CIRANO Working Papers 2025s-01, CIRANO.
    14. Chee-Hong Law & Kim Huat Goh, 2024. "A systematic literature review of the implications of media on inflation expectations," International Economics and Economic Policy, Springer, vol. 21(2), pages 311-340, May.
    15. 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.
    16. Olivier De Bandt & Jean-Charles Bricongne & Julien Denes & Alexandre Dhenin & Annabelle De Gaye & Pierre-Antoine Robert, 2023. "Using the Press to Construct a New Indicator of Inflation Perceptions in France," Working papers 921, Banque de France.
    17. J. Daniel Aromí & Martín Llada, 2024. "Are professional forecasters inattentive to public discussions about inflation? The case of Argentina," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(7), pages 2572-2587, November.
    18. Massimiliano Marcellino & Dalibor Stevanovic, 2022. "The demand and supply of information about inflation," CIRANO Working Papers 2022s-27, CIRANO.
    19. 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.
    20. Vivian Chu & Tatjana Dahlhaus & Christopher Hajzler & Pierre-Yves Yanni, 2023. "Digitalization: Implications for Monetary Policy," Discussion Papers 2023-18, Bank of Canada.

    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.