I am reading a bit about Bayesian analysis, but I cannot understand the difference between the classic quantiles and the Highest Posterior Density Intervals. What is the difference between the two? I have simulated and plotted some data, the Q95% and the 9%% HPDI seems to be similar but not identical. Are there situations where they differ to a larger amount? Thanks a lot

up vote 8 down vote accepted

For unimodal, more-or-less symmetric distributions, HPD- and quantile-based credible intervals won't be too different. But consider a bimodal posterior distribution with well-separated modes: the HPD-based credible region will be two disjoint intervals whereas the central quantile-based credible region is a single interval by construction.

From a decision theory perspective, the two different kinds of intervals correspond to two different loss functions. The big difference is that the HPD corresponds to a loss function that includes a penalty for the length of the credible region(s). (um, no, as guest implicitly points out, it's) that if the interval fails to cover the true value, the loss function for the quantile-based credible interval penalizes you for how wrong you are whereas in the loss function for the HPD interval, "a miss is as good as a mile".

  • 5
    You could have also mentioned one notable inconvenient of the HPD interval : its lack of invariance under reparametrization: if $[a(x), b(x)]$ is the HPD credibility interval for $\theta$ then, given a monotone function $f$, the interval $[f(a(x)), f(b(x))]$ is $\textit{not}$ the HPD credibility interval for $f(\theta)$. – Stéphane Laurent Mar 13 '12 at 20:25
  • Good point. I think the decision theory approach illuminates this phenomenon too -- the two HPD intervals correspond to two different loss functions, one of which penalizes the volume of the region in $\theta$-space the other of which penalizes the volume of the region in $f(\theta)$-space. – Cyan Mar 13 '12 at 21:47
  • I personally think allowing a Highest Posterior Density credible interval which is not a single interval is confusing, and potentially a misleading use of language. In my view it should simply be the narrowest single interval covering the specified measure of the posterior distribution. – Henry Mar 14 '12 at 1:57
  • @Cyan>> do you mean that the HPD and the quantile-based interval can be considered as "lowest posterior loss region" for some loss function ? I investigated the case of the intrinsic discrepancy loss for a simple example in my paper sciencedirect.com/science/article/pii/S0378375812000870 – Stéphane Laurent Mar 14 '12 at 10:40
  • @Stéphane Laurent Yup, that's exactly what I mean. – Cyan Mar 15 '12 at 7:01

A simple example would be if you bought a light-bulb with a lifetime which was exponentially distributed with a mean of 1000 days.

With a 95% credible region: would you tend to see it as likely to last for between 25 and 3689 days (based on the quantiles at 0.025 and 0.975), or would you see it as likely to last fewer than 2996 days (based on the Highest Density Interval)?

In other words, would it surprise you if it died almost as soon as you bought it, even though the mode of the distribution is at zero?

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.