Using posteriors as priors in 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.

Using posteriors as priors in Bayesian estimation

Postby bruzzle » Fri Oct 28, 2011 2:43 pm

Hi,

I am trying to figure out if it is possible to use posteriors that are coming out of Bayesian estimation as priors for another Bayesian estimation exercise.

For instance if there are 2 rolling estimations, I would like to use the posteriors that are coming out from the 1st estimation as priors for the 2nd estimation. Is that doable in dynare?

Thank you very much,
b
bruzzle
 
Posts: 13
Joined: Fri Apr 30, 2010 11:52 am

Re: Using posteriors as priors in Bayesian estimation

Postby StephaneAdjemian » Mon Nov 07, 2011 5:12 pm

Hi

If I understand correctly you want to split the sample in two parts and use the first part as a prior for the estimation on the second sub-sample. In this case I don't think you need to do anything because it's perfectly equivalent to estimate with the whole sample. Let Y be the sample and Y_0 and Y_1 be the two subsamples. Let theta be the vector of estimated parameters. The likelihood of the
model is:

p(Y|theta)

which, by virtue of the Bayes theorem, can be rewritten as:

p(Y_1|Y_0,theta)*p(Y_0|theta)

the second term can then be interpreted as a prior for the estimation with the second sub-sample. Obviously we can add a prior density for theta, but this does not change the way we can decompose the likelihood.

If I misunderstand your problem, you can use a posterior as a prior for a model by fitting the prior density on the posterior draws from the metropolis hastings. But there is nothing in Dynare to do this an you have to code it yourself...

Best regards,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Using posteriors as priors in Bayesian estimation

Postby bruzzle » Mon Nov 07, 2011 9:07 pm

Hi Stephane,

Thank you very much for the reply. I might have to code it myself then.
bruzzle
 
Posts: 13
Joined: Fri Apr 30, 2010 11:52 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests