Posterior Predictive Checks

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.

Posterior Predictive Checks

Postby student84 » Fri Apr 03, 2015 11:04 am

Hi everybody,

I've done the Bayesian estimation in dynare using the estimation-command. Everything is running and looks good. Now I want to do some model evaluation using posterior predicitve checks. I know the mathematical background and I already read the post on Bayesian model evaluation in the forum, and I know this is exactly what I need to do. But I don't know how to do it. How can I compute them? Once I have done the estimation in dynare, what are the next steps? I know I need the posterior predictive distribution. How can I get it?
I really would appreciate any help in form of examples and comments.
Thank you very much!
student84
 
Posts: 4
Joined: Fri Apr 03, 2015 10:51 am

Re: Posterior Predictive Checks

Postby jpfeifer » Fri Apr 03, 2015 12:06 pm

What do you want to predict?
------------
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: Posterior Predictive Checks

Postby student84 » Fri Apr 03, 2015 1:56 pm

I'm interested in checking the absolute fit of the model to the data.
This link describes very clearly what I'm searching for: http://www.bayesian-inference.com/posteriorpredictivechecks. In the end I would like to show scatter plots like in the attached pdf, figure 7 or 9.
Computation is described in the following way:
1. Simulate theta from the posterior distribution, p(theta|y)
2. Simulate y_rep from the predictive distribution, p(y_rep|theta,y)
3. Compare y to the replicated datasets y_rep.
(y is the observed data, theta the vector of parameters)
The first point of computation is clear. It's what I have done by using the estimation command in Dynare. But I don't know what to do at point two in Dynare.
Thank you very much!
Attachments
A6n41.pdf
(1007.85 KiB) Downloaded 101 times
student84
 
Posts: 4
Joined: Fri Apr 03, 2015 10:51 am

Re: Posterior Predictive Checks

Postby jpfeifer » Sat Apr 04, 2015 11:32 am

I am working on it, but it will take some time as it requires new functionality in Dynare.
------------
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: Posterior Predictive Checks

Postby student84 » Sat Apr 04, 2015 2:26 pm

Thanks a lot! I'm also working on it. So far, I guess I need to set up a external program written in Matlab.
student84
 
Posts: 4
Joined: Fri Apr 03, 2015 10:51 am

Re: Posterior Predictive Checks

Postby jpfeifer » Mon Apr 06, 2015 8:38 pm

It will still take some time until the functionality is in Dynare. A first draft is at https://github.com/DynareTeam/dynare/pull/871
------------
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 9 guests