Hi!
I am sorry (again) if this is a very basic question, but I am really confused. I understand that the HDI gives us the lowest credible interval of a distribution that gives us a specific probability. How do we calculate the HDI for samples from a distribution?
In addition, I cannot understand the difference between a HDI and a confidence interval.