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

Inconsistent HDI in posterior plot and table summary #163

Closed
chiukenny opened this issue Jan 27, 2021 · 7 comments
Closed

Inconsistent HDI in posterior plot and table summary #163

chiukenny opened this issue Jan 27, 2021 · 7 comments

Comments

@chiukenny
Copy link

The HDI that is in summaries does not match the red line on the posterior plot for the BasicReparameterized model in this tutorial. For μ=0.5, the summary reports an upper HDI of 0.452, but the plot shows an upper value >0.5.

image

To reproduce: run Exercise 1 in the tutorial.

@alexandrebouchard
Copy link
Contributor

@kevinchern sorry to add another thing to you plate, but do you mind looking at this when you have a chance? Thank you!

@kevinchern
Copy link
Collaborator

:O.... on it!

@alexandrebouchard
Copy link
Contributor

alexandrebouchard commented Jan 27, 2021 via email

@kevinchern
Copy link
Collaborator

kevinchern commented Jan 27, 2021

Looks like the current plotting template automatically includes a burn-in, whereas summaries do not.
I think we should make burn-ins consistent across outputs, or label the plots to indicate burn-in has been applied.
Also worth considering setting the default to 0 burn-in instead of 0.5.

@alexandrebouchard any suggestions?

@alexandrebouchard
Copy link
Contributor

Most plot actually discard burn in right now. For example, in the posterior plotting code, the line

triggers the following which removes the burn in samples:

Ah I see, it's actually the other way around: summaries don't remove the burn in right now:

val directory = outputFolder(Output::summaries)

I think adding the burn in macro should do it. Do you mind giving it a try? Thanks again!

@kevinchern
Copy link
Collaborator

Yep! Discarding burn-in from summaries gives consistent results.

@alexandrebouchard
Copy link
Contributor

Resolved in #164

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

3 participants