-
Notifications
You must be signed in to change notification settings - Fork 18
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
Skipping the Hastings computation for symmetric proposals #41
Comments
We could probably dispatch on certain proposal types -- if it's |
For continuous unconstrained random variables, A Uniform proposal is also sometimes used. (e.g. I've heard of symmetric heavy-tailed distribution like student-t or Cauchy being used as proposal distributions, though I haven't seen that in practice. Supposedly, you can better explore the tails of the distribution with a heavy-tailed proposal. (But I would think that once you're in the tails, it would take a long time to get back to the typical set.) |
In here and here, to compute the log acceptance probability (
loga
), the proposal density evaluated at the proposed and previous sample is always computed. However, this is not necessary if the proposal is symmetric, sinceq(spl, params_prev, params) - q(spl, params, params_prev) == 0
.Is there a reasonable way to check if the proposal is symmetric and, if it is, skip the Hastings part of the log acceptance probability computation?
I noticed this when looking at #39. The proposal is always Normal, so
q
doesn't need to be computed. I understand that there really isn't a computation bottleneck. But for multivariate proposals, it could be nice to avoid this unnecessary computation.The text was updated successfully, but these errors were encountered: