Research Division Federal Reserve Bank of St. Louis Working Paper Series

Similar documents
Non-Markovian Regime Switching with Endogenous States and Time-Varying State Strengths

Non-Markovian Regime Switching with Endogenous States and Time-Varying State Strengths

Online appendix to On the stability of the excess sensitivity of aggregate consumption growth in the US

The Effects of Monetary Policy on Stock Market Bubbles: Some Evidence

Online Appendix to: Marijuana on Main Street? Estimating Demand in Markets with Limited Access

Timevarying VARs. Wouter J. Den Haan London School of Economics. c Wouter J. Den Haan

Identifying Aggregate Liquidity Shocks with Monetary Policy Shocks: An Application using UK Data

Simulation Smoothing for State-Space Models: A. Computational Efficiency Analysis

Labor-Supply Shifts and Economic Fluctuations. Technical Appendix

DSGE MODELS WITH STUDENT-t ERRORS

This is the author s version of a work that was submitted/accepted for publication in the following source:

Markov-Switching Models with Endogenous Explanatory Variables. Chang-Jin Kim 1

The Kalman filter, Nonlinear filtering, and Markov Chain Monte Carlo

A Comparison of Business Cycle Regime Nowcasting Performance between Real-time and Revised Data. By Arabinda Basistha (West Virginia University)

A Time-Varying Threshold STAR Model of Unemployment

Dynamic Factor Models and Factor Augmented Vector Autoregressions. Lawrence J. Christiano

Monetary and Exchange Rate Policy Under Remittance Fluctuations. Technical Appendix and Additional Results

VAR models with non-gaussian shocks

Working Paper Series

Chapter 6. Maximum Likelihood Analysis of Dynamic Stochastic General Equilibrium (DSGE) Models

State-space Model. Eduardo Rossi University of Pavia. November Rossi State-space Model Fin. Econometrics / 53

X t = a t + r t, (7.1)

State-space Model. Eduardo Rossi University of Pavia. November Rossi State-space Model Financial Econometrics / 49

Switching Regime Estimation

A Fully Nonparametric Modeling Approach to. BNP Binary Regression

Lecture 4: Dynamic models

Markov Chain Monte Carlo

Assessing Structural Convergence between Romanian Economy and Euro Area: A Bayesian Approach

New Information Response Functions

Part I State space models

Latent Variable Models for Binary Data. Suppose that for a given vector of explanatory variables x, the latent

ECO 513 Fall 2009 C. Sims HIDDEN MARKOV CHAIN MODELS

Estimating and Identifying Vector Autoregressions Under Diagonality and Block Exogeneity Restrictions

Statistical Inference and Methods

DSGE Model Forecasting

Business Cycle Comovements in Industrial Subsectors

Paul Karapanagiotidis ECO4060

Multivariate Markov Switching With Weighted Regime Determination: Giving France More Weight than Finland

Discussion of Bootstrap prediction intervals for linear, nonlinear, and nonparametric autoregressions, by Li Pan and Dimitris Politis

Research Division Federal Reserve Bank of St. Louis Working Paper Series

Working Paper Series. An Empirical Investigation of Direct and Iterated Multistep Conditional Forecasts. Michael W. McCracken and Joseph McGillicuddy

Cross-sectional space-time modeling using ARNN(p, n) processes

Binomial Autoregressive Moving Average Models with. an Application to U.S. Recessions

Time Series Analysis for Macroeconomics and Finance

ST 740: Markov Chain Monte Carlo

A Practical Guide to State Space Modeling

Time-Varying Vector Autoregressive Models with Structural Dynamic Factors

Bayesian Inference for DSGE Models. Lawrence J. Christiano

Bayesian Mixed Frequency VAR s

Markov Switching Regular Vine Copulas

Marginal Specifications and a Gaussian Copula Estimation

Estimating Unobservable Inflation Expectations in the New Keynesian Phillips Curve

doi /j. issn % % JOURNAL OF CHONGQING UNIVERSITY Social Science Edition Vol. 22 No.

Constructing a Coincident Index of Business Cycles Without Assuming a One-Factor Model

The Metropolis-Hastings Algorithm. June 8, 2012

Reducing Dimensions in a Large TVP-VAR

SMOOTHIES: A Toolbox for the Exact Nonlinear and Non-Gaussian Kalman Smoother *

Dynamic probabilities of restrictions in state space models: An application to the New Keynesian Phillips Curve

Identifying the Monetary Policy Shock Christiano et al. (1999)

ECO 513 Fall 2008 C.Sims KALMAN FILTER. s t = As t 1 + ε t Measurement equation : y t = Hs t + ν t. u t = r t. u 0 0 t 1 + y t = [ H I ] u t.

Estimating and Accounting for the Output Gap with Large Bayesian Vector Autoregressions

Research Division Federal Reserve Bank of St. Louis Working Paper Series

Estimating Macroeconomic Models: A Likelihood Approach

Working Paper Series. A note on implementing the Durbin and Koopman simulation smoother. No 1867 / November Marek Jarocinski

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

The Price Puzzle: Mixing the Temporary and Permanent Monetary Policy Shocks.

IMPLIED DISTRIBUTIONS IN MULTIPLE CHANGE POINT PROBLEMS

Bayesian Inference for DSGE Models. Lawrence J. Christiano

Bayesian Dynamic Linear Modelling for. Complex Computer Models

Outline. Clustering. Capturing Unobserved Heterogeneity in the Austrian Labor Market Using Finite Mixtures of Markov Chain Models

Combining Macroeconomic Models for Prediction

DDMSVAR for Ox: a Software for Time Series Modeling with Duration Dependent Markov-Switching Vector Autoregressions

Bayesian Monte Carlo Filtering for Stochastic Volatility Models

Generalized Impulse Response Analysis: General or Extreme?

Generalized Autoregressive Score Models

Linear Dynamical Systems

Time Series Modeling with Duration Dependent Markov-Switching Vector Autoregressions: MCMC Inference, Software and Applications

F denotes cumulative density. denotes probability density function; (.)

Point, Interval, and Density Forecast Evaluation of Linear versus Nonlinear DSGE Models

Estimating VAR s Sampled at Mixed or Irregular Spaced Frequencies: A Bayesian Approach

Testing an Autoregressive Structure in Binary Time Series Models

Gaussian kernel GARCH models

Non-Markovian Regime-Switching Models. by Chang-Jin Kim University of Washington and Jaeho Kim 1 University of Oklahoma. March, 2018.

Inference in VARs with Conditional Heteroskedasticity of Unknown Form

Department of Econometrics and Business Statistics

Web Appendix for The Dynamics of Reciprocity, Accountability, and Credibility

Non-homogeneous Markov Mixture of Periodic Autoregressions for the Analysis of Air Pollution in the Lagoon of Venice

Bayesian Inference in GLMs. Frequentists typically base inferences on MLEs, asymptotic confidence

Modeling preference evolution in discrete choice models: A Bayesian state-space approach

ECONOMETRIC REVIEWS, 5(1), (1986) MODELING THE PERSISTENCE OF CONDITIONAL VARIANCES: A COMMENT

A primer on Structural VARs

Cholesky Stochastic Volatility. August 2, Abstract

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING

LARGE TIME-VARYING PARAMETER VARS

Probabilistic Graphical Models

Gibbs Sampling for the Probit Regression Model with Gaussian Markov Random Field Latent Variables

Multivariate Versus Multinomial Probit: When are Binary Decisions Made Separately also Jointly Optimal?

Dynamic Generalized Linear Models

Nonlinear and/or Non-normal Filtering. Jesús Fernández-Villaverde University of Pennsylvania

Generalized Autoregressive Score Smoothers

Transcription:

Research Division Federal Reserve Bank of St Louis Working Paper Series Kalman Filtering with Truncated Normal State Variables for Bayesian Estimation of Macroeconomic Models Michael Dueker Working Paper 25-57B http://researchstlouisfedorg/wp/25/25-57pdf July 25 Revised March 26 FEDERAL RESERVE BANK OF ST LOUIS Research Division PO Box 442 St Louis, MO 63166 The views expressed are those of the individual authors and do not necessarily reflect official positions of the Federal Reserve Bank of St Louis, the Federal Reserve System, or the Board of Governors Federal Reserve Bank of St Louis Working Papers are preliminary materials circulated to stimulate discussion and critical comment References in publications to Federal Reserve Bank of St Louis Working Papers (other than an acknowledgment that the writer has had access to unpublished material) should be cleared with the author or authors

Kalman filtering with truncated normal state variables for Bayesian estimation of macroeconomic models Michael Dueker Federal Reserve Bank of St Louis Abstract A pair of simple modifications in the forecast error and forecast error variance to the Kalman filter recursions makes possible the filtering of models in which one or more state variables is truncated normal and latent Such recursions are broadly applicable to macroeconometric models, such as vector autoregressions and estimated dynamic stochastic general equilibrium models, that have one or more probit-type equation JEL classifications: C32, C35, E37 Key words: Kalman filter, truncated normal, probit model, macroeconometric models The content is the responsibility of the authors and does not represent official positions of the Federal Reserve Bank of St Louis or the Federal Reserve System Address: PO Box 442, St Louis, MO 63166; mdueker@stlsfrborg; ph (314) 725-792; fax (314) 444-8731 1

1 Introduction Multivariate models that contain a probit-type equation are emerging in empirical macroeconomics, such as the Qual VAR of Dueker (25) a vector autoregression that includes an equation that determines a qualitative variable The probit-type equation could be one that includes information on business cycle turning points, or it could be a monetary policy equation that uses data on the central bank s interest rate target that changes by discrete increments Other macroeconomic phenomena also lead to qualitative variables that evolve dynamically, such as currency pegs and central bank exchange-rate interventions Dynamic probits aim to capture both the limited-dependent nature and serial correlation inherent in qualitative time-series variables 1 Until now, however, multivariate macroeconometric models that contain a probit-type equation have relied on single-move sampling techniques, even though multi-move sampling dominates in terms of efficiency and convergence to the joint posterior distribution In single-move Markov Chain Monte Carlo (MCMC) sampling of a vector, z, the density used to draw an element t for iteration i depends on the previous iteration s draws: π(z (i) t {z (i)r } r<t, {z s (i 1) } s>t, Data, parameters) In multi-move sampling, in contrast, the entire vector of z is drawn without reference to 1 The term dynamic probit is also used in some contexts to refer to a model in which the lagged qualitative variable appears as a covariate; see Horowitz (1992) In this case, the presence of the lagged qualitative variable adds persistence but not dynamics in the sense of time-varying expected durations to the qualitative regimes We refer here to dynamic probits as those for which the latent variable governing the qualitative variable is autoregressive and, thereby, displays dynamic behavior Eichengreen et al (1985) is the first example of an autoregressive dynamic probit 1

the last iteration s draws: π({z (i) t } T t=1 Data, parameters) One hallmark feature of MCMC estimation of probit-type models is the sampling of truncated normal latent variables; see Albert and Chib (1993) At the same time, the Kalman filter has seen great use in Bayesian estimation as a tool to derive multi-move sampling distributions, as pioneered by Carter and Kohn (1994), Fruhwirth-Schnatter (1994), Shephard (1994) and De Jong and Shephard (1995) This paper demonstrates that multi-move sampling of truncated normal variables is possible if one modifies the Kalman filter recursions for the case where a state variable is truncated normal To the author s knowledge, this specific modification of the Kalman filter recursions for truncated state variables has not appeared in the literature to date With such a modified Kalman filter, it is possible to extend multi-move MCMC sampling to the Qual VAR model of Dueker (25) and also to extend estimation of dynamic stochastic general equilibrium (DSGE) models to include probit-type features, such as the central bank s discrete target interest rate Dueker and Nelson (26) use a Qual VAR to conduct counterfactual business cycle filtering of macroeconomic data Because many linearized DSGE models take the form of a vector autoregression, subject to coefficient restrictions, the the form of the model we present here covers a wide range of macroeconometric models 2 State-space model and truncation Thus, consider a macroeconometric model written as a p-order vector autoregression, where z is the latent variable that lies behind the qualitative data, z q, and observed macroeconomic time seris, X: 2

p Y t = c Y + Φ (i) Y t i + ɛ t, (1) i=1 where Y t = (X t, z t ) is k 1 and Φ (i) = ( (i) Φ XX Φ (i) zx Φ (i) Xz Φ (i) zz ) A standard state-space representation of the VAR from eq (1) has the following state equation 2 : Y t Y t 1 Y t p+1 = c Y + Φ (1) Φ (2) Φ (p) I I Y t 1 Y t 2 + Y t p ɛ Y,t The measurement equation for the Qual VAR is simply X t = ( I k 1 ) Y t Y t 1 (2) Y t p+1 To achieve multi-move sampling, it is necessary to derive the conditional distribution of the entire vector of the latent variable conditional on the parameter vector, Θ, the observed qualitative data, z q, and the other macroeconomic data, X t : π({z t } T t=1 Θ, {z q t } T t=1, {X t } T t=1) We can summarize the above state-space model (suppressing the constants) as: 2 Macroeconometric models have made great use of the state-space form to take account of latent state variables, eg, Kuttner (1994) 3

X t = HS t S t = F S t 1 + ɛ t (3) The number of rows in the state vector is k and F k denotes row k of F Without loss of generality, assume that z is the last element in the state vector S Because we want to allow for the possiblity that the covariance matrix of ɛ t has non-zero off-diagonal elements, let ɛ t = W η t, where W is an upper-triangular Cholesky decomposition of the covariance matrix Q of ɛ t The truncation from having z q t in category j implies that z t lies in the range (d j, d j+1 ), and this truncation of z will change the mean and variance of the last element of η from the unconditional values of zero and one, respectively The mean of ɛ, conditional on trunction, becomes E[ɛ t+1 zt+1] q = W where we denote α j+1 = W 1 [z t+1 F k S t t + d j+1 ], α j = W 1 [z t+1 F k S t t + d j ] such that a a = φ(α j+1) φ(α j ) Φ(α j+1 ) Φ(α j ), and the variance of ɛ, conditional on truncation, becomes 1 Q = W 1 W, v 4

where v = 1 a 2 α j+1φ(α j+1 ) α j φ(α j ) Φ(α j+1 ) Φ(α j ) 3 Kalman filter recursions The Kalman filter with the truncated state variable proceeeds as follows: 1 Data forecast error (DF E) conditional on z q : y t+1 y t+1 t = y t+1 HF S t t HE[ɛ t+1 z q t+1] 2 State forecast variance: P t+1 t = F P t t F + Q 3 Data forecast error variance: Var t (DF E t+1 ) = HP t+1 t H The equations to update the state and the precision matrix are based on S t+1 t+1 = S t+1 t + E[(S t+1 S t+1 t )DF E t+1 ] [HP t+1 H ] 1 DF E t+1 Nevertheless, because E[(S t+1 S t+1 t )DF E t+1 ] = P t+1 t H, the Kalman filter update equations take the usual form, although the truncation information alters the data forecast error (DF E) and forecast variance inputs: S t+1 t+1 = S t+1 t + P t+1 t H [HP t+1 t H ] 1 DF E t+1 (4) P t+1 t+1 = P t+1 t P t+1 t H [HP t+1 t H ] 1 HP t+1 t (5) 5

Thus, these modifications to the Kalman filter recursions show that the Kalman filter remains a useful tool to calculate conditional densities in the case where one or more of the state variables is truncated normal The same logic would apply if an observation equation variable were truncated normal After the modified Kalman filtering, the usual (no modification necessary) Kalman smoothing equations can be applied in order to draw values of z backwards from the end of the sample, with the net result being a draw from the density π({z} {z q }, {X}, parameters) See Fruwirth-Schnatter (1994) for a discussion of backwards sampling from Kalman filtered and smoothed conditional densities 4 Conclusion A few simple modifications of the Kalman filter recursions make the approach applicable to the case where one or more state variables is truncated normal No approximation of the Kalman filter is required, in contrast to the extended Kalman filter and its firstorder Taylor approximations This extension of the Kalman filter makes it possible to do multi-move sampling for Bayesian estimation of vector autoregressions and dynamic stochastic general equilibrium macroeconomic models that involve a probit-type equation that makes use of qualitative or discrete-valued data 6

References Albert, James H and Siddhartha Chib (1993), Bayesian Analysis of Binary and Polychotomous Response Data Journal of the American Statistical Association 88, 669-79 Carter, CK and P Kohn (1994), On Gibbs Sampling for State-Space Models, Biometrika 81, 541-53 Chib, Siddhartha and Edward Greenberg (1996), Markov Chain Monte Carlo Simulation Methods in Econometrics, Econometric Theory 12, 49-31 De Jong, Piet and Neil Shepard (1995), The Simulation Smoother for Time Series Models, Biometrika 82, 339-5 Dueker, Michael (25), Dynamic Forecasts of Qualitative Variables: A Qual VAR of US Recessions, Journal of Business and Economic Statistics 23, 96-14 Dueker, Michael and Charles R Nelson (26), Business Cycle Filtering of Macroeconomic Data via a Latent Business Cycle Index, Macroeconomic Dynamics, forthcoming Eichengreen, B and MW Watson and RS Grossman (1985), Bank Rate Policy under the Interwar Gold Standard, Economic Journal 95, 725-45 Fruhwirth-Schnatter, Sylvia (1994), Data Augmentation and Dynamic Linear Models, Journal of Time Series Analysis 15, 183-22 Horowitz, Joel (1992), A Smoothed Maximum Score Estimator for the Binary Response Model, Econometrica 6, 55-31 Kuttner, Kenneth (1994), Estimating Potential Output as a Latent Variable, Journal of Business and Economic Statistics 12, 361-68 Shephard, Neil (1994), Partial Non-Gaussian State Space Biometrika 81, 115-31 7