Definitioncore
Highest posterior density region
Also called HPD interval, highest density interval.
The smallest region with a given posterior probability, made of the points where the posterior density exceeds a level.
The highest posterior density (HPD) region is the set of parameter values where the posterior density is at least some level , with chosen so that the set has posterior probability . Among all sets with that posterior probability it has the smallest length, area or volume. For a unimodal posterior on the line it is an interval whose two ends have the same density; for a posterior with two modes it can be two separate intervals. Unlike the equal-tailed credible interval, it changes when the parameter is transformed, because a density changes with the Jacobian of the transformation.
Definition
Let the posterior of given data have a density with respect to Lebesgue measure , as in Bayesian inference. For let , and let
The HPD region is . If no level set has positive Lebesgue measure (the density has no flat parts), then exactly. When is an interval it is called the HPD interval.
It is the smallest credible set. Let be any set with . Then . On the density is at least , and on it is less than . So
and (for ). The last inequality is strict if , so when the density has no flat parts the HPD region is the only shortest credible set, up to sets of measure zero.
The equal-density rule. For a continuous unimodal posterior on the line, the HPD interval solves and , unless an end of is reached first. If the density decreases on all of , the interval starts at 0. If the posterior is symmetric and unimodal, the HPD and equal-tailed intervals agree.
It is not invariant. Let with smooth and strictly monotone. The density of is . The Jacobian factor changes which points have high density, so the HPD region for is in general not . The equal-tailed interval is invariant under every strictly monotone ; the HPD region is invariant only under affine maps, which have constant Jacobian.
It contains the mode. Every HPD region contains each point where the posterior density is largest, the maximum a posteriori estimate. With a flat prior the posterior density is proportional to the likelihood, and the HPD region is a likelihood region , the same shape of set that a likelihood ratio test inverts.
Examples and non-examples
A skewed beta posterior. With trials, successes and the uniform prior, the posterior is Beta. The 95% HPD interval is , of length 0.4946, and the density at both ends is 0.5410. The equal-tailed interval is , of length 0.5005: it moves to the right, toward the long tail. A search over all intervals of posterior mass 0.95 with ends on a grid of 200000 equal cells of gives the same shortest length to within ; the ends it finds differ by up to , because the length is flat near its minimum. Under the Jeffreys prior the posterior is Beta, with 95% HPD interval (length 0.5049) against the equal-tailed (length 0.5131).
An end of the parameter space. With , and the uniform prior, the posterior is Beta, with density , which decreases on . The HPD interval is with , so . The two ends do not have equal density. The equal-tailed interval is , of length 0.5168, and it excludes , the most probable value.
A transformation changes the region. Put the Beta posterior on the log-odds scale . The density of is proportional to , with , because . Its 95% HPD interval is , which maps back to . That is a 95% credible interval for , but it is not the HPD interval for . The equal-tailed interval maps to the log-odds scale exactly, to .
Two intervals. Let , observe , and use the flat prior on . The posterior density is , where and are the standard normal density and distribution function; it has modes at . The 95% HPD region is , two intervals of total length 7.7964, where solves . The equal-tailed interval is , of length 9.2910. It contains , where the posterior density is times its peak.
Non-example: the interval between the 2.5% and 97.5% posterior quantiles. That is the equal-tailed credible interval. It is the HPD interval only when the posterior is symmetric and unimodal.
Non-example: equal density, wrong mass. For Beta, the interval has density 2.2146 at both ends, but its posterior mass is 0.5764. It is the 57.64% HPD interval, not the 95% one. The equal-density rule fixes the shape of the interval; the mass condition fixes its level. Both are needed.
Non-example: a confidence region. The HPD region is a statement about given , like every credible set. Its frequentist coverage at a fixed is a separate property; see credible interval for when the two agree.
Related definitions
- Credible interval. Any set of posterior probability ; the equal-tailed one is invariant under monotone maps, the HPD one is the shortest.
- Maximum a posteriori estimate. The mode of the posterior; the HPD regions shrink to it as grows to 1 when the mode is unique.
- Highest density region of a predictive law. The same construction applied to the posterior predictive distribution gives the shortest prediction set for a new observation.
- Likelihood region. With a flat prior, the HPD region is a set ; the frequentist likelihood ratio test inverts sets of this form with a different choice of .
- Confidence interval. A rule with coverage at least at every over repeated samples; a different statement.
References
- George E. P. Box and George C. Tiao, Bayesian Inference in Statistical Analysis, Addison-Wesley, 1973; Wiley Classics Library reprint, 1992, Chapter 2 (highest posterior density intervals and regions, and their lack of invariance)
- Andrew Gelman, John B. Carlin, Hal S. Stern, David B. Dunson, Aki Vehtari and Donald B. Rubin, Bayesian Data Analysis, 3rd edition, CRC Press, 2013, Chapter 2 (central posterior intervals and highest posterior density regions, with a bimodal example)
- Christian P. Robert, The Bayesian Choice, 2nd edition, Springer, 2007, Chapter 5, Section 5.5.1 (credible intervals and HPD regions)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 9T76SY Edit this page History Report an error Markdown