IRF and Correlations

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

IRF and Correlations

Postby james_crown » Wed Jan 22, 2014 8:08 pm

I have a couple of questions. I understand that Dynare is calculating the matrix of correlation from the simulated data. If I don't specify Dynare to detrend the simulated data, then the raw simulated data is used which is the data with a trend? The second question I have is suppose I have two variables x and y and a exo shock z. Suppose that the irf shows that both x and y increases following an increase in z. Both x and y goes back to SS after a while but their response is always positive until reaching SS. I don't understand how I can get such an IRF and yet Dynare is telling me that the HP filtered correlation between x and y is negative. Am I missing something here (the correlation from the raw data is positive as in the IRF). Thank you for answering these questions.
james_crown
 
Posts: 1
Joined: Wed Jan 22, 2014 8:01 pm

Re: IRF and Correlations

Postby jpfeifer » Thu Jan 23, 2014 8:05 am

First, model variables are always stationary (at least they do not the contain the trend of the data). That is for example why you need observation equations matching model variables to the data. See e.g. my "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" at https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.

The positive conditional correlation after a shock (and the raw data) and having a negative correlation after HP filtering is common. The reason is that the HP filter filters out some low-frequency components responsible for the positive correlation you observe in the real data.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests