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

Implement multimodal HDI #7

Open
sethaxen opened this issue Aug 7, 2023 · 1 comment
Open

Implement multimodal HDI #7

sethaxen opened this issue Aug 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sethaxen
Copy link
Member

sethaxen commented Aug 7, 2023

Our current HDI estimator hdi assumes the distribution is unimodal. To support multimodal distributions, we would first fit a KDE (or histogram for discrete points) to the draws and then find the HDI from that. This is mostly useful for plotting.

Once #6 is complete, this could probably be easily done with https://github.com/tpapp/HighestDensityRegions.jl. See also Python ArviZ's implementation.

@sethaxen sethaxen added the enhancement New feature or request label Aug 7, 2023
@sethaxen
Copy link
Member Author

sethaxen commented Aug 8, 2023

We should also look into estimating the HDI from average shifted histograms (see e.g. https://github.com/joshday/AverageShiftedHistograms.jl), as these are much faster to compute than the KDE. Probably a simulation study is necessary to compare both performance and accuracy of estimating known HDIs from KDE vs ASH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant