Skip to main content
Log in

Using the “Chandrasekhar Recursions” for Likelihood Evaluation of DSGE Models

  • Published:
Computational Economics Aims and scope Submit manuscript

Abstract

In likelihood-based estimation of linearized Dynamic Stochastic General Equilibrium (DSGE) models, the evaluation of the Kalman Filter dominates the running time of the entire algorithm. In this paper, we revisit a set of simple recursions known as the “Chandrasekhar Recursions” developed by Morf (Fast Algorithms for Multivariate Systems, Ph.D. thesis, Stanford University, 1974) and Morf et al. (IEEE Trans Autom Control 19:315–323, 1974) for evaluating the likelihood of a Linear Gaussian State Space System. We show that DSGE models are ideally suited for the use of these recursions, which work best when the number of states is much greater than the number of observables. In several examples, we show that there are substantial benefits to using the recursions, with likelihood evaluation up to five times faster. This gain is especially pronounced in light of the trivial implementation costs—no model modification is required. Moreover, the algorithm is complementary with other approaches.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Notes

  1. The algorithm proposed by Herbst and Schorfheide (2013) usually involves tens of millions of likelihood evaluation.

  2. It should be clarified here that the term states is given in a statistical context. It should note be confused with partitioning system variables into “states” and “controls” to facilitate solving the DSGE model i.e., finding Eq. (1) (see, for example, Schmitt-Grohé and Uribe 2004). Here \(s_t\) contains all the variables of the model. If a control engineering approach is taken to solve the model, \(s_t\) would contain both the predetermined (exogenous and endogenous) and control variables.

  3. We also preclude stochastic singularity; i.e., the total number of structural shocks and measurement errors must be greater than or equal to the number of observables.

  4. We combine the standard prediction and updating equations because we are trying to avoid unecessary calculations.

  5. Indeed, looking at reduced rank decompositions of \(P_{t|t-1}\) or differences thereof, has a wide literature known as Square Root Kalman Filtering. I present these related recursions because they are much easier to implement.

  6. The results were broadly the same when only serial computation was considered.

  7. We again note that we do not use the Block KF because it is not a DSGE model.

  8. We set the moving average coefficients on the markup shocks and automatic stabilizer on the government spending shock to zero. This way we can use the two block (AR), sparse Block Kalman Filter.

References

  • Adjemian, S., Bastani, H., Juillard, M., Mihoubi, F., Ratto, M., & Villemot, S. (2011). Dynare: Reference Manual, Version 4, Dynare Working Papers 1, CEPREMAP.

  • Aknouche, A., & Hamdi, F. (2007). Periodic Chandrasekhar recursions, arXiv:0711.385v1

  • An, S., & Schorfheide, F. (2007). Bayesian analysis of DSGE models. Econometric Reviews, 26(2–4), 113–172.

    Article  Google Scholar 

  • Chib, S., & Ramamurthy, S. (2010). Tailored randomized block MCMC methods with application to DSGE models. Journal of Econometrics, 155(1), 19–38.

    Article  Google Scholar 

  • Hamilton, J. (1994). Time Series Analysis. Princeton, NJ: Princeton University Press.

    Google Scholar 

  • Herbst, E., & Schorfheide, F. (2013). Sequential Monte Carlo Sampling for DSGE Models, Federal Reserve Bank of Philadelphia Working Paper.

  • Jaimovich, N., & Rebelo, S. (2009). Can news about the future drive the business cycle? American Economic Review, 9(4), 1097–1118.

    Article  Google Scholar 

  • Klein, A., Melard, G., & Zahaf, T. (1998). Computation of the exact information matrix of Gaussian dynamic regression time series models. The Annals of Statistics, 26, 1636–1650.

    Article  Google Scholar 

  • Morf, M. (1974). Fast Algorithms for Multivariate Systems, Ph.D. thesis, Stanford University.

  • Morf, M., Sidhu, G., & Kalaith, T. (1974). Some new algorithms for recursive estimation in constant, linear, discrete-time systems. IEEE Transactions on Automatic Control, 19, 315–323.

    Article  Google Scholar 

  • Schmitt-Grohé, S., & Uribe, M. (2004). Solving dynamic general equilibrium models with a second-order accurate approximate to the policy function. Journal of Economic Dynamics and Conrol, 28, 755–775.

    Article  Google Scholar 

  • Schmitt-Grohé, S., & Uribe, M. (2012). What’s news in business cycles? Econometrica, 80, 2733–2764.

    Article  Google Scholar 

  • Sims, C. A. (2002). Solving linear rational expectations models. Computational Economics, 20, 1–20.

    Article  Google Scholar 

  • Smets, F., & Wouters, R. (2007). Shocks and frictions in US business cycles: A Bayesian DSGE approach. American Economic Review, 97, 586–608.

    Article  Google Scholar 

  • Strid, I., & Walentin, K. (2009). Block Kalman filtering for large-scale DSGE models. Computational Economics, 33, 277–304.

    Article  Google Scholar 

Download references

Acknowledgments

This paper uses material from Chapter 1 of my dissertation at the University of Pennsylvania. I am deeply indebted to my advisor, Frank Schorfheide, for his guidance. I also thank, without implication, participants at the Research Computing Seminar at the Fed Board and John Roberts for comments.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Edward Herbst.

Additional information

Code for this project is available at http://www.edherbst.net.

Appendix

Appendix

1.1 Verification of recursions for \(F_t, K_t, \text{ and } K_{g, t}\).

To show that Chandrasekhar recursions work for the special case discussed above, we show how to write the recursions for \(F_{t}\) and \(K_{t}\) in terms of \(\Delta P_{t|t-1}\). For \(F_t\):

$$\begin{aligned} F_{t}&= ZP_{t|t-1}Z^\prime + H\nonumber \\&= ZP_{t|t-1}Z^\prime + H + F_{t-1} - F_{t-1}\nonumber \\&= F_{t-1} + ZP_{t|t-1}Z^\prime - ZP_{t-1|t-2}Z^\prime \nonumber \\&= F_{t-1} + Z\Delta P_{t|t-1}Z^\prime . \nonumber \end{aligned}$$

\(K_t\) and \(K_{g, t}\) are similar. For \(K_{g, t}\):

$$\begin{aligned} K_{g, t} = (K_{g, t-1}F_{t-1} + T\Delta (P_{t})Z^\prime )F_{t}^{-1}. \end{aligned}$$
(22)

1.2 Verification of the difference equation for \(\Delta P_{t|t-1}\).

Proof of Lemma

From the Kalman Filter, we have that

$$\begin{aligned} P_{t+1|t} = TP_{t|t-1}T^\prime + RQR - K_{g, t}F_{t}K_{g, t}^\prime . \end{aligned}$$

Subtracting \(P_{t|t-1}\) from both sides, we have that

$$\begin{aligned} \Delta P_{t+1|t} = T\Delta P_{t|t-1}T^\prime - K_{g, t}F_{t}K_{g, t}^\prime + K_{g, t-1}F_{t-1}K_{g, t-1}. \end{aligned}$$

Using the recursions for \(F_t\) shown in the previous lemma, we have

$$\begin{aligned} \Delta P_{t+1|t} = T\Delta P_{t|t-1}T^\prime - K_{g, t}(F_{t-1}+Z\Delta P_{t-1|t}Z^\prime )K_{g, t}^\prime + K_{g, t-1}F_{t-1}K_{g, t-1}. \end{aligned}$$

Grouping like terms and completing the square for \((T-K_{g, t}Z)\), we have

$$\begin{aligned} \Delta P_{t+1|t}&= (T\!-\!K_{}{g, t}Z)\Delta P_{t|t-1}(T\!-\!K_{g, t}Z)^\prime \!+\! K_{g, t}Z\Delta P_{t|t-1}T^\prime \!+\! T\Delta P_{t|t-1} Z^\prime K_{g, t}^\prime \nonumber \\&- 2K_{g, t}\Delta P_{t|t-1}K_{g, t}^\prime - K_{g, t}F_{t-1}K_{g, t}^\prime + K_{g, t-1}F_{t-1}K_{g, t-1}^\prime . \end{aligned}$$
(23)

Note that we can write the final product in the equation, using (22), (19), and tediously expanding terms, as,

$$\begin{aligned} K_{g, t-1}F_{t-1}K_{g, t-1}&= (K_{g, t}F_t - T\Delta P_{t|t-1}Z^\prime )F_t^{-1}(K_{g, t}F_t - T\Delta P_{t|t-1}Z^\prime ) \nonumber \\&= (K_{g, t}(F_{t-1} + Z\Delta P_{t|t-1}Z^\prime )-T\Delta P_{t|t-1}Z^\prime )F_{t}^{-1}(K_{g, t}(F_{t-1} \nonumber \\&+ Z\Delta P_{t|t-1}Z^\prime ) T\Delta P_{t|t-1}Z^\prime ) \nonumber \\&= (K_{g, t}F_{t-1} + (K_{g, t}Z - T)\Delta P_{t|t-1}Z^\prime )F_{t-1}^{-1}(K_{g, t}F_{t-1} \nonumber \\&+ (K_{g, t}Z - T)\Delta P_{t|t-1}Z^\prime ) \nonumber \\&= (T - K_{g, t}Z)\Delta P_{t|t-1}Z^\prime F_{t-1}^{-1}Z\Delta P_{t|t-1}(T - K_{g, t}Z) \nonumber \\&+ K_{g, t}F_{t-1}K_{g, t} \nonumber \\&+ K_{g, t}Z\Delta P_{t|t-1}(K_{g, t}Z - T)^\prime +(K_{g, t}Z - T)\Delta P_{t|t-1}Z^\prime K_{g, t}^\prime \nonumber \\&= (T - K_{g, t}Z)\Delta P_{t|t-1}Z^\prime F_{t-1}^{-1}Z\Delta P_{t|t-1}(T - K_{g, t}Z) \nonumber \\&+ K_{g, t}F_{t-1}K_{g, t} \nonumber \\&- K_{g, t}Z\Delta P_{t|t-1}T^\prime - T\Delta P_{t|t-1}Z^\prime K_{g, t}^\prime + 2K_{g, t}\Delta P_{t|t-1}K_{g, t}^\prime .\nonumber \\ \end{aligned}$$
(24)

Combining (23) and (24), we have verified the lemma.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Herbst, E. Using the “Chandrasekhar Recursions” for Likelihood Evaluation of DSGE Models. Comput Econ 45, 693–705 (2015). https://doi.org/10.1007/s10614-014-9430-2

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10614-014-9430-2

Keywords

JEL Classification

Navigation