-
Notifications
You must be signed in to change notification settings - Fork 28
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
ESS Fix #98
ESS Fix #98
Conversation
Just out of interest, in addition to the ess plot, a plot for r_hat. Below both plots. ess__estimates_plot.pdf For For The test program is part of StatisticalRethinking ess-rhat_tests.jl. |
Rob- I have a quick question about the r-hat plot. If I understand correctly, it seems like Turing produces larger and more variable r-hat than CmdStan for the same model, data and r-hat function. However, it appears that the delta parameter for Turing is .95 and .80 for CmdStan. Is this causing the difference and is that intentional? |
Yes, both the ess and r-hat show much greater variability, which surprised me as well. Early on I did use runs with the accept target at .65 and .85, and saw no difference for ess. Will run the test with .80, just to make sure. |
Equating the target acceptance rate seems like a good idea. If the problem persists, it suggests there might be a problem with Turing somewhere. |
These are the plots with the accept target at .80: |
I've had a suspicion for a while that Turing is not producing the right results, especially for autocorrelation/ESS. It might be worth filing an issue unless you can think of some other explanation for the large divergence. |
And with delta = 0.65: |
Will do that when back in DC an check on Slack first. Of course I’m the world’s most limited Turing user, just Nuts. |
That sounds good. Let me know if you want me to file an issue to help out. I just wanted to make sure you couldn't think of any other explanations for the behavior. |
Fixes #90 by actually doing the math (mostly) right. ESS now also reports Rhat, as below:
ess(chn)
Rhat will also show up in the summary stats block.