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

Adaptive Rejection Sampling incorrect #61

Open
GoogleCodeExporter opened this issue Dec 29, 2015 · 1 comment
Open

Adaptive Rejection Sampling incorrect #61

GoogleCodeExporter opened this issue Dec 29, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi, 

I found a bug in the adaptive rejection sampling code -- ars.m

arsEvalHulls returns log-values but they are subsequently treated as 
probability values for the accept/reject steps in lines 86 and 91 (eg divided 
with each other and compared to a uniform draw).  This can cause the ARS to 
sample heavier tails than it should.

Original issue reported on code.google.com by [email protected] on 27 Aug 2013 at 11:20

@GoogleCodeExporter
Copy link
Author

Moved to GitHub: https://github.com/probml/pmtk3/issues/61

Original comment by irosen on 4 Jan 2014 at 2:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant