Posterior Summaries
& Credible Intervals
Learn how to summarize posterior distributions with point estimates and interval estimates, and understand why credible intervals give direct probability statements about parameters.
What Is a Posterior Distribution?
In Bayesian statistics, after observing data \( \mathbf{x} \), we update our prior beliefs about a parameter \( \theta \) to obtain the posterior distribution via Bayes' theorem:
Why Do We Need Summaries?
Posterior Point Estimates
Visualizing Skewed Posteriors
What Is a Credible Interval?
A \( 100(1-\alpha)\% \) credible interval (or credible region) is any set \( C \subseteq \Theta \) such that:
Types of Credible Intervals
ETI vs HPD on a Skewed Posterior
Credible vs Confidence Intervals
| Credible Interval | Confidence Interval | |
|---|---|---|
| Framework | Bayesian | Frequentist |
| Interpretation | 95% probability \( \theta \in C \) | 95% of such intervals cover \( \theta \) |
| \( \theta \) treated as | Random variable | Fixed constant |
| Depends on | Prior + Data | Data only |
| Width | Shrinks with informative prior | Only shrinks with more data |
Formal HPD Definition
The Highest Posterior Density (HPD) region of level \( 1 - \alpha \) is:
where \( k_\alpha \) is the largest constant such that:
How to Compute Posterior Summaries
Example 1: Beta-Binomial
A coin is flipped \( n = 20 \) times; we observe \( y = 14 \) heads. With a \( \text{Beta}(2, 2) \) prior, the posterior is:
Beta(16,8) Posterior Density
Example 2: Normal-Normal Conjugacy
Suppose \( X_1, \ldots, X_n \mid \mu \sim N(\mu, \sigma^2) \) with known \( \sigma^2 = 4 \), and prior \( \mu \sim N(\mu_0, \tau_0^2) \) with \( \mu_0 = 0 \), \( \tau_0^2 = 9 \). After observing \( n = 10 \) data points with \( \bar{x} = 3.1 \):
Normal Posterior: 95% Credible Interval
Since the normal distribution is symmetric, the ETI and HPD are identical:
Loss Functions and Optimal Estimates
The choice of point estimate is linked to the loss function we wish to minimize under the posterior:
| Loss Function | Formula | Optimal Estimate |
|---|---|---|
| Squared Error | \( L(\theta, \hat\theta) = (\theta - \hat\theta)^2 \) | Posterior Mean |
| Absolute Error | \( L(\theta, \hat\theta) = |\theta - \hat\theta| \) | Posterior Median |
| 0-1 Loss | \( L(\theta, \hat\theta) = \mathbf{1}(\theta \neq \hat\theta) \) | Posterior Mode (MAP) |
Common Mistakes
Summary Cheat Sheet
| Summary | Definition | Best When |
|---|---|---|
| Posterior Mean | \( E[\theta \mid \mathbf{x}] \) | Squared-error loss; symmetric posterior |
| Posterior Median | 50th percentile | Absolute-error loss; skewed posterior |
| MAP / Mode | \( \arg\max\, p(\theta \mid \mathbf{x}) \) | 0-1 loss; quick estimate |
| ETI | Quantile-based interval | Symmetric, unimodal posteriors |
| HPD | Shortest interval at given level | Skewed or multimodal posteriors |
Question 1 of 5
A 95% Bayesian credible interval for \( \theta \) means:
Question 2 of 5
Which point estimate minimizes the expected squared-error loss under the posterior?
Question 3 of 5
For a right-skewed, unimodal posterior, which interval type will generally be shorter?
Question 4 of 5
If the posterior is \( \theta \mid \mathbf{x} \sim \text{Beta}(10, 10) \), which statement is true?
Question 5 of 5
You have 5000 MCMC samples from a posterior. To compute the 90% HPD interval, you should: