Skip to content
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

zeus and emcee #13

Closed
minaskar opened this issue Mar 26, 2021 · 1 comment
Closed

zeus and emcee #13

minaskar opened this issue Mar 26, 2021 · 1 comment

Comments

@minaskar
Copy link
Owner

@minaskar Dear Minas, I just test zeus with my MCMC problem. It runs very well. But I have a question: it seems that zeus is very similar with another MCMC programmer 'emcee', including its function format, some basic usage... So what's the zeus's advantage over emcee?

Originally posted by @yuanzunli in #7 (comment)

@minaskar
Copy link
Owner Author

Hi @yuanzunli,

indeed both methods utilise an ensemble of parallel walkers to sample from the target distribution. The main difference between emcee and zeus lies in the way that walkers update their position in each iteration. emcee uses Metropolis-Hastings-type updates whereas zeus uses Slice Sampling updates. Slice Sampling is generally more robust, scales better with the number of parameters and can handle non-linear correlations and multimodal distributions.

If the problem that you're trying to solve has only a few parameters (n<10) and/or the distribution is approximate gaussian/normal then you probably won't notice a difference between the two samplers. If you want to know more about how zeus works there is some extra information here.

In terms of their similar Python APIs, that was intentional so people can easily switch from one sampler to the other.

@minaskar minaskar closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant