-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
HDI? #216
Comments
There is no support for HDIs yet but it might be a reasonable addition. The problem is the HDI rely on density estimates which require many more draws in order to be reliable enough. |
Great! I acknowledge the limitations of HDIs, but it would be very nice if they were an option. |
I'd be curious if anyone out there knows anything about the literature on HDI estimation methods? In {ggdist} I've been using the two methods from {HDInterval} and the more I look at them the less satisfied I am. Even with a large sample (> 10,000) there still seems to be a lot of variance. I think if we're going to implement something here it would be worth a bit of a dive into the literature to pick the best method first (then I can also update ggdist to use that method via posterior). |
I would have assumed there is not much more variance than for quantiles, and that the most of the big variance comes from using quite extreme quantiles. Andrew et al has a paper "Simulation-efficient Shortest Probability Intervals" http://www.stat.columbia.edu/~gelman/research/published/spin.pdf Anyway, as the code for SPIn is available and based on quite well made paper, it would be "easy" to add. SPIn package has been last updated in 2013, so maybe it would better to just copy the relevant code to the posterior package? |
FWIW, the bayestestR package has a recent PR that adds support for the posterior package (easystats/bayestestR#518), i.e. all functions like |
The |
Would it be in the scope of posterior to provide support for HDI's in contrast with quantile-based intervals? For example, say I wanted to quickly summarize my draws by their modes and 95% intervals.
There's great support for percentile-based intervals. Is there support for HDI's?
The text was updated successfully, but these errors were encountered: