IDEAS home Printed from https://ideas.repec.org/a/wly/quante/v15y2024i4p939-970.html

Robust machine learning algorithms for text analysis

Author

Listed:
  • Shikun Ke
  • José Luis Montiel Olea
  • James Nesbit

Abstract

We study the Latent Dirichlet Allocation model, a popular Bayesian algorithm for text analysis. We show that the model's parameters are not identified, which suggests that the choice of prior matters. We characterize the range of values that the posterior mean of a given functional of the model's parameters can attain in response to a change in the prior, and we suggest two algorithms that report this range. Both of our algorithms rely on obtaining multiple Nonnegative Matrix Factorizations of either the posterior draws of the corpus' population term‐document frequency matrix or of its maximum likelihood estimator. The key idea is to maximize/minimize the functional of interest over all these nonnegative matrix factorizations. To illustrate the applicability of our results, we revisit recent work studying the effects of increased transparency on the communication structure of monetary policy discussions in the United States.

Suggested Citation

  • Shikun Ke & José Luis Montiel Olea & James Nesbit, 2024. "Robust machine learning algorithms for text analysis," Quantitative Economics, Econometric Society, vol. 15(4), pages 939-970, November.
  • Handle: RePEc:wly:quante:v:15:y:2024:i:4:p:939-970
    DOI: 10.3982/QE1825
    as

    Download full text from publisher

    File URL: https://doi.org/10.3982/QE1825
    Download Restriction: no

    File URL: https://libkey.io/10.3982/QE1825?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Oriana Bandiera & Andrea Prat & Stephen Hansen & Raffaella Sadun, 2020. "CEO Behavior and Firm Performance," Journal of Political Economy, University of Chicago Press, vol. 128(4), pages 1325-1369.
    2. David M. Blei & Alp Kucukelbir & Jon D. McAuliffe, 2017. "Variational Inference: A Review for Statisticians," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 112(518), pages 859-877, April.
    3. Gustafson, Paul, 2009. "What Are the Limits of Posterior Distributions Arising From Nonidentified Models, and Why Should We Care?," Journal of the American Statistical Association, American Statistical Association, vol. 104(488), pages 1682-1695.
    4. Montiel Olea, José Luis & Nesbit, James, 2021. "(Machine) learning parameter regions," Journal of Econometrics, Elsevier, vol. 222(1), pages 716-744.
    5. EllenE. Meade & David Stasavage, 2008. "Publicity of Debate and the Incentive to Dissent: Evidence from the US Federal Reserve," Economic Journal, Royal Economic Society, vol. 118(528), pages 695-717, April.
    6. Raffaella Giacomini & Toru Kitagawa & Harald Uhlig, 2019. "Estimation Under Ambiguity," CeMMAP working papers CWP24/19, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    7. 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.
    8. 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.
    9. Poirier, Dale J., 1998. "Revising Beliefs In Nonidentified Models," Econometric Theory, Cambridge University Press, vol. 14(4), pages 483-509, August.
    10. Hyungsik Roger Moon & Frank Schorfheide, 2012. "Bayesian and Frequentist Inference in Partially Identified Models," Econometrica, Econometric Society, vol. 80(2), pages 755-782, March.
    11. Rothenberg, Thomas J, 1971. "Identification in Parametric Models," Econometrica, Econometric Society, vol. 39(3), pages 577-591, May.
    12. Zheng Tracy Ke & Minzhe Wang, 2024. "Using SVD for Topic Modeling," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 119(545), pages 434-449, January.
    13. Evan Munro & Serena Ng, 2022. "Latent Dirichlet Analysis of Categorical Survey Responses," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 40(1), pages 256-271, January.
    14. Mueller, Hannes & Rauh, Christopher, 2018. "Reading Between the Lines: Prediction of Political Violence Using Newspaper Text," American Political Science Review, Cambridge University Press, vol. 112(2), pages 358-375, May.
    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. Laura Battaglia & Timothy M. Christensen & Stephen Hansen & Szymon Sacher, 2024. "Inference for regression with variables generated from unstructured data," CeMMAP working papers 10/24, Institute for Fiscal Studies.
    2. Laura Battaglia & Timothy Christensen & Stephen Hansen & Szymon Sacher, 2024. "Inference for Regression with Variables Generated by AI or Machine Learning," Papers 2402.15585, arXiv.org, revised Apr 2025.
    3. Matthew Read, 2023. "Estimating the Effects of Monetary Policy in Australia Using Sign‐restricted Structural Vector Autoregressions," The Economic Record, The Economic Society of Australia, vol. 99(326), pages 329-358, September.
    4. Szymon Sacher & Laura Battaglia & Stephen Hansen, 2021. "Hamiltonian Monte Carlo for Regression with High-Dimensional Categorical Data," Papers 2107.08112, arXiv.org, revised Feb 2024.
    5. Evan Munro & Serena Ng, 2022. "Latent Dirichlet Analysis of Categorical Survey Responses," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 40(1), pages 256-271, January.
    6. Gustafson Paul, 2010. "Bayesian Inference for Partially Identified Models," The International Journal of Biostatistics, De Gruyter, vol. 6(2), pages 1-20, March.
    7. Besley, Timothy & Fetzer, Thiemo & Mueller, Hannes, 2019. "Terror and Tourism: The Economic Consequences of Media Coverage," CAGE Online Working Paper Series 449, Competitive Advantage in the Global Economy (CAGE).
    8. Raffaella Giacomini & Toru Kitagawa, 2021. "Robust Bayesian Inference for Set‐Identified Models," Econometrica, Econometric Society, vol. 89(4), pages 1519-1556, July.
    9. Christiane Baumeister & James D. Hamilton, 2015. "Sign Restrictions, Structural Vector Autoregressions, and Useful Prior Information," Econometrica, Econometric Society, vol. 83(5), pages 1963-1999, September.
    10. Raffaella Giacomini & Toru Kitagawa & Matthew Read, 2021. "Identification and Inference Under Narrative Restrictions," Papers 2102.06456, arXiv.org.
    11. Gafarov, Bulat & Meier, Matthias & Montiel Olea, José Luis, 2018. "Delta-method inference for a class of set-identified SVARs," Journal of Econometrics, Elsevier, vol. 203(2), pages 316-327.
    12. Hubert, Paul & Labondance, Fabien, 2021. "The signaling effects of central bank tone," European Economic Review, Elsevier, vol. 133(C).
    13. Georgiadis, Georgios & Müller, Gernot J. & Schumann, Ben, 2024. "Global risk and the dollar," Journal of Monetary Economics, Elsevier, vol. 144(C).
    14. Giacomini, Raffaella & Kitagawa, Toru & Read, Matthew, 2022. "Robust Bayesian inference in proxy SVARs," Journal of Econometrics, Elsevier, vol. 228(1), pages 107-126.
    15. Timothy Besley & Thiemo Fetzer & Hannes Mueller, 2026. "How Big Is the Media Multiplier? Evidence from Dyadic News Data," The Review of Economics and Statistics, MIT Press, vol. 108(3), pages 696-711, May.
    16. Oscar Calvo-Gonz'alez & Axel Eizmendi & Germ'an Reyes, 2022. "The Shifting Attention of Political Leaders: Evidence from Two Centuries of Presidential Speeches," Papers 2209.00540, arXiv.org, revised Jun 2023.
    17. Evan M. Munro & Serena Ng, 2020. "Latent Dirichlet Analysis of Categorical Survey Expectations," NBER Working Papers 27182, National Bureau of Economic Research, Inc.
    18. Arthur Lewbel, 2019. "The Identification Zoo: Meanings of Identification in Econometrics," Journal of Economic Literature, American Economic Association, vol. 57(4), pages 835-903, December.
    19. Matthew Read, 2026. "Shock-percentile Restrictions for SVARs," RBA Research Discussion Papers rdp2026-01, Reserve Bank of Australia.
    20. Diakonova, Marina & Molina, Luis & Mueller, Hannes & Pérez, Javier J. & Rauh, Christopher, 2024. "The information content of conflict, social unrest and policy uncertainty measures for macroeconomic forecasting," Latin American Journal of Central Banking (previously Monetaria), Elsevier, vol. 5(4).

    More about this item

    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:wly:quante:v:15:y:2024:i:4:p:939-970. 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: Wiley Content Delivery (email available below). General contact details of provider: https://edirc.repec.org/data/essssea.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.