Definitionintro
Credible interval
Also called Bayesian confidence interval, equal-tailed credible interval.
An interval that holds the parameter with a stated posterior probability. Unlike a confidence interval, the probability is about the parameter given the data.
A credible interval is an interval of parameter values that has posterior probability given the observed data. It comes from a prior and a model through Bayes' theorem, and its statement is about the parameter after the data are fixed: . The usual choice cuts of posterior probability from each tail, so its ends are two posterior quantiles. A credible interval is not a confidence interval: its coverage over repeated samples at a fixed is a separate property, which can be far from .
Definition
Let have a proper prior , and let the data have density . The posterior is the conditional law of given , as in Bayesian inference.
- A set is a credible set if . For a continuous posterior the usual choice has probability exactly .
- A credible interval is a credible set that is an interval .
- The equal-tailed credible interval is , where is the -quantile of the posterior. Each tail outside it has posterior probability .
- A one-sided credible bound is (upper) or (lower).
- The highest posterior density region is the credible set of smallest length; for a skewed posterior it differs from the equal-tailed interval.
The same definitions apply to a function , with the posterior law of in place of that of . An improper prior is allowed when the posterior it gives is proper (see improper prior).
The Bayesian statement
Given , the interval is fixed and is random under the posterior. " is in with probability 0.95" is a correct sentence about a credible interval, under the stated prior and model. Another prior gives another interval, and the statement is only as good as the prior and the model.
Invariance under monotone maps. Let with strictly increasing. Then , so the posterior quantiles of are of the posterior quantiles of , and the equal-tailed interval for is . For a decreasing the two ends change places. The highest posterior density region does not have this property.
Frequentist coverage of a credible interval
The coverage of the rule at a fixed is , the probability over repeated samples, as for a confidence interval. Two facts connect it with the posterior probability.
- Averaged over the prior, the coverage is . If is proper and for every , then . Proof: the joint law of is , and it is also , where is the marginal law of . By Fubini's theorem, .
- At a fixed the coverage can take any value. A prior that puts little mass near gives low coverage there, and high coverage elsewhere, so that the average stays at .
Coverage at a fixed tends to in regular parametric models under the conditions of the Bernstein-von Mises theorem. That theorem is the only general bridge between the two statements. Below, all coverage numbers are measured: they are exact sums of binomial probabilities at each , and they are not a theorem.
Examples and non-examples
A binomial proportion. Let Binomial and observe . Under the uniform prior Beta the posterior is Beta, with mean . Its equal-tailed 95% credible interval is , of length 0.5005. Under the Jeffreys prior Beta the posterior is Beta and the interval is . For comparison, the Clopper-Pearson 95% confidence interval for the same data is ; it has a different meaning.
Invariance. Map the Beta interval to the odds : the 95% interval for the odds is , and for the log-odds it is . These are the ends of put through the map, and each still cuts 2.5% from each tail.
A normal mean with known variance. Let be iid with data 9.8, 10.4, 10.1, 9.6, 10.6, so . With the prior the posterior is normal with precision , mean 9.8381 and standard deviation 0.1952 (conjugate prior). The 95% credible interval is . It is pulled toward the prior mean 9. With the flat prior on the posterior is and the interval is , the same numbers as the z confidence interval, with the meaning of a posterior probability.
Coverage at a fixed (measured). For and the uniform prior, the 95% equal-tailed interval has exact coverage 0.9298 at , 0.9244 at and 0.9785 at . For in the infimum is 0.8817, approached as rises to 0.0602, the lower end of the interval for ; below 0.05 the coverage falls further, to 0.7938 just below . For the coverage is 0, because the interval for is and every other interval starts higher. The mean coverage over the grid is 0.9506, close to the exact prior average 0.95 of fact 1.
A strong prior (measured). With the prior Beta and the same , the interval for is ; it does not contain the sample proportion 0.3. The exact coverage is 0 at , 0.1493 at and 1 at . Its average over the Beta prior is still 0.95 (fact 1; a midpoint sum with 20000 points gives 0.94998). The posterior statement is correct for a person who holds that prior, and the coverage is poor for a true far from 0.5.
Non-example: a confidence statement. "95% of intervals made this way contain the true , whatever it is" is the definition of a 95% confidence interval. A credible interval does not promise this, as the strong-prior example shows. A credible interval is not a confidence interval, even when the numbers agree.
Non-example: an interval for a new observation. An interval that holds a future with probability comes from the posterior predictive distribution, not from the posterior of . In the normal example the 95% posterior predictive interval is , much wider than the credible interval for . The frequentist version is a prediction interval.
Non-example: a posterior that is not proper. With for , and the prior density for , the posterior of has infinite mass near 0. Quantiles of it do not exist, so no credible interval does, even though a sampler can still produce numbers (see improper prior).
Related definitions
- Highest posterior density region. The shortest credible set; for Beta it is , shorter than the equal-tailed interval but not invariant under reparametrization.
- Confidence interval. A rule whose coverage over repeated samples is at least at every ; the probability is about the rule, not about .
- Jeffreys interval. The equal-tailed credible interval of the Beta posterior of a binomial proportion. Brown, Cai and DasGupta (2001) studied its frequentist coverage and recommend it with the Wilson score interval for small .
- Bernstein-von Mises theorem. In regular models the posterior is close to a normal law at the MLE, so credible intervals have coverage tending to .
- Simulation-based calibration. A check of a posterior sampler that uses fact 1: with drawn from the prior, credible intervals must cover at the stated rate.
- Maximum a posteriori estimate. The posterior mode, which lies inside the highest posterior density region of every level.
References
- 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 (posterior intervals for the binomial and normal models, central intervals and highest posterior density regions)
- Christian P. Robert, The Bayesian Choice, 2nd edition, Springer, 2007, Chapter 5, Section 5.5.1 (credible intervals) and Section 5.5.2 (classical confidence intervals)
- Lawrence D. Brown, T. Tony Cai and Anirban DasGupta, Interval estimation for a binomial proportion, Statistical Science 16(2), 2001, pages 101 to 133 (the frequentist coverage of the equal-tailed Jeffreys credible interval)
Where this leads
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 9NG63E Edit this page History Report an error Markdown