2nd Order Estimation - Particle Filter Question

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.

2nd Order Estimation - Particle Filter Question

Postby pcb » Wed Mar 05, 2014 4:03 pm

I am doing a second order bayesian estimation and would like to know what is the default number of particles used when evaluating the likelihood with the particle filter? Can the number of particles be changed and how?

Thanks!
pcb
 
Posts: 8
Joined: Mon Aug 27, 2012 4:13 am

Re: 2nd Order Estimation - Particle Filter Question

Postby federico » Wed Mar 05, 2014 4:07 pm

before the estimation command add this line

options_.particle.number_of_particles = 500;

I think the default number of particles is 500.
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: 2nd Order Estimation - Particle Filter Question

Postby pcb » Wed Mar 05, 2014 11:28 pm

Thanks. Related question. Is the particle filter estimation going to run faster on Dynare++? Is there something that can be done to increase speed? It seems to take quite a long time.
pcb
 
Posts: 8
Joined: Mon Aug 27, 2012 4:13 am

Re: 2nd Order Estimation - Particle Filter Question

Postby federico » Thu Mar 06, 2014 10:26 am

Maybe, but I'm not sure about the gain. In general the PF could take a very long time depending on the magnitude of your model
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: 2nd Order Estimation - Particle Filter Question

Postby jpfeifer » Sat Mar 08, 2014 11:34 am

Particle filters generally take a long time. Dynare++ does not support them.
------------
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: 2nd Order Estimation - Particle Filter Question

Postby pcb » Thu Mar 13, 2014 3:31 am

Thanks a lot, it is very helpful...
pcb
 
Posts: 8
Joined: Mon Aug 27, 2012 4:13 am

Re: 2nd Order Estimation - Particle Filter Question

Postby pcb » Fri Mar 28, 2014 5:32 am

Related question:

It seems that if I run a 2nd order estimation in different platforms PC/OS-X/Linux(Redhat) the MCMC acceptance rate seems to differ (at least initially). Is this something to be expected?
pcb
 
Posts: 8
Joined: Mon Aug 27, 2012 4:13 am

Re: 2nd Order Estimation - Particle Filter Question

Postby jpfeifer » Fri Mar 28, 2014 8:07 am

I don't know. If the same random number generator is used by all platforms with the same seed, this is not expected. But I cannot say anything regarding the RNGs on other platforms. Do the final results also differ?
------------
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 3 guests