RDP 2016-08: The Slowdown in US Productivity Growth: Breaks and Beliefs Appendix E: The Posterior Sampler

To simulate from the joint posterior of the structural parameters and the date breaks, Inline Equation, we use the Metropolis-Hastings algorithm following a strategy similar to Kulish et al (2014). As we have continuous and discrete parameters we modify the standard set-up for Bayesian estimation of DSGE models. We separate the parameters into two blocks: date breaks and structural parameters. To be clear, though, the sampler delivers draws from the joint posterior of both sets of parameters.

The first block of the sampler is for the date breaks, T. As is common in the literature on structural breaks (Bai and Perron 1998), we restrict the domain of the date breaks to exclude the first and last 5 per cent of observations. Within the feasible range, we draw from a uniform proposal density and randomise which particular date break in T to update. This approach is motivated by the randomised blocking scheme developed for DSGE models in Chib and Ramamurthy (2010).

The algorithm for drawing for the date breaks block is as follows: We first set initial values of the date breaks, T0, and the structural parameters, ϑ0. Then, for the jth iteration we:

  1. randomly sample which date breaks to update from a discrete uniform distribution, with support ranging from one to the total number of breaks. For our preferred model this is two.
  2. randomly sample the corresponding elements of the proposed date breaks, Inline Equation, from a discrete uniform distribution [Tmin, Tmax] and set the remaining elements to their values in Tj − 1.
  3. calculate the acceptance ratio Inline Equation.
  4. accept the proposal with probability Inline Equation setting Inline Equation, or Tj − 1 otherwise.

The second block of the sampler is for the nϑ structural parameters. It follows a similar strategy to the date breaks block described above. We randomise over the number and which parameters to possibly update at each iteration. The proposal is a multivariate Student's t distribution.[16] Once again, for the jth iteration we proceed as follows.

  1. Randomly sample the number of structural parameters to update from a discrete uniform distribution Inline Equation.
  2. Randomly sample without replacement which parameters to update from a discrete uniform distribution Inline Equation.
  3. Construct the proposed Inline Equation by drawing the parameters to update from a multivariate Student's t-distribution with 10 degrees of freedom and with location set at the corresponding elements of θj − 1. We scale the draws based on the corresponding elements of the negative inverse Hessian at the posterior mode.
  4. Calculate the acceptance ratio Inline Equation. We set Inline Equation if the proposed Inline Equation includes inadmissible values (e.g. a proposed negative value for the standard deviation of a shock) preventing the calculation of Inline Equation.
  5. Accept the proposal with probability Inline Equation setting Inline Equation, or Inline Equation otherwise.

We use this multi-block algorithm to construct a chain of 500,000 draws from the joint posterior Inline Equation, discarding the first 25 per cent as burn-in.

Footnote

We compute the Hessian of the proposal density at the mode of the structural parameters. [16]