Nepedia
Back to Discover
Fluent Reader
🔢

Credible interval

math Maturity 11-13 Next article →

Imagine you are trying to guess a secret number. You might not know the exact number, but you can guess a range. A credible interval is a special way to pick that range. It uses math to show where an answer likely lives. This tool is used in Bayesian statistics. In this way of thinking, the unknown number is seen as a random variable. This means the number itself could be many different values. The interval we pick stays fixed to show our best guess.

Highest posterior density interval
Highest posterior density interval

There are many ways to build these groups of numbers. One way is the smallest credible interval. People also call this the highest density interval. This method finds the narrowest range that holds a certain amount of probability. If a group has only one peak, this interval will include the mode. The mode is the most likely value in the group. Another way is to use the smallest credible set. This is also known as the highest density region. For some groups, this might not be one single line. It could be several disconnected parts.

Highest posterior density interval
Highest posterior density interval

Other people use a method called a quantile-based interval. This method splits the group into equal parts. For example, a median credible interval is very common. It puts the same amount of probability above and below the range. This type of interval always contains the median. You can also find a lowest credible interval or a highest credible interval. These are helpful when your numbers have limits. Some people even pick a range where the mean is in the center. The mean is the average of all the values.

Highest posterior density interval
Highest posterior density interval

It is helpful to compare this to a different idea called a confidence interval. These two ideas come from different ways of looking at the world. In a confidence interval, the true number is fixed and never changes. Instead, the interval itself is what changes with every new sample. Bayesian credible intervals work the opposite way. They look at the uncertainty of the target number itself. One famous book on this is by P.M. Lee from 1997. Another important work is by A. O'Hagan from 1994.

Highest posterior density interval
Highest posterior density interval

Sometimes these two different ideas can actually give the same answer. This happens in very special cases. For example, they might match if you use a uniform flat distribution. This is a type of starting guess used in Bayesian math. It can also happen with a scale parameter using a Jeffreys' prior. Most of the time, however, the two methods stay different. Scientists also use computer tests to find these ranges. One method is called Markov chain Monte Carlo. This uses simulations to help estimate the best group of numbers.

Highest posterior density interval
Highest posterior density interval
448 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Highest posterior density interval.svg
Highest posterior density interval.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.