Introduction
Interval estimates are among the most common quantities reported in clinical research. A treatment effect might be reported as a hazard ratio with an interval, a response rate with an interval, or a treatment difference with an interval.
The terminology can look deceptively similar: 95% confidence interval and 95% credible interval.
Both produce an interval of plausible values. Both are often summarized using the same notation. And in many practical examples, the numerical intervals can be remarkably similar.
But the two procedures answer fundamentally different statistical questions.
The Question We Are Trying to Answer
Suppose the parameter of interest is a treatment effect \(\theta\). After observing the data, we would like to describe the uncertainty about \(\theta\). A natural question is:
Bayesian and frequentist inference answer this question using different definitions of probability.
That distinction leads directly to the difference between credible intervals and confidence intervals.
Frequentist Inference
In frequentist statistics, the parameter \(\theta\) is treated as a fixed but unknown quantity.
The data are considered random because they arise from a sampling process.
Conceptually:
The inferential procedure is therefore designed to have known long-run properties under repeated sampling.
A confidence interval is one example of such a procedure.
Bayesian Inference
Bayesian statistics treats uncertainty about the parameter probabilistically.
Before observing the data, the investigator specifies a prior distribution:
After observing data \(y\), Bayes' theorem combines the prior with the likelihood:
The result is the posterior distribution.
The posterior distribution describes the probability distribution of the parameter conditional on the observed data and the assumed model.
What Is a 95% Confidence Interval?
Suppose a procedure produces an interval:
A 95% confidence interval is constructed so that, under repeated sampling, the interval contains the true parameter 95% of the time:
The probability statement is about the procedure before the data are observed.
Once the observed data produce a particular interval, such as \([1.2,2.8]\), the frequentist interpretation is not that there is a 95% probability that the fixed parameter lies between 1.2 and 2.8.
Instead, the procedure used to construct the interval has 95% coverage in the long run under its assumptions.
What Does "95% Confidence" Actually Mean?
Imagine repeatedly conducting the same clinical study under identical conditions. Each study produces a new confidence interval.
The individual interval either contains the parameter or it does not. The 95% refers to the long-run performance of the interval-generating procedure.
What Is a 95% Credible Interval?
In Bayesian inference, the posterior distribution provides a probability distribution for the parameter. A 95% credible interval is an interval containing 95% of the posterior probability:
This is a direct probability statement about the parameter conditional on the observed data and the Bayesian model.
For example, if the posterior distribution gives:
then it is appropriate to say:
Given the observed data and the specified Bayesian model, there is 95% posterior probability that \(\theta\) lies between 1.2 and 2.8.
The Fundamental Difference
| Feature | Confidence Interval | Credible Interval |
|---|---|---|
| Framework | Frequentist | Bayesian |
| Parameter | Fixed but unknown | Represented probabilistically |
| Probability distribution | Sampling distribution of estimator | Posterior distribution of parameter |
| Uses prior distribution? | No | Yes |
| Probability statement about parameter? | Not in the usual frequentist interpretation | Yes |
| 95% interpretation | Long-run coverage probability | 95% posterior probability |
| Conditional on observed data? | Not in the Bayesian probability sense | Yes |
The Most Important Equation
The conceptual difference can be summarized by placing the two statements side-by-side.
This is the confidence-interval coverage statement.
This is the Bayesian credible-interval statement.
The difference may appear subtle because both equations contain a probability of 0.95. But the probability is attached to different objects.
A Simple Normal Example
Suppose we observe a normally distributed endpoint:
Assume that \(\sigma\) is known. The sample mean is:
A conventional 95% confidence interval for \(\mu\) is:
Numerical Example
Suppose:
| Quantity | Value |
|---|---|
| Sample size | 100 |
| Sample mean | 50 |
| Known standard deviation | 10 |
| Confidence level | 95% |
The standard error is:
Therefore:
giving:
The frequentist interpretation is that the procedure used to construct these intervals has 95% coverage under repeated sampling.
Now Add a Bayesian Prior
Suppose instead that we place a normal prior on the population mean:
The likelihood from the observed data is:
Because the normal distribution is conjugate to the normal likelihood, the posterior distribution is also normal:
where:
and:
Worked Bayesian Example
Suppose the prior is:
and the data are the same as above:
The prior precision is:
The data precision is:
Therefore:
and:
so approximately:
The posterior standard deviation is approximately:
A central 95% credible interval is therefore approximately:
or:
The Bayesian interval is slightly shifted toward the prior mean of 45 and is slightly narrower because the posterior combines information from both the prior and the observed data.
Why the Two Intervals Can Look Nearly Identical
In many clinical applications, Bayesian and frequentist intervals can be numerically very similar.
This commonly occurs when:
- The sample size is large.
- The prior is weak or relatively diffuse.
- The likelihood is approximately normal.
- The posterior distribution is approximately symmetric.
As the sample size becomes large, the information contributed by the likelihood can dominate a weak prior.
In that situation, the posterior distribution can become very similar to the sampling-based approximation used for a confidence interval.
When Can They Be Very Different?
The difference becomes much more visible when the prior contains substantial information or when the posterior distribution is highly non-normal.
For example, suppose the observed data are limited but there is strong prior information that the parameter is close to a clinically established value.
A Bayesian analysis can incorporate that information directly. A conventional confidence interval does not incorporate prior information in this way.
Prior Information Changes the Posterior
The Bayesian posterior is proportional to:
Consequently, two investigators analyzing the same data with different priors can obtain different credible intervals.
That is not necessarily a flaw. It is a direct consequence of Bayesian inference.
The prior is part of the statistical model and should therefore be justified and reported.
A Clinical Example: Treatment Effect
Suppose a clinical trial estimates a treatment effect on a continuous endpoint. The estimated treatment difference is:
Suppose a 95% confidence interval is:
A frequentist interpretation would describe this as a 95% confidence interval generated by a procedure with 95% long-run coverage under the relevant assumptions.
It would be incorrect to say, strictly speaking:
Now suppose a Bayesian analysis produces a 95% credible interval:
Then the Bayesian interpretation is:
Probability That the Treatment Effect Is Positive
One of the major practical advantages of a posterior distribution is that we can calculate probabilities of clinically meaningful events directly.
Suppose:
represents a beneficial treatment effect. The Bayesian analysis can calculate:
For example:
This can be stated directly as:
There is 99.2% posterior probability that the treatment effect is positive, conditional on the observed data and model.
A standard confidence interval does not have this same interpretation.
Credible Intervals and Clinical Decision-Making
Bayesian intervals can be particularly attractive when decisions are based on probabilities of clinically relevant quantities.
For example, suppose a treatment is considered clinically meaningful if the effect exceeds 3 units.
A Bayesian analysis can calculate:
and perhaps report:
This directly answers the decision-relevant question:
Confidence Intervals Cannot Be Interpreted This Way
Suppose a 95% confidence interval is:
Because the entire interval is above 0, it is tempting to translate this into a probability that the treatment effect is positive.
But the confidence interval itself does not provide:
The confidence interval and a posterior probability answer different questions.
Central vs. Equal-Tailed Credible Intervals
A Bayesian credible interval is not uniquely defined. Different intervals can contain 95% of the posterior probability.
A common choice is the equal-tailed interval. For a 95% interval:
Therefore:
Highest Posterior Density Intervals
Another common Bayesian interval is the highest posterior density interval, or HPD interval.
The HPD interval contains the specified amount of posterior probability while favoring regions with the highest posterior density.
For a 95% HPD interval, the basic idea is:
while points inside \(C\) have posterior density at least as high as points outside the interval.
For symmetric unimodal posterior distributions, equal-tailed and HPD intervals may be very similar.
For skewed posterior distributions, however, they can differ substantially.
Why Bayesian Intervals Can Be Asymmetric
Consider a parameter that must be positive, such as a variance, rate, or odds ratio. The posterior distribution may be strongly right-skewed.
A symmetric interval of the form:
may be inappropriate because it can extend into impossible parameter values.
A Bayesian posterior can naturally produce an asymmetric credible interval that respects the parameter space.
Odds Ratios and Hazard Ratios
Bayesian clinical analyses frequently work on a logarithmic scale. For example, let:
A posterior distribution for \(\phi\) can be transformed back to the hazard ratio scale:
If the 95% credible interval for \(\phi\) is:
then the corresponding hazard-ratio interval is:
or approximately:
The Bayesian interpretation remains a posterior probability statement on the transformed parameter.
Confidence Intervals and Transformations
Frequentist confidence intervals can also be constructed on transformed scales. For example, a confidence interval for \(\log(HR)\) can be exponentiated to obtain a confidence interval for \(HR\).
The important point is that the numerical transformation does not turn a confidence interval into a credible interval. The inferential framework remains frequentist.
Bayesian Binomial Example
Suppose a clinical study observes:
patients responding. The observed response rate is:
Suppose we use a Beta prior:
This is a uniform prior on the response probability.
The binomial likelihood is:
and the posterior is:
Therefore:
Bayesian 95% Credible Interval for the Response Rate
The equal-tailed 95% credible interval can be obtained from the 2.5th and 97.5th percentiles of the posterior distribution:
In R:
x <- 18 n <- 50 a <- 1 b <- 1 post_a <- a + x post_b <- b + n - x qbeta( c(0.025, 0.975), post_a, post_b )
The result is a 95% posterior credible interval for the response probability.
Frequentist Confidence Interval for the Same Data
The same data can be analyzed using a frequentist binomial confidence
interval.
For example, R provides several interval methods through
binom.test() and
prop.test().
x <- 18 n <- 50 binom.test( x, n, conf.level = 0.95 )
The resulting interval is a frequentist confidence interval.
The numerical endpoints may be close to the Bayesian credible interval, but the interpretation remains different.
Why the Prior Matters
The uniform \(Beta(1,1)\) prior is only one possibility. Suppose instead that historical evidence suggests a response rate near 20%. We could use a prior such as:
This prior has mean:
The corresponding posterior becomes:
or:
The posterior is therefore influenced by both the current trial and the prior information.
Weak vs. Informative Priors
| Prior | Effect |
|---|---|
| Diffuse prior | Current data dominate |
| Weakly informative prior | Provides modest regularization |
| Informative prior | Historical or external information can materially affect the posterior |
| Highly concentrated prior | Posterior may remain strongly influenced by prior assumptions when data are limited |
This is one reason Bayesian analyses require transparent specification and justification of prior distributions.
Confidence Intervals Do Not "Ignore" Information
It is sometimes said that confidence intervals are based only on the current data and therefore "ignore prior information."
A more precise statement is that ordinary frequentist confidence intervals do not incorporate a subjective prior probability distribution for the unknown parameter.
Frequentist methods can still use information from previous studies in other ways, such as through study design, covariate adjustment, stratification, meta-analysis, or explicitly developed hierarchical models.
The key distinction is that this information is not interpreted as a prior probability distribution on the parameter in the Bayesian sense.
A Common Misinterpretation
This is not the standard frequentist interpretation.
The difference comes from whether probability is assigned to the unknown parameter after conditioning on the observed data.
A Second Common Misinterpretation
Another common misconception is:
"Credible intervals are always better because they can be interpreted directly."
That conclusion does not follow.
Bayesian intervals require a model and prior distribution. If the prior is poorly chosen, inappropriate, or insufficiently justified, the resulting posterior inference can be misleading.
Likewise, frequentist confidence intervals can have excellent statistical properties when their assumptions and coverage properties are appropriate.
Coverage Probability vs. Posterior Probability
| Concept | Confidence Interval | Credible Interval |
|---|---|---|
| Probability refers to | Repeated samples / procedure | Parameter uncertainty conditional on data |
| Conditioning | Sampling framework | Observed data |
| Parameter probability | Not directly assigned | Directly assigned |
| Prior distribution | Not required | Required |
| Long-run coverage | Central concept | Not the defining property |
| Posterior probability | Not applicable | Central concept |
One-Sided Intervals
The same distinction applies to one-sided intervals. Suppose a Bayesian analysis gives:
This is a direct posterior probability statement.
A frequentist one-sided 97.5% confidence bound instead has a repeated-sampling coverage interpretation.
Again, the numerical probability may be similar while the inferential meaning is different.
Credible Intervals in Bayesian Clinical Trials
Credible intervals are particularly common in Bayesian clinical trial applications. For example, suppose a Bayesian model produces a posterior distribution for a response probability \(p\).
The analysis might report:
The analysis can also report:
This can be particularly useful when the clinical decision is based on a threshold.
Credible Intervals in Hierarchical Models
Bayesian credible intervals are also natural outputs from hierarchical models.
Suppose several clinical studies estimate related treatment effects:
A Bayesian hierarchical model produces posterior distributions for:
- Each study-specific effect \(\theta_i\)
- The overall mean effect \(\mu\)
- The between-study heterogeneity \(\tau\)
- Potentially a future-study effect
Credible intervals can then be calculated for each of these quantities.
Why Bayesian Intervals Are Especially Useful for Probabilistic Decisions
Many clinical decisions are naturally probabilistic. For example:
- What is the probability that treatment benefit exceeds zero?
- What is the probability that benefit exceeds a clinically meaningful threshold?
- What is the probability that toxicity exceeds an unacceptable level?
- What is the probability that a future study will meet a target?
Posterior distributions can answer these questions directly.
But Bayesian Probability Is Conditional on the Model
The phrase "95% posterior probability" should not be interpreted as a model-free statement.
The posterior probability depends on:
The model includes assumptions about the likelihood, prior distribution, parameterization, and any hierarchical structure.
R Example: Comparing the Two Approaches
The following example uses the same binomial data for both approaches.
x <- 18 n <- 50 p_hat <- x / n p_hat
The observed response rate is:
Frequentist Interval
freq_result <- binom.test( x, n, conf.level = 0.95 ) freq_result$conf.int
This produces a 95% confidence interval.
Bayesian Interval
Using a \(Beta(1,1)\) prior:
a <- 1 b <- 1 post_a <- a + x post_b <- b + n - x cred_int <- qbeta( c(0.025, 0.975), post_a, post_b ) cred_int
This produces a 95% equal-tailed credible interval.
Posterior Probability of Exceeding a Clinical Threshold
Suppose the clinically meaningful response rate is 25%. We can calculate:
P_gt_25 <- 1 - pbeta( 0.25, post_a, post_b ) P_gt_25
This directly estimates:
This type of calculation is one of the major practical differences between Bayesian posterior inference and a conventional confidence interval.
Visualizing the Bayesian Posterior
p_grid <- seq( 0, 1, length.out = 1000 ) posterior_density <- dbeta( p_grid, post_a, post_b ) plot( p_grid, posterior_density, type = "l", xlab = "Response probability", ylab = "Posterior density", main = "Posterior Distribution" ) abline( v = cred_int, lty = 2 )
The posterior distribution makes the Bayesian interpretation visually transparent. The area under the curve between the credible-interval boundaries is 95%.
Confidence Interval vs. Credible Interval: A Mental Model
When the Intervals Agree
The two approaches can converge numerically under certain conditions. For example, with a large sample and a relatively weak prior:
This is one reason that practitioners sometimes overlook the conceptual difference.
The endpoints may look almost identical. The interpretation does not become identical.
When the Intervals Diverge
Greater differences can arise when:
- The sample size is small.
- The prior is informative.
- The posterior is highly skewed.
- The parameter has a constrained range.
- The model is hierarchical.
- The likelihood is non-normal.
- The Bayesian model incorporates external information.
These situations are common in early-phase clinical development, where sample sizes may be limited and prior information can be important.
Common Mistakes
- Saying that a 95% confidence interval has a 95% probability of containing the parameter. This is not the standard frequentist interpretation.
- Assuming a credible interval is automatically equivalent to a confidence interval. The numerical values can be similar while the statistical meanings differ.
- Ignoring the prior. A Bayesian credible interval depends on the prior distribution.
- Reporting a credible interval without describing the model. Posterior inference is conditional on the Bayesian model.
- Assuming Bayesian intervals must be symmetric. Posterior distributions can be skewed, producing asymmetric credible intervals.
- Assuming an informative prior is always beneficial. A poorly justified prior can materially influence inference in undesirable ways.
- Using "credible interval" and "confidence interval" interchangeably. The distinction should be preserved in statistical reporting.
- Thinking that Bayesian inference eliminates uncertainty. It does not. It provides a different framework for representing and quantifying uncertainty.
How to Report a Confidence Interval
A frequentist clinical report might say:
The confidence level and interval-generating method should be clearly specified in the statistical analysis plan or statistical methods.
How to Report a Credible Interval
A Bayesian report might say:
The Bayesian analysis should also describe the prior distributions and model used to obtain the posterior.
Clinical Interpretation Side-by-Side
| Statement | Appropriate? |
|---|---|
| "There is a 95% probability that the parameter is in the 95% confidence interval." | No, not as a standard frequentist interpretation. |
| "The procedure has 95% long-run coverage." | Yes, for a properly constructed 95% confidence interval. |
| "There is 95% posterior probability that the parameter lies in the credible interval." | Yes, conditional on the Bayesian model and observed data. |
| "The credible interval contains 95% of the posterior probability." | Yes. |
| "A Bayesian and frequentist interval must have different numerical endpoints." | No. |
Which One Should a Clinical Statistician Use?
There is no universal answer.
A frequentist confidence interval may be appropriate when the primary analysis is designed around conventional frequentist operating characteristics, regulatory expectations, and repeated-sampling properties.
A Bayesian credible interval may be particularly attractive when:
- Prior information is scientifically relevant.
- Probabilistic statements about treatment effects are desired.
- The analysis is part of a Bayesian adaptive design.
- Hierarchical borrowing is important.
- The parameter has a constrained or skewed posterior distribution.
- Decision-making is naturally expressed through posterior probabilities.
Regulatory and Protocol Considerations
When a Bayesian analysis is used in a clinical trial, the statistical analysis plan should clearly describe:
- The likelihood model
- The prior distributions
- The rationale for the priors
- The posterior distribution
- The definition of the credible interval
- Whether intervals are equal-tailed or HPD
- The decision thresholds
- The sensitivity analyses for alternative priors
- The computational method
- The convergence diagnostics when simulation-based methods are used
This is particularly important when the prior has a meaningful effect on the posterior conclusions.
Prior Sensitivity Analysis
A useful Bayesian sensitivity analysis repeats the analysis using reasonable alternative priors.
For example:
The resulting posterior intervals can then be compared.
| Prior | Posterior Mean | 95% CrI |
|---|---|---|
| Weakly informative | Example A | Example interval A |
| Moderately informative | Example B | Example interval B |
| Historical-information prior | Example C | Example interval C |
If the clinical conclusion remains stable across reasonable priors, the conclusion is less sensitive to prior specification.
A Useful Rule of Thumb
Confidence interval: "If I repeated the experiment many times, how often would this procedure capture the true parameter?"
Credible interval: "Given what I observed and the Bayesian model I specified, where does 95% of the probability for the parameter lie?"
Summary Table
| Question | Confidence Interval | Credible Interval |
|---|---|---|
| What is random? | Data / estimator | Parameter uncertainty is represented probabilistically |
| What distribution is used? | Sampling distribution | Posterior distribution |
| Requires a prior? | No | Yes |
| Can we say P(parameter is in interval | data) = 0.95? | Not from the ordinary confidence interval interpretation | Yes, if the interval contains 95% posterior probability |
| Long-run coverage important? | Yes | No, not the defining criterion |
| Can prior information influence interval? | Not through a Bayesian prior | Yes |
| Can interval be asymmetric? | Yes, depending on method | Yes, naturally |
| Can interval be interpreted probabilistically after observing data? | Not in the Bayesian sense | Yes |
The Most Important Concept
The most important distinction is not the numerical calculation. It is the interpretation of probability.
A confidence interval is constructed from a procedure with a specified repeated-sampling coverage property.
A credible interval is constructed from a posterior distribution and contains a specified amount of posterior probability.
Thus:
The distinction becomes particularly important when communicating results to clinical collaborators.
A statement such as "there is a 95% probability that the treatment effect is between these values" is naturally Bayesian. A conventional frequentist confidence interval does not justify that statement without additional assumptions or a Bayesian reinterpretation.
Practical Workflow for Clinical Statisticians
Quick Reference
| If You Want to Say... | Natural Framework |
|---|---|
| "The procedure captures the true parameter 95% of the time in repeated use." | Confidence interval |
| "There is 95% posterior probability the parameter is in this interval." | Credible interval |
| "What is the probability the treatment effect exceeds 0?" | Bayesian posterior probability |
| "What is the long-run coverage of this interval procedure?" | Frequentist inference |
| "How does historical information affect inference?" | Bayesian prior / hierarchical model |
| "What values contain most of the posterior density?" | Credible interval / HPD interval |
References
Gelman, A., Carlin, J.B., Stern, H.S., Dunson, D.B., Vehtari, A. &
Rubin, D.B.
Bayesian Data Analysis.
CRC Press.
Casella, G. & Berger, R.L.
Statistical Inference.
Duxbury.
Bernardo, J.M. & Smith, A.F.M.
Bayesian Theory.
Wiley.
Box, G.E.P. & Tiao, G.C.
Bayesian Inference in Statistical Analysis.
Wiley.
Hobbs, B.P., Carlin, B.P. & Mandrekar, S.J.
Hierarchical models and Bayesian inference in clinical trials.