second moments

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.

Re: second moments

Postby jpfeifer » Wed Mar 30, 2016 8:15 am

You are misrepresenting what I said. To estimate model parameters using Bayesian techniques, you must not use two-sided filters. However, when comparing moments from the estimated model to the data, you are not restricted by such considerations. You just need to be consistent in comparing processed data to the same object from the model. The particular processing choice is up to you. The most common one is to compute growth rates in the data to growth rates from the model or HP-filtered data to HP-filtered variables from the model.

Sidenote: the filtered_variables command does not conduct filtering of the data, but provides you with one-step ahead forecasts.

If you are willing to not consider the full posterior distribution, you can use
Code: Select all
stoch_simul(order=1, hp_filter=1600);

after estimation and compare the moments to HP-filtered 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: second moments

Postby DW916 » Wed Mar 30, 2016 10:13 am

jpfeifer wrote:You are misrepresenting what I said. To estimate model parameters using Bayesian techniques, you must not use two-sided filters. However, when comparing moments from the estimated model to the data, you are not restricted by such considerations. You just need to be consistent in comparing processed data to the same object from the model. The particular processing choice is up to you. The most common one is to compute growth rates in the data to growth rates from the model or HP-filtered data to HP-filtered variables from the model.

Sidenote: the filtered_variables command does not conduct filtering of the data, but provides you with one-step ahead forecasts.

If you are willing to not consider the full posterior distribution, you can use
Code: Select all
stoch_simul(order=1, hp_filter=1600);

after estimation and compare the moments to HP-filtered data.


Many thanks. If I understand you correctly, firstly I use one-sided hp filtered data to estimate the model, then use
Code: Select all
stoch_simul(order=1, hp_filter=1600);
after estimation and compare the model moments(presented in the command window) to the moments of two-side HP data ,instead of moments of one_sided hp data?
DW916
 
Posts: 31
Joined: Sat Feb 27, 2016 9:05 am

Re: second moments

Postby jpfeifer » Wed Mar 30, 2016 12:52 pm

I would usually prefer using first differences for estimating the model, but what you describe should work. But given that you want to use the one-sided HP-filter for estimation, there is no reason for not using the one-sided HP-filter for the moment comparison.
------------
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: second moments

Postby ZBCPA » Sun Sep 18, 2016 1:33 pm

jpfeifer wrote:1. This refers to the fact that the endogenous prior option updates the normal prior you specify in the estimated_params-block using the data moments. For that reason you need to have both a full estimated_params-block and
Code: Select all
estimation(endogenous_prior, ...

2. There is no general rule to this. If you consider the high variance share of the measurement error a priori as unlikely, I would use an informative prior for it. Do not use an upper bound but use e.g. an inverse gamma distribution for the measurement error.


Dear Johannes,

If using inverse gamma distribution for the measurement error, and the estimation results show this measurement error account for 40% variance of observable variable(there is highly misspecification in the model actually). Is it too large to be acceptable ?

Many thanks,
Huan
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: second moments

Postby jpfeifer » Mon Sep 19, 2016 7:00 pm

Hard to say. You should look at standard deviations, which usually have a more natural interpretation. But to me this looks too large.
------------
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

Previous

Return to Dynare help

Who is online

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