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

I16 metropolis #17

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

I16 metropolis #17

wants to merge 7 commits into from

Conversation

chonlei
Copy link
Member

@chonlei chonlei commented Aug 10, 2021

This PR adds testing notebook for the Metropolis random walk. Closes #16.

So far metropolis works well for 2D Gaussian problem, but not for correlated Gaussian and banana problems. I guess it is somewhat expected given this is a vanilla Metropolis MCMC method. I suppose correlated problems are not easy for such a vanilla method, never mind the banana problem.

I am happy for this method to behave in such a way, though let me know if any one thinks we should try to make it works for the other problems as well.

@chonlei chonlei requested review from ben18785 and rccreswell August 10, 2021 04:29
Copy link
Contributor

@ben18785 ben18785 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Chon -- looks really good! Can I make the following suggestions:

  • Run the sampler on the correlated Gaussian for more iterations: I think this method should work ok on this problem if given enough (say 30,000) iterations
  • Drop the banana: it ain't gonna work at all on this, I think

@MichaelClerx
Copy link
Member

On the re-run it doesn't look that great for the standard gaussian either. Worth investigating, I think, this is quite similar to what the bug in pop mcmc looked like

@MichaelClerx MichaelClerx mentioned this pull request Dec 5, 2023
30 tasks
@chonlei
Copy link
Member Author

chonlei commented Dec 5, 2023

@ben18785 I've removed the banana test case, and I've run the correlated Gaussian for more iterations (doubled, 40k iterations).

@MichaelClerx What bug was it?

@ben18785
Copy link
Contributor

ben18785 commented Dec 5, 2023

Thanks @chonlei -- I think @MichaelClerx means that the ECDFs don't look quite like the theoretical ones. I'm wondering a) whether the step size hyperparameter for this method is too short and b) whether just to run those two ECDF examples for much longer?

@MichaelClerx
Copy link
Member

MichaelClerx commented Dec 5, 2023

Thanks @chonlei -- I think @MichaelClerx means that the ECDFs don't look quite like the theoretical ones. I'm wondering a) whether the step size hyperparameter for this method is too short and b) whether just to run those two ECDF examples for much longer?

That's right! In pop mcmc we had a bug that caused something similar Plots showing the bug: #1238 PR fixing it #1246 The actual bug: pints-team/pints#1246 (comment)

@MichaelClerx
Copy link
Member

@ben18785 @chonlei what's the status of this one?

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

Successfully merging this pull request may close these issues.

Create notebook for Metropolis
3 participants