Model validation of Bayesian estimation

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.

Model validation of Bayesian estimation

Postby sujee2sujee » Thu Oct 30, 2014 11:16 pm

Hi,

I am a PhD student and I estimated a DSGE model. As a part of model validation I have included moment comparison of actual and theoretical moments. But my supervisor is suggesting that this kind of validation is suitable only for calibrated models. But, in a recent training on DSGE we did a similar exercise for Bayesian estimated models. Can anyone help me with this. Am I doing something wrong? Is there any better method to validate Bayesian estimated models?

Thanks in advance.
sujee2sujee
 
Posts: 15
Joined: Sun Nov 24, 2013 2:07 am

Re: Model validation of Bayesian estimation

Postby jpfeifer » Fri Oct 31, 2014 11:25 am

This is a rather philosophical matter. Historically, models were calibrated to long-run growth facts and then cross-validated by looking at the implies short- to medium-run implications for the business cycle, which is in a sense a different dataset.

When estimating a model, the parameters are chosen by looking at the same dataset for which you try to match second moments. You could argue that this is not a rigid "out of sample" test.

People nevertheless do this, because when estimating, you try to minimize the forecast error. Thus, it is not guaranteed that selected second moments are well-matched. Looking whether the model matches them is is a sensible test (not meant to denote a statistical test).

What you could do, is perform a test of the overidentifying restriction, see e.g. https://ideas.repec.org/a/eee/dyncon/v31y2007i8p2599-2636.html. This test will be a lot stricter than the eyeball econometrics performed on second moments. See also http://delong.typepad.com/sdj/2011/10/calibration-and-econometric-non-practice.html

If you do Bayesian estimation you should not be testing at all. Rather, you do model comparison and only reject your current model if you found a better one (the idea being that a poor model is still better than no model at all)
------------
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: Model validation of Bayesian estimation

Postby Grant » Sat Nov 01, 2014 6:59 am

Dear Jpfeifer,

I am also curious about this issue. I found that in many papers, people always compare the theoretical moments with the empirical moment, such as variance and correlation, to validate their model is good. But if my understanding is correct, your statement is that we can only check the identification and do model comparison rather than do such kind of validation. Could you explain a little bit more in detail? Thanks!
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Model validation of Bayesian estimation

Postby jpfeifer » Wed Nov 05, 2014 3:39 pm

My point was a rather philosophical one. Bayesian econometrics does not do classical testing. In Bayesian papers you will regularly find comparisons between models, but never a statistical test whether the model "fits" the data. In contrast, classical frequentist econometricians do testing of models. See the linked paper for an example.
Note also that I did not talk about "identification" in the sense of whether parameters are identified, but about classical tests of overidentifying restrictions. This is something different!

Comparing moments in the data and the model is still a valid check (it amounts to an eyeball test of the overidentifying restrictions in your model), but it is less strict than a correct calibration exercise where the validation takes place on a fully different domain.
------------
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: Model validation of Bayesian estimation

Postby selima » Tue May 26, 2015 4:52 pm

Good evening

Please Mr J p feifer I have two questions and I hope that you answer me
* Is it normal to have the log marginal density of the DSGE-vAR lower that the one of the dsge model?(usually it is higher)
*In matlab when I compare between the DSGE and the DSGE-VAR model I find

Log data density is -424.477452.

and Log Marginal Density -431.269361
which one to select ? and thank you very much for answering me
Soulaima
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Model validation of Bayesian estimation

Postby jpfeifer » Tue May 26, 2015 5:54 pm

For the data density, the higher the better. Thus, -424 is better than -431.

I am not aware of any result that states that the marginal data density of the DSGE-VAR must always be higher than the one of the DSGE-model. But this is not my field of expertise, so I may be wrong. But I read Del Negro/Schorfheide (2004) to state that they look for an interior maximum of the marginal data density by choosing an appropriate value for lambda. This suggests that there might be cases where the VAR does add nothing and the DSGE model is preferable.
------------
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: Model validation of Bayesian estimation

Postby selima » Wed May 27, 2015 8:51 am

Thank you jpfiefer I appreciate your answer just I want to precise something
I find :

ESTIMATION RESULTS

Log data density is -424.477452.


Model article2modif article2modifdsge
Priors 0.500000 0.500000
Log Marginal Density -431.269361 -451.641892
Bayes Ratio 1.000000 0.000000
Posterior Model Probability 1.000000 0.000000

In this case I know that I should select -431,26 so the model "article2modif" but what is the difference between "Log data density" in the estimation result and "Log Marginal Density " , it is not the same? in the article2modif should I select (Log data density is) -424.477452 or (Log Marginal Density ) -431.26936
Thank you again
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Model validation of Bayesian estimation

Postby jpfeifer » Wed May 27, 2015 5:23 pm

You would need to post the full output. My guess is the two numbers are based on different approaches to compute the marginal data density. One should be based on the Geweke modified harmonic mean estimator, the other on the Laplace approximation. Fortunately, they give the same qualitative result.
------------
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: Google [Bot] and 7 guests