Why Posterior Summaries Need Context
A number such as “3.85” is not a complete treatment-effect result. Readers need to know what effect it summarizes, how the endpoint is measured, which patients are represented, and which feature of the posterior distribution the number describes. A posterior mean, a posterior median, and a posterior quantile answer different summary questions; they are not interchangeable labels for a single estimate.
In a clinical trial, the estimand states the treatment effect of interest. For example, it might be the treatment-minus-control difference in mean change from baseline at week 12 among randomized patients, under a specified approach to outcomes after treatment discontinuation. The endpoint scale states how that effect is expressed, such as millimetres of mercury or a log odds ratio. The analysis population identifies the patients to whom the summary pertains. State these alongside the numerical summaries so that readers can interpret the result without guessing.
For a continuous posterior, the \(p\)-quantile satisfies \(P(\theta\leq Q_p\mid D)=p\). For a discrete posterior, the cumulative probability can jump over \(p\); the definition using the infimum still specifies the quantile. A mean requires a posterior with a finite first moment. A median and quantiles can be defined even when the posterior mean does not exist.
Choosing the Summary
The mean uses the magnitude of all posterior values and is often useful when the estimand is an average effect or when decisions are evaluated using squared-error loss. It can, however, be pulled by a small amount of posterior mass far into a tail. The median is a central value defined by posterior probability on either side, and is less sensitive to extreme tail values. If the posterior is symmetric, has a unique center, and has a finite first moment, the mean and median coincide; otherwise, they may differ.
Selected quantiles describe locations in the posterior distribution. For example, \(Q_{0.05}\) and \(Q_{0.95}\) identify the 5th and 95th posterior percentiles. Reporting them gives readers information about spread and asymmetry that a single point summary cannot provide. The pair alone does not describe every feature of the posterior, and the posterior mean or median should not be used as a substitute for specifying which quantiles were calculated.
The choice of point summary should be prespecified or justified by the purpose of the analysis, not selected after comparing which number looks most favorable. In a regulatory report, consistency with the estimand, analysis plan, and other reported results matters. If both mean and median are informative, report both and name each explicitly.
A Brief Justification for Mean and Median
Their different roles can be seen through loss functions. Suppose a single reported value \(a\) is used to represent \(\theta\), and consider posterior expected squared error. For a posterior with finite variance,
The cross-product term vanishes because \(E[\theta-E(\theta\mid D)\mid D]=0\). The first term does not depend on \(a\), so the expected squared error is minimized at \(a=E(\theta\mid D)\), the posterior mean.
For absolute error, the expected loss is \(E[|\theta-a|\mid D]\). When the posterior has a continuous distribution with cumulative distribution function \(F\), its derivative with respect to \(a\), where defined, is \(2F(a)-1\). The loss decreases where \(F(a)<0.5\) and increases where \(F(a)>0.5\); consequently a median minimizes expected absolute error. This explains the loss-based distinction; it does not imply that every clinical report must select a summary solely by a formal loss function.
Worked Example: A Symmetric Posterior for a Blood-Pressure Effect
Suppose a hypothetical trial estimates \(\Delta\), the treatment-minus-control difference in mean reduction in systolic blood pressure at week 12, among randomized patients. Positive values favor the treatment because a larger reduction is beneficial. Under the prespecified model, suppose the posterior is \(N(3.8462,1.9612^2)\), in millimetres of mercury. The posterior standard deviation is \(1.9612\) mmHg.
For a normal posterior, the mean and median both equal the center, \(3.8462\) mmHg. The \(p\)-quantile is the center plus the standard normal \(p\)-quantile times the posterior standard deviation. Using \(z_{0.05}=-1.6448536\) and \(z_{0.95}=1.6448536\):
To three decimal places, these are \(0.620\) mmHg and \(7.072\) mmHg. A concise report is: “Among randomized patients, the posterior mean and median treatment-minus-control difference in mean week-12 systolic blood-pressure reduction were both 3.846 mmHg; the 5th and 95th posterior quantiles were 0.620 and 7.072 mmHg.” The estimand, endpoint, direction, population, and identity of each summary are stated. The quantiles have been calculated from the displayed posterior parameters and rounded consistently.
Summaries From Posterior Draws
In many analyses, posterior summaries are computed from draws rather than a closed-form distribution. For equally weighted draws, the mean is approximated by their arithmetic average. The median and quantiles are obtained by ordering the draws and applying a stated quantile convention. With weighted draws, the weights must be normalized to sum to one, and the cumulative normalized weights determine quantiles. Monte Carlo error means draw-based summaries are estimates of the corresponding posterior quantities, not exact values.
Worked Example: A Skewed Posterior Approximation
Consider a hypothetical posterior approximation for a treatment-minus-control difference in days to symptom resolution among randomized patients. Positive values mean slower resolution in the treatment group. The five displayed effect values have the following posterior probabilities:
| Effect, days | Posterior probability | Cumulative probability |
|---|---|---|
| -2 | 0.10 | 0.10 |
| 0 | 0.20 | 0.30 |
| 1 | 0.40 | 0.70 |
| 3 | 0.20 | 0.90 |
| 8 | 0.10 | 1.00 |
The probabilities sum to \(1.00\), so they form a normalized discrete posterior approximation. Its posterior mean is the probability-weighted average:
The cumulative probability first reaches at least \(0.50\) at 1 day, so the median is 1 day. The 5th percentile is \(-2\) days because the cumulative probability at that value is already \(0.10\); the 95th percentile is 8 days because the cumulative probability remains \(0.90\) through 3 days and reaches \(1.00\) at 8 days. Under the stated quantile definition, the mean is 1.60 days, the median is 1 day, \(Q_{0.05}=-2\) days, and \(Q_{0.95}=8\) days.
The difference between mean and median reflects the influence of the upper-tail value of 8 days. A report should identify the values as summaries of the posterior, not imply that the mean is the most probable effect. For example: “For the treatment-minus-control difference in days to symptom resolution among randomized patients, the posterior mean was 1.60 days and the median was 1 day; the 5th and 95th posterior quantiles were -2 and 8 days.”
Report the Scale on Which the Summary Was Calculated
A treatment effect may be modeled on a transformed scale and reported on a more familiar scale. It is essential to distinguish “transform the posterior summary” from “summarize the transformed posterior.” These operations generally give different answers. For a continuous, strictly increasing transformation \(g\), a posterior quantile transforms directly: the \(p\)-quantile of \(g(\theta)\) is \(g(Q_p)\). The mean generally does not: \(E[g(\theta)\mid D]\) is not usually equal to \(g(E[\theta\mid D])\).
Worked Example: Reporting a Log Odds Ratio and an Odds Ratio
Suppose a hypothetical trial models \(\theta\), the treatment-versus-control log odds ratio for a favorable binary response among randomized patients, as \(N(0.20,0.30^2)\). The odds ratio is \(R=\exp(\theta)\), with values above 1 favoring treatment under this definition. On the log odds ratio scale, the posterior mean and median are both 0.20.
The posterior median odds ratio is the exponential of the log-scale median:
The posterior mean odds ratio instead uses the lognormal mean formula. If \(\theta\sim N(\mu,\sigma^2)\), then \(E[\exp(\theta)]=\exp(\mu+\sigma^2/2)\). Therefore:
For the 5th and 95th quantiles, first calculate the log-scale quantiles, \(0.20\pm1.6448536(0.30)\), giving approximately \(-0.29346\) and \(0.69346\). Exponentiating gives \(Q_{0.05}(R\mid D)\approx0.746\) and \(Q_{0.95}(R\mid D)\approx2.001\). The correct report distinguishes the scales: the log odds ratio posterior mean and median are 0.20, while the posterior mean and median odds ratios are approximately 1.278 and 1.221. The 5th and 95th posterior odds-ratio quantiles are approximately 0.746 and 2.001.
Practical Checks and Common Reporting Errors
Before finalizing a report, check that the posterior being summarized corresponds to the intended estimand, model, prior, and analysis population. Confirm that treatment-effect direction is stated, that units or the dimensionless ratio scale are clear, and that each number is labelled as a mean, median, or specified quantile. When posterior draws are used, check that the draws and weights are handled as intended and that the quantile algorithm is documented when reproducibility requires it. Summaries calculated from poorly mixing or otherwise inadequate draws may not reliably represent the posterior; numerical precision in a table cannot repair that problem.
A common mistake is to report the exponential of a posterior mean log odds ratio as “the posterior mean odds ratio.” In the example above, \(\exp(0.20)=1.221\) is the posterior median odds ratio, not the posterior mean odds ratio; the latter is approximately 1.278. The correction is to calculate the target summary on the scale being reported, or label the transformed summary accurately. Another frequent error is to give quantiles without naming their probabilities, or to omit the population and endpoint. A list of numbers without those labels is ambiguous even when the arithmetic is correct.
Mean, median, and quantiles are compact summaries, not complete representations of a posterior distribution. Two distributions can have the same mean and quantiles but differ in other ways. If summaries appear inconsistent with plots or other model outputs, investigate the model, computation, transformations, and population definitions rather than choosing whichever summary supports a preferred conclusion. The full posterior distribution may be needed to understand features that a few selected numbers conceal.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- A discrete posterior assigns probability 0.25 to 2, 0.50 to 4, and 0.25 to 10. Find its mean and median.
- If \(\theta\sim N(-0.10,0.20^2)\) is a log odds ratio, find the posterior median and mean odds ratio.
- What information is missing from the report “The posterior estimate was 4.2”?
- A posterior assigns probabilities 0.20, 0.50, and 0.30 to effects 0, 1, and 5 days, respectively. Using the quantile definition in this tutorial, find \(Q_{0.25}\), the median, and \(Q_{0.90}\).
Solutions. (1) The mean is \((2)(0.25)+(4)(0.50)+(10)(0.25)=5\). The cumulative probability is 0.25 at 2 and 0.75 at 4, so the median is 4. (2) The posterior median odds ratio is \(\exp(-0.10)\approx0.9048\). The posterior mean odds ratio is \(\exp(-0.10+0.20^2/2)=\exp(-0.08)\approx0.9231\). (3) The report should identify the estimand, endpoint scale and units, analysis population, and whether 4.2 is a posterior mean, median, or another summary; any quantiles should name their probability levels. (4) The cumulative probabilities at 0, 1, and 5 are 0.20, 0.70, and 1.00. Thus \(Q_{0.25}=1\), the median is 1, and \(Q_{0.90}=5\).