-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truly independent groups of chains #51
Comments
Hi, My understanding is that snooker is usually accompanied with resampling of previous states of the chains (see section 2.2 below). The groups will be dependent to some degree because their proposals are sampled from the same history. However, the groups should not have the same exact samples because past states are selected at random before proposals are generated. https://link.springer.com/content/pdf/10.1007/s11222-008-9104-9.pdf |
If you want the groups to be independent, the easiest approach would be to modify this for your use case:
which is based on the Turing documentation. If you want to run each group on a separate thread, you could use |
So I need |
That is correct. When you use |
I can't remember what problem you had with NUTS. Typically, it is more robust compared to DEMCMC. The main downside is that NUTS can have lots of overhead due to automatic differentiation. I suppose DiffEq models might be computationally intensive. |
Ah good to know, thanks. I am still fitting with NUTS (the mixing is much better), but while waiting for a fit I wanted to do some exploration with DEMCMC to see whether it might be a multimodal posterior. Having several truly independent groups of chains would be a good way to explore this, but I don't really need it for the final results. |
Ah I see. I have encountered multimodal posteriors with DEMCMC and NUTS. Detecting multimodality can be tenuous. Sometimes you will see a divergence and in other cases you won't. FWI, if you find multimodality, you will want to use MCMCTempering once it is available. Unfortunately, there is a blocking PR. Hopefully that will be resolved soon. |
Yeah I have seen it, but it is not implemented yet. Will check with Tor. Thanks anyway! |
Hi,
I was trying to fit a model with DEzs (
θsnooker=0.1, generate_proposal=random_gamma
) and 3 independent groups of chains (n_groups = 3
andNp=3
). I setα=0.0
so that there would be no exchange between the groups, and I expected the three groups to be independent samples. However, the trace looks like they are not truly independent. How is this possible? This was fit withnthreads=3
. Thanks for your insight.The text was updated successfully, but these errors were encountered: