Category Archives: Computational Methods

Piecewise Linear Approximations and Filtering for DSGE Models with Occasionally-Binding Constraints

(with Pablo Cuba-Borda, Kenji Higa-Flores, Frank Schorfheide, Sergio Villalvazo)

Published in Review of Economic Dynamics, July 2021, 41, 96-120.

We develop an algorithm to construct approximate decision rules that are piecewise-

linear and continuous for DSGE models with an occasionally binding constraint. The functional form of the decision rules allows us to derive a conditionally optimal particle filter (COPF) for the evaluation of the likelihood function that exploits the structure of the solution. We document the accuracy of the likelihood approximation and embed it into a particle Markov chain Monte Carlo algorithm to conduct Bayesian estimation. Compared with a standard bootstrap particle filter, the COPF significantly reduces the persistence of the Markov chain, improves the accuracy of Monte Carlo approximations of posterior moments, and drastically speeds up computations. We use the techniques to estimate a small-scale DSGE model to assess the effects of the government spending portion of the American Recovery and Reinvestment Act in 2009 when interest rates reached the zero lower bound.

First Draft : January 2019


Most Recent Working Paper [January 2021]

NBER Working Paper 27991 [October 2020]

Published Version (requires subscription)

Additional Materials

Replication Files: NK DSGE Model

Replication Files: Consumption-Savings Model

Comparing Solution Methods for Dynamic Equilibrium Economies

(with Jesus Fernandez-Villaverde and Juan F. Rubio-Ramirez)

Published in Journal of Economic Dynamics and Control, December 2006, 30(12), 2477-2508.

This paper compares solution methods for dynamic equilibrium economies. We compute and simulate the stochastic neoclassical growth model with leisure choice using first, second, and fifth order perturbations in levels and in logs, the finite elements method, Chebyshev polynomials, and value function iteration for several calibrations. We document the performance of the methods in terms of computing time, implementation complexity, and accuracy, and we present some conclusions based on the reported evidence.


Most Recent Working Paper (may not be identical to the published version)

Published Version (requires subscription)

Additional Materials

Companion Webpage (includes codes and an extended working paper)