hp_filtered and not hp_filtered moments: why similar means ?

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.

hp_filtered and not hp_filtered moments: why similar means ?

Postby dynare16 » Wed Jun 01, 2016 10:16 am

Hi,

I don't understand how is the model-generated data hp-filtered with the Dynare option hp_filter in the stoch_simul command. When I compare any simulated DSGE model with and without hp_filtering, I notice that the first order theoretical moments are similar for hp_filtered theoretical moments and for not hp_filtered theoretical moments.

However, when I hp_filter empirical data in Matlab using the hpfilter command, the hp_filtered empirical data does not display the same mean as the initial empirical data. I find this quite intuitive : a series with a positive time trend should display a higher mean than the cyclical component of this series.

So why do we get similar means for hp_filtered data and not hp_filtered data when simulating the model in Dynare ?

Any help would be much appreciated
dynare16
 
Posts: 44
Joined: Tue Feb 02, 2016 2:47 pm

Re: hp_filtered and not hp_filtered moments: why similar mea

Postby jpfeifer » Wed Jun 01, 2016 11:53 am

HP-filtering will always demean the data. What Dynare reports is the mean of the unfiltered 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

Re: hp_filtered and not hp_filtered moments: why similar mea

Postby dynare16 » Wed Jun 01, 2016 12:08 pm

Thank you !
dynare16
 
Posts: 44
Joined: Tue Feb 02, 2016 2:47 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 8 guests