Tutorials › Biostatistics › Credible Intervals vs. Confidence Intervals

Bayesian Statistics & Statistical Inference

Credible Intervals vs. Confidence Intervals

A practical guide to the difference between Bayesian credible intervals and frequentist confidence intervals, including their mathematical foundations, interpretations, worked examples, posterior probability statements, and implementation in R.

Intermediate 15 min read

What You'll Learn

  • The fundamental difference between Bayesian and frequentist interval estimation
  • Why a 95% credible interval can be interpreted as a probability statement about the parameter
  • Why the usual interpretation of a 95% confidence interval is different
  • How priors affect Bayesian credible intervals
  • When credible and confidence intervals can produce very similar numerical results
  • How to calculate and interpret both types of intervals in R

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.

Key idea: A confidence interval is a statement about the long-run behavior of an interval-generating procedure, whereas a credible interval is a probability statement about the parameter conditional on the observed data and the Bayesian model.

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:

$$ \text{What values of }\theta\text{ remain plausible after seeing the data?} $$

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:

$$ \theta=\text{fixed unknown parameter} $$ $$ Y=\text{random data} $$

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:

$$ \pi(\theta) $$

After observing data \(y\), Bayes' theorem combines the prior with the likelihood:

$$ \pi(\theta\mid y) \propto L(\theta;y)\pi(\theta) $$

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.

Key idea: The Bayesian framework allows probability statements such as \(P(\theta>0\mid y)\) because uncertainty about \(\theta\) is represented by a posterior probability distribution.

What Is a 95% Confidence Interval?

Suppose a procedure produces an interval:

$$ [L(Y),U(Y)] $$

A 95% confidence interval is constructed so that, under repeated sampling, the interval contains the true parameter 95% of the time:

$$ P_\theta \left( L(Y)\le\theta\le U(Y) \right) = 0.95 $$

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.

1
Collect a random sample.
2
Calculate the 95% confidence interval.
3
Repeat the experiment many times.
4
Approximately 95% of the resulting intervals contain the true parameter.

The individual interval either contains the parameter or it does not. The 95% refers to the long-run performance of the interval-generating procedure.

Important: After the data have been observed, the true parameter is fixed. The interval is also fixed. In the classical frequentist framework, the 95% probability is not assigned to the already-observed parameter being inside that particular interval.

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:

$$ P \left( L\le\theta\le U \mid y \right) = 0.95 $$

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:

$$ P(1.2\le\theta\le2.8\mid y)=0.95 $$

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.

$$ P_\theta \left( L(Y)\le\theta\le U(Y) \right) =0.95 $$

This is the confidence-interval coverage statement.

$$ P \left( L\le\theta\le U \mid y \right) =0.95 $$

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.

Remember: Confidence intervals describe the repeated-sampling behavior of an interval procedure. Credible intervals describe posterior probability assigned to the parameter.

A Simple Normal Example

Suppose we observe a normally distributed endpoint:

$$ Y_1,\ldots,Y_n \sim N(\mu,\sigma^2) $$

Assume that \(\sigma\) is known. The sample mean is:

$$ \bar Y \sim N\left( \mu, \frac{\sigma^2}{n} \right) $$

A conventional 95% confidence interval for \(\mu\) is:

$$ \bar Y \pm 1.96\frac{\sigma}{\sqrt n} $$

Numerical Example

Suppose:

Quantity Value
Sample size 100
Sample mean 50
Known standard deviation 10
Confidence level 95%

The standard error is:

$$ SE(\bar Y) = \frac{10}{\sqrt{100}} = 1 $$

Therefore:

$$ 50\pm1.96(1) $$

giving:

$$ \boxed{[48.04,\;51.96]} $$

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:

$$ \mu \sim N(\mu_0,\tau^2) $$

The likelihood from the observed data is:

$$ \bar Y\mid\mu \sim N\left( \mu, \frac{\sigma^2}{n} \right) $$

Because the normal distribution is conjugate to the normal likelihood, the posterior distribution is also normal:

$$ \mu\mid y \sim N(\mu_n,\tau_n^2) $$

where:

$$ \tau_n^2 = \left( \frac{1}{\tau^2} + \frac{n}{\sigma^2} \right)^{-1} $$

and:

$$ \mu_n = \tau_n^2 \left( \frac{\mu_0}{\tau^2} + \frac{n\bar Y}{\sigma^2} \right) $$

Worked Bayesian Example

Suppose the prior is:

$$ \mu\sim N(45,10^2) $$

and the data are the same as above:

$$ \bar Y=50,\qquad n=100,\qquad \sigma=10 $$

The prior precision is:

$$ \frac{1}{10^2}=0.01 $$

The data precision is:

$$ \frac{n}{\sigma^2} = \frac{100}{100} = 1 $$

Therefore:

$$ \tau_n^2 = \frac{1}{0.01+1} \approx0.9901 $$

and:

$$ \mu_n = 0.9901 \left( \frac{45}{100} + \frac{100(50)}{100} \right) $$

so approximately:

$$ \boxed{\mu_n\approx49.50} $$

The posterior standard deviation is approximately:

$$ \sqrt{0.9901}\approx0.995 $$

A central 95% credible interval is therefore approximately:

$$ 49.50 \pm 1.96(0.995) $$

or:

$$ \boxed{[47.55,\;51.45]} $$

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.

$$ \text{Likelihood information} \gg \text{Prior information} $$

In that situation, the posterior distribution can become very similar to the sampling-based approximation used for a confidence interval.

Important: Numerical similarity does not mean the underlying interpretations are the same. Two intervals can have nearly identical endpoints while representing different statistical statements.

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:

$$ \text{Posterior} \propto \text{Likelihood} \times \text{Prior} $$

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:

$$ \hat\theta=4.2 $$

Suppose a 95% confidence interval is:

$$ [0.8,\;7.6] $$

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:

Frequentist: "There is a 95% probability that the true treatment effect is between 0.8 and 7.6."

Now suppose a Bayesian analysis produces a 95% credible interval:

$$ [1.0,\;7.4] $$

Then the Bayesian interpretation is:

Bayesian: "Given the observed data and the specified Bayesian model, the posterior probability that the treatment effect lies between 1.0 and 7.4 is 95%."

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:

$$ \theta>0 $$

represents a beneficial treatment effect. The Bayesian analysis can calculate:

$$ P(\theta>0\mid y) $$

For example:

$$ P(\theta>0\mid y)=0.992 $$

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:

$$ P(\theta>3\mid y) $$

and perhaps report:

$$ P(\theta>3\mid y)=0.94 $$

This directly answers the decision-relevant question:

Clinical interpretation: Given the data and the Bayesian model, there is 94% posterior probability that the treatment effect exceeds the clinically meaningful threshold of 3 units.

Confidence Intervals Cannot Be Interpreted This Way

Suppose a 95% confidence interval is:

$$ [2.1,\;6.7] $$

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:

$$ P(\theta>0\mid y) $$

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:

$$ P(\theta $$ P(\theta>U\mid y)=0.025 $$

Therefore:

$$ P(L\le\theta\le U\mid y)=0.95 $$

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:

$$ P(\theta\in C\mid y)=0.95 $$

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:

$$ \hat\theta\pm1.96\,SE $$

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.

Example: A 95% credible interval for a positive parameter might be \([0.42,1.87]\). There is no need for the interval to be symmetric around the posterior mean or median.

Odds Ratios and Hazard Ratios

Bayesian clinical analyses frequently work on a logarithmic scale. For example, let:

$$ \phi=\log(HR) $$

A posterior distribution for \(\phi\) can be transformed back to the hazard ratio scale:

$$ HR=e^\phi $$

If the 95% credible interval for \(\phi\) is:

$$ [-0.20,\;0.35] $$

then the corresponding hazard-ratio interval is:

$$ [e^{-0.20},e^{0.35}] $$

or approximately:

$$ [0.82,\;1.42] $$

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:

$$ x=18 $$ out of: $$ n=50 $$

patients responding. The observed response rate is:

$$ \hat p=\frac{18}{50}=0.36 $$

Suppose we use a Beta prior:

$$ p\sim Beta(1,1) $$

This is a uniform prior on the response probability.

The binomial likelihood is:

$$ X\mid p \sim Binomial(n,p) $$

and the posterior is:

$$ p\mid x \sim Beta(1+x,1+n-x) $$

Therefore:

$$ p\mid x \sim Beta(19,33) $$

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:

$$ [L,U] = \left[ q_{0.025}, q_{0.975} \right] $$

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:

$$ p\sim Beta(8,32) $$

This prior has mean:

$$ E(p)=\frac{8}{8+32}=0.20 $$

The corresponding posterior becomes:

$$ p\mid x \sim Beta(8+18,32+32) $$

or:

$$ p\mid x \sim Beta(26,64) $$

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

Incorrect frequentist statement: "There is a 95% probability that the true treatment effect lies within the 95% confidence interval."

This is not the standard frequentist interpretation.

Correct Bayesian statement: "Given the data and model, there is 95% posterior probability that the parameter lies within the 95% credible interval."

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.

Bottom line: Neither interval is universally superior. The choice depends on the inferential framework, scientific objectives, available prior information, and assumptions that are appropriate for the problem.

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:

$$ P(\theta>0\mid y)=0.975 $$

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:

$$ p=0.31 $$ and: $$ 95\%\,CrI=[0.22,0.41] $$

The analysis can also report:

$$ P(p>0.20\mid y)=0.97 $$

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:

$$ \theta_i\sim N(\mu,\tau^2) $$

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.

$$ P(\theta>\theta_{\text{clinically meaningful}}\mid y) $$

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:

$$ P(\theta\mid y,\text{model}) $$

The model includes assumptions about the likelihood, prior distribution, parameterization, and any hierarchical structure.

Important: A Bayesian credible interval is not simply "the probability that the parameter is in the interval." It is the posterior probability conditional on the specified model and observed data.

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:

$$ \hat p=0.36 $$

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:

$$ P(p>0.25\mid y) $$

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

F
Confidence interval: Imagine repeating the entire experiment many times and watching how often the interval-generating procedure captures the fixed parameter.
B
Credible interval: Imagine looking at the posterior distribution after observing the data and asking which parameter values contain 95% of the posterior probability.

When the Intervals Agree

The two approaches can converge numerically under certain conditions. For example, with a large sample and a relatively weak prior:

$$ CrI_{95\%} \approx CI_{95\%} $$

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

  1. Saying that a 95% confidence interval has a 95% probability of containing the parameter. This is not the standard frequentist interpretation.
  2. Assuming a credible interval is automatically equivalent to a confidence interval. The numerical values can be similar while the statistical meanings differ.
  3. Ignoring the prior. A Bayesian credible interval depends on the prior distribution.
  4. Reporting a credible interval without describing the model. Posterior inference is conditional on the Bayesian model.
  5. Assuming Bayesian intervals must be symmetric. Posterior distributions can be skewed, producing asymmetric credible intervals.
  6. Assuming an informative prior is always beneficial. A poorly justified prior can materially influence inference in undesirable ways.
  7. Using "credible interval" and "confidence interval" interchangeably. The distinction should be preserved in statistical reporting.
  8. 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:

Example: "The estimated treatment difference was 4.2 units (95% CI: 0.8 to 7.6)."

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:

Example: "The posterior median treatment difference was 4.1 units (95% CrI: 1.0 to 7.4)."

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:

$$ \pi_1(\theta), \qquad \pi_2(\theta), \qquad \pi_3(\theta) $$

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

Think of the distinction this way:

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:

$$ \boxed{ \text{Confidence interval} \rightarrow \text{coverage} } $$
$$ \boxed{ \text{Credible interval} \rightarrow \text{posterior probability} } $$

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.

Bottom line: A 95% confidence interval and a 95% credible interval are not simply two names for the same statistical object. A confidence interval has a 95% long-run coverage interpretation under repeated sampling. A credible interval contains 95% of the posterior probability for the parameter conditional on the observed data and Bayesian model. The intervals can be numerically similar, especially with large samples and weak priors, but their inferential meanings are fundamentally different.

Practical Workflow for Clinical Statisticians

1
Define the parameter of clinical interest.
2
Decide whether the analysis is fundamentally frequentist or Bayesian.
3
For a frequentist analysis, select an interval method with appropriate coverage properties.
4
For a Bayesian analysis, specify the likelihood and prior distribution.
5
Obtain the sampling distribution or posterior distribution as appropriate.
6
Construct the confidence or credible interval.
7
Interpret the interval using the correct statistical framework.
8
For Bayesian analyses, assess sensitivity to reasonable prior specifications.
9
Report the method and assumptions transparently.

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.