IDEAS home Printed from https://ideas.repec.org/p/ecb/ecbwps/20263191.html

A least-squares filter for sequence-space models

Author

Listed:
  • Rigato, Rodolfo Dinis

Abstract

Sequence-space models are becoming increasingly popular in macroeconomics, especially in the heterogeneous-agent literature. However, the econometric toolkit for users of these models remains less developed than that available for traditional state-space methods. This note introduces an algorithm for efficiently filtering unobserved shocks in linear sequence-space models. The proposed filter solves a least-squares optimization problem in closed form and returns the expectation of unobserved shocks conditional on observed data. It handles heteroskedasticity, missing observations, measurement error, and non- Gaussian shock distributions. To illustrate its properties, I apply it to data simulated from a medium-scale heterogeneous-agent New Keynesian model and show that it accurately recovers the underlying structural shocks. JEL Classification: C32, E27, E32, E37

Suggested Citation

  • Rigato, Rodolfo Dinis, 2026. "A least-squares filter for sequence-space models," Working Paper Series 3191, European Central Bank.
  • Handle: RePEc:ecb:ecbwps:20263191
    as

    Download full text from publisher

    File URL: https://www.ecb.europa.eu//pub/pdf/scpwps/ecb.wp3191~8bac225c62.en.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Fernández-Villaverde, J. & Rubio-Ramírez, J.F. & Schorfheide, F., 2016. "Solution and Estimation Methods for DSGE Models," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 527-724, Elsevier.
    2. Frank Smets & Rafael Wouters, 2007. "Shocks and Frictions in US Business Cycles: A Bayesian DSGE Approach," American Economic Review, American Economic Association, vol. 97(3), pages 586-606, June.
    3. Boppart, Timo & Krusell, Per & Mitman, Kurt, 2018. "Exploiting MIT shocks in heterogeneous-agent economies: the impulse response as a numerical derivative," Journal of Economic Dynamics and Control, Elsevier, vol. 89(C), pages 68-92.
    4. Thomas Winberry, 2018. "A method for solving and estimating heterogeneous agent macro models," Quantitative Economics, Econometric Society, vol. 9(3), pages 1123-1151, November.
    5. Kase, Hanno & Rigato, Rodolfo Dinis, 2025. "Beyond averages: heterogeneous effects of monetary policy in a HANK model for the euro area," Working Paper Series 3086, European Central Bank.
    6. SeHyoun Ahn & Greg Kaplan & Benjamin Moll & Thomas Winberry & Christian Wolf, 2018. "When Inequality Matters for Macro and Macro Matters for Inequality," NBER Macroeconomics Annual, University of Chicago Press, vol. 32(1), pages 1-75.
    7. Adrien Auclert & Bence Bardóczy & Matthew Rognlie & Ludwig Straub, 2021. "Using the Sequence‐Space Jacobian to Solve and Estimate Heterogeneous‐Agent Models," Econometrica, Econometric Society, vol. 89(5), pages 2375-2408, September.
    8. Taylor, John B., 1993. "Discretion versus policy rules in practice," Carnegie-Rochester Conference Series on Public Policy, Elsevier, vol. 39(1), pages 195-214, December.
    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. Adrien Auclert & Bence Bardóczy & Matthew Rognlie & Ludwig Straub, 2021. "Using the Sequence‐Space Jacobian to Solve and Estimate Heterogeneous‐Agent Models," Econometrica, Econometric Society, vol. 89(5), pages 2375-2408, September.
    2. Papp, Tamás K. & Reiter, Michael, 2020. "Estimating linearized heterogeneous agent models using panel data," Journal of Economic Dynamics and Control, Elsevier, vol. 115(C).
    3. Boehl, Gregor, 2025. "HANK on speed: Robust nonlinear solutions using automatic differentiation," Journal of Economic Theory, Elsevier, vol. 230(C).
    4. Alisdair McKay & Christian K. Wolf, 2023. "What Can Time‐Series Regressions Tell Us About Policy Counterfactuals?," Econometrica, Econometric Society, vol. 91(5), pages 1695-1725, September.
    5. Nils M. Gornemann & Keith Kuester & Makoto Nakajima, 2021. "Doves for the Rich, Hawks for the Poor? Distributional Consequences of Systematic Monetary Policy," Opportunity and Inclusive Growth Institute Working Papers 50, Federal Reserve Bank of Minneapolis.
    6. Christian Bayer & Benjamin Born & Ralph Luetticke, 2024. "Shocks, Frictions, and Inequality in US Business Cycles," American Economic Review, American Economic Association, vol. 114(5), pages 1211-1247, May.
    7. Darracq Pariès, Matthieu & Notarpietro, Alessandro & Kilponen, Juha & Papadopoulou, Niki & Zimic, Srečko & Aldama, Pierre & Langenus, Geert & Alvarez, Luis Julian & Lemoine, Matthieu & Angelini, Elena, 2021. "Review of macroeconomic modelling in the Eurosystem: current practices and scope for improvement," Occasional Paper Series 267, European Central Bank.
    8. Cameron Fen, 2022. "Fast Simulation-Based Bayesian Estimation of Heterogeneous and Representative Agent Models using Normalizing Flow Neural Networks," Papers 2203.06537, arXiv.org.
    9. Man Chon Iao & Yatheesan J. Selvakumar, 2024. "Estimating HANK with Micro Data," Papers 2402.11379, arXiv.org.
    10. Felipe Alves & Christian Bustamante & Xing Guo & Katya Kartashova & Soyoung Lee & Thomas Michael Pugh & Kurt See & Yaz Terajima & Alexander Ueberfeldt, 2022. "Heterogeneity and Monetary Policy: A Thematic Review," Discussion Papers 2022-2, Bank of Canada.
    11. Lee, Hanbaek, 2022. "Repeated Transition Method and the Nonlinear Business Cycle with the Corporate Saving Glut," MPRA Paper 115887, University Library of Munich, Germany.
    12. Jesús Fernández-Villaverde & Galo Nuño & Jesse Perla, 2024. "Taming the Curse of Dimensionality: Quantitative Economics with Deep Learning," NBER Working Papers 33117, National Bureau of Economic Research, Inc.
    13. François Le Grand & Xavier Ragot, 2022. "Managing Inequality Over Business Cycles: Optimal Policies With Heterogeneous Agents And Aggregate Shocks," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(1), pages 511-540, February.
    14. Kase, Hanno & Melosi, Leonardo & Rottner, Matthias, 2022. "Estimating Nonlinear Heterogeneous Agents Models with Neural Networks," CEPR Discussion Papers 17391, C.E.P.R. Discussion Papers.
    15. Jiequn Han & Yucheng Yang & Weinan E, 2021. "DeepHAM: A Global Solution Method for Heterogeneous Agent Models with Aggregate Shocks," Papers 2112.14377, arXiv.org, revised Feb 2022.
    16. Marcelo Veracierto, 2020. "Computing Equilibria of Stochastic Heterogeneous Agent Models Using Decision Rule Histories," Working Paper Series WP-2020-05, Federal Reserve Bank of Chicago.
    17. Emmet Hall-Hoffarth, 2022. "Causal Discovery of Macroeconomic State-Space Models," Papers 2204.02374, arXiv.org.
    18. Jesús Fernández‐Villaverde & Samuel Hurtado & Galo Nuño, 2023. "Financial Frictions and the Wealth Distribution," Econometrica, Econometric Society, vol. 91(3), pages 869-901, May.
    19. Langot, François & Malmberg, Selma & Tripier, Fabien & Hairault, Jean-Olivier, 2023. "The Macroeconomic and Redistributive Effects of Shielding Consumers from Rising Energy Prices: the French Experiment," CEPREMAP Working Papers (Docweb) 2305, CEPREMAP.
    20. Nobuhide Okahata, 2019. "An Alternative Solution Method for Continuous-Time Heterogeneous Agent Models with Aggregate Shocks," 2019 Meeting Papers 1470, Society for Economic Dynamics.

    More about this item

    Keywords

    ;
    ;
    ;

    JEL classification:

    • C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
    • E27 - Macroeconomics and Monetary Economics - - Consumption, Saving, Production, Employment, and Investment - - - Forecasting and Simulation: Models and Applications
    • E32 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Business Fluctuations; Cycles
    • E37 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Forecasting and Simulation: Models and Applications

    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:ecb:ecbwps:20263191. 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: Official Publications (email available below). General contact details of provider: https://edirc.repec.org/data/emieude.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.