Differentiable Statespace Models and Hamiltonian Monte Carlo Estimation

Working Paper: CEPR ID: DP17576

Authors: David Childers; Jesus Fernandez-Villaverde; Jesse Perla; Chris Rackauckas; Peifan Wu

Abstract: We propose a methodology to take dynamic stochastic general equilibrium (DSGE) models to the data based on the combination of differentiable state-space models and the Hamiltonian Monte Carlo (HMC) sampler. First, we introduce a method for implicit automatic differentiation of perturbation solutions of DSGE models with respect to the model's parameters. We can use the resulting output for various tasks requiring gradients, such as building an HMC sampler, to estimate first- and second-order approximations of DSGE models. The availability of derivatives also enables a general filter-free method to estimate nonlinear, non-Gaussian DSGE models by sampling the joint likelihood of parameters and latent states. We show that the gradient-based joint likelihood sampling approach is superior in efficiency and robustness to standard Metropolis-Hastings samplers by estimating a canonical real business cycle model, a real small open economy model, and a medium-scale New Keynesian DSGE model.

Keywords: No keywords provided

JEL Codes: C10; C11; E10


Causal Claims Network Graph

Edges that are evidenced by causal inference methods are in orange, and the rest are in light blue.


Causal Claims

CauseEffect
HMC (I11)sampling efficiency (C83)
HMC (I11)effective sample sizes (C83)
HMC (I11)robustness to initial conditions (C62)
HMC (I11)estimation accuracy (C13)
HMC (I11)likelihood estimation process (C51)
HMC (I11)joint likelihood sampling (C46)
HMC (I11)filtering methods (C38)
HMC (I11)comparison with RWMH (C59)

Back to index