Tutorials › Multi-Arm Multi-Stage (MAMS) Designs › Posterior Probabilities of Treatment Rankings

Bayesian Multi-Arm Approaches · Tutorial 397 of 499

Posterior Probabilities of Treatment Rankings

Learn how to summarize posterior uncertainty in treatment rankings, including how to compute rank probabilities and handle exact ties.

Advanced 12 min read

What You'll Learn

  • Define first-place and rank-specific posterior probabilities for multiple treatment arms.
  • Estimate rank probabilities from joint posterior draws while preserving dependence between arms.
  • Calculate a two-arm ranking probability from a normal posterior contrast.
  • Distinguish exact ties from close estimates and from ties caused by rounding.
  • Choose and report a tie convention that makes ranking probabilities interpretable.
  • Diagnose Monte Carlo error and avoid treating a likely top-ranked arm as certainly best.

Why Summarize a Posterior by Rank?

An estimated treatment effect gives a direction and magnitude, but it does not by itself show how uncertain the ordering of several arms is. An arm with the largest posterior mean may have only a modest probability of being best if its posterior distribution overlaps substantially with those of other arms. Posterior ranking probabilities make that uncertainty visible: they describe how often each arm occupies first place, second place, and so on across the posterior distribution.

The ranking depends on the outcome scale and direction. In this tutorial, let \(\theta_i\) denote the treatment effect for arm \(i\), expressed on a common scale where larger values are more beneficial. If the original outcome is one where smaller values are better, the effect should be defined or transformed so that this convention holds. A ranking is a description of the posterior distribution of these effects; it is not a claim that an arm has a clinically important benefit or that it should automatically be selected.

Definition: For \(K\) treatment arms with effects \(\theta_1,\ldots,\theta_K\), the posterior probability that arm \(i\) ranks first is \(P(\theta_i \geq \theta_j\text{ for all }j\mid\text{data})\), with the treatment of equality specified explicitly. The posterior probability that arm \(i\) occupies rank \(r\) is the posterior probability that its position in the ordered list of effects is \(r\), again under a stated convention for ties.

These probabilities refer to uncertainty about the effects conditional on the observed data and the specified Bayesian model. They are not probabilities that the model is true, and they are not frequentist error rates. The likelihood, prior, and posterior must be appropriate for the trial, and the ranking is meaningful only when the arm effects are comparable on a shared estimand and scale.

Computing Rankings From Joint Posterior Draws

A practical general method is to obtain draws from the joint posterior distribution of all arm effects. For each draw, order the effects from largest to smallest and record each arm’s rank. If \(\theta_i^{(m)}\) is the effect for arm \(i\) in draw \(m\), then, when there are no ties, the estimated probability that arm \(i\) ranks first is the fraction of draws in which it has the largest effect.

$$ \widehat{P}(\text{arm }i\text{ ranks first}\mid\text{data}) = \frac{1}{M}\sum_{m=1}^{M} I\!\left(\theta_i^{(m)}>\theta_j^{(m)}\text{ for every }j\ne i\right). $$

Here \(M\) is the number of posterior draws and \(I(\cdot)\) equals 1 when the condition is true and 0 otherwise. For rank \(r\), replace the first-place indicator with an indicator that arm \(i\) occupies position \(r\). A key requirement is that each draw represents a joint draw across arms. Drawing each arm separately from its marginal posterior and pairing the values arbitrarily can destroy posterior dependence and produce incorrect ranking probabilities. This matters, for example, when treatment contrasts share a control.

Worked Example: Rank Probabilities From Joint Posterior Draws

Suppose a hypothetical trial compares three arms, A, B, and C. Effects are measured in points of symptom improvement, with larger effects better. The following ten rows are illustrative joint posterior draws. They are deliberately few so the rank counting can be checked directly; a real analysis would use many more draws.

DrawABCOrdering, largest to smallest
11.20.80.1A, B, C
20.40.90.5B, C, A
30.70.60.8C, A, B
40.30.50.2B, A, C
50.90.40.6A, C, B
60.20.70.8C, B, A
70.60.30.5A, C, B
80.50.40.9C, A, B
90.80.90.2B, A, C
100.10.20.3C, B, A

A is first in draws 1, 5, and 7, so its estimated first-place probability is \(3/10=0.30\). B is first in draws 2, 4, and 9, giving \(3/10=0.30\). C is first in draws 3, 6, 8, and 10, giving \(4/10=0.40\). These probabilities sum to 1 because each draw has exactly one first-ranked arm.

The full rank distribution gives more information. A occupies second place in draws 3, 4, 8, and 9, so its second-place estimate is \(4/10=0.40\); it is third in the remaining three draws, or \(0.30\). The same count gives B probabilities of \(0.30\), \(0.30\), and \(0.40\) for ranks one, two, and three, respectively. C has probabilities \(0.40\), \(0.30\), and \(0.30\). The first-place differences in this small example are imprecise Monte Carlo estimates, not fine distinctions among the arms.

Deriving a Rank Probability From a Normal Contrast

With two arms and no ties, the ranking problem reduces to a single posterior contrast. Let \(\Delta=\theta_A-\theta_B\). Arm A ranks first exactly when \(\Delta>0\). If the posterior for this contrast is normal, the desired probability follows by standardizing the contrast. This calculation also shows why a positive posterior mean alone does not determine how likely A is to rank first: its uncertainty matters.

$$ \Delta\mid\text{data}\sim N(\mu_\Delta,\sigma_\Delta^2) \quad\Longrightarrow\quad P(A\text{ ranks first}\mid\text{data}) =P(\Delta>0\mid\text{data}) =\Phi\!\left(\frac{\mu_\Delta}{\sigma_\Delta}\right), $$

where \(\Phi\) is the standard normal cumulative distribution function. The equality follows because \((\Delta-\mu_\Delta)/\sigma_\Delta\) has a standard normal posterior distribution, so the event \(\Delta>0\) is equivalent to \((\Delta-\mu_\Delta)/\sigma_\Delta>-\mu_\Delta/\sigma_\Delta\).

Worked Example: Ranking Two Arms Using Their Posterior Contrast

Suppose a hypothetical analysis gives the posterior contrast between arms A and B, measured in points of symptom improvement, as \(\Delta\mid\text{data}\sim N(0.40,0.50)\). The second parameter is the variance, so the posterior standard deviation is \(\sqrt{0.50}=0.7071\) points. This example assumes the stated normal posterior contrast is valid; it does not require the two arm effects to be independent.

The probability that A ranks above B is \[ P(\Delta>0\mid\text{data}) = \Phi\!\left(\frac{0.40}{\sqrt{0.50}}\right) = \Phi(0.5657) \approx 0.714. \] Thus, conditional on this posterior model and the data, A has about a 71.4% probability of ranking above B. This does not say that A is 71.4% better, and it does not establish that the difference is clinically important. The posterior still assigns about \(1-0.714=0.286\), or 28.6%, probability to B ranking higher.

For more than two arms, the probability that arm \(i\) ranks first is a joint probability involving all contrasts \(\theta_i-\theta_j\). Those contrasts can be correlated, especially with a shared control. In general, multiplying separate pairwise probabilities is not valid: the events that arm \(i\) beats each competitor are dependent. Joint posterior draws handle this dependence directly. For a specified multivariate normal posterior, the same probability can also be expressed as a multivariate probability over the region where all those contrasts are positive.

Exact Ties, Near-Ties, and Rank Conventions

When posterior effects have a joint density, every pairwise difference has a continuous distribution, and the probability of an exact tie is zero. More generally, it is enough that each pairwise difference has a continuous distribution. Having continuous marginal distributions for each arm, or merely having a nonzero variance for a pairwise difference, is not enough to rule out a tie: a difference can have positive probability mass at zero even when both marginal distributions are continuous.

If the model permits point masses, such as a discrete component that sets two effects equal, an exact tie can have positive posterior probability. The analyst must then state how ties affect the reported rankings. One option is to report the probability of being tied for first; under this convention, two arms tied for first each receive that draw as a first-place event, so the probabilities across arms can sum to more than 1. Another option is to split the tied first-place draw equally among the tied arms, so the first-place probabilities sum to 1. Neither convention is universally right for every decision; the convention must be clear and match the question being answered.

Worked Example: A Posterior With Positive Probability of an Exact Tie

Consider a hypothetical two-arm posterior constructed as follows. Draw \(X\) from a continuous distribution. With probability 0.5 set \(\theta_B=X\); with probability 0.5 set \(\theta_B=X+1\). In both cases set \(\theta_A=X\). The marginal distributions of both effects are continuous, but the difference \(\theta_A-\theta_B\) equals 0 with probability 0.5 and \(-1\) with probability 0.5. Thus its variance is positive, yet the arms tie exactly with probability 0.5.

Under the convention “probability of being tied for first,” A is tied for first in the tie case and is behind in the other case, so its probability is \(0.50\). B is tied for first in the tie case and ranks first in the other case, so its probability is \(0.50+0.50=1.00\). The sum is 1.50 because a tied draw counts for both arms. Under the alternative convention that splits a tie equally, A receives \(0.50/2=0.25\) from the tie case, while B receives \(0.25\) from that case and \(0.50\) from the non-tie case. Their first-place probabilities are then 0.25 and 0.75, which sum to 1.

A tie created only by rounding displayed values is not evidence of a posterior point mass. Rank using the unrounded draws when available, and avoid declaring effects equal just because two reported posterior means have the same number of decimal places. Conversely, if exact ties are possible under the model, silently breaking them by arm label produces arbitrary rank probabilities. When close but unequal effects are a concern, report the rank distribution and relevant pairwise posterior probabilities rather than treating “near-tie” as an exact tie. A clinically meaningful difference is a separate question from which effect is numerically largest.

Interpretation, Diagnostics, and Alternatives

Ranking summaries are most informative when reported as a distribution, not only as a list ordered by posterior mean. A first-place probability of 0.45 indicates substantial uncertainty about which arm is best, even if that arm has the largest posterior mean. Likewise, an arm can often rank second while having a small chance of ranking first. The rank probabilities do not communicate the magnitude of differences: an arm may rank first by a negligible amount, or by a clinically important amount.

With posterior simulation, assess whether the chains adequately explore the joint posterior and whether rank indicators have stabilized. Rank indicators can be more variable than posterior means, so adequate convergence of means alone does not guarantee precise rank probabilities. A rough Monte Carlo standard error for an independently sampled first-place indicator with estimated probability \(\hat p\) is \[ \sqrt{\frac{\hat p(1-\hat p)}{M}}. \] For dependent draws, use an effective sample size for the rank indicator or another method that accounts for autocorrelation. Report sufficient precision: many decimal places do not compensate for too few effective draws.

The earlier material on posterior probability that an arm is superior concerns comparisons such as whether one arm exceeds a specified reference. A ranking answers a different question: which position an arm occupies relative to all the other arms. Sorting posterior means is a simple alternative, but it provides only one ordering and hides uncertainty. Pairwise superiority probabilities can clarify individual comparisons, but they do not by themselves give the joint probability of an arm ranking first. Posterior ranking probabilities likewise do not replace a clinically defined benefit threshold or a decision rule that accounts for other considerations.

Key takeaway: Compute ranks within joint posterior draws, state how exact ties are handled, and report uncertainty across ranks. A top-ranked arm is not necessarily clearly superior, clinically important, or the preferred decision.

Common Mistakes and Failure Modes

  • Ranking posterior means and reporting the result as certainty. A fixed order of means is not a posterior probability. Count ranks across posterior draws or calculate the appropriate joint posterior probability.
  • Multiplying pairwise probabilities to get a first-place probability. Pairwise comparisons involving one arm are generally dependent. Use joint draws or a valid joint probability calculation.
  • Assuming continuous marginals eliminate ties. This conclusion requires, for example, that every pairwise difference has a continuous distribution. A point mass at zero can remain even when each marginal is continuous.
  • Ignoring shared-control dependence. The arm effects or contrasts may be correlated. Preserve that dependence in joint draws rather than simulating each arm independently.
  • Equating rank with importance. First place identifies the largest effect in a draw; it does not imply a clinically meaningful difference. Interpret the magnitude and clinical threshold separately.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. Across 200 joint posterior draws, arm A ranks first 86 times. What is its estimated first-place probability?
  2. For two arms, suppose the posterior contrast \(\Delta=\theta_A-\theta_B\) is \(N(0.30,0.36)\), with larger effects better. Calculate the probability that A ranks first.
  3. Why is it generally incorrect to multiply the probabilities that arm A beats B and that arm A beats C to obtain A’s probability of ranking first?
  4. What condition ensures that exact ties have posterior probability zero, and why are continuous marginal distributions alone insufficient?
  5. In one posterior draw, A and B tie for first. Under an equal-splitting convention, how is this draw counted for their first-place probabilities?

Solutions. (1) The estimate is \(86/200=0.43\), or 43%. (2) The posterior standard deviation is \(\sqrt{0.36}=0.60\), so \(P(\Delta>0\mid\text{data})=\Phi(0.30/0.60)=\Phi(0.50)\approx0.6915\). Thus A has about a 69.2% probability of ranking first. (3) The events that A beats B and A beats C are generally dependent, so their marginal probabilities do not determine the probability that both events occur. Use joint posterior draws or the joint distribution. (4) If every pairwise difference has a continuous distribution, it has zero probability of equaling zero. Continuous marginals do not guarantee this: a joint posterior may place positive mass on equal effects. (5) Count one-half of the draw for A and one-half for B, so the draw contributes 0.5 to each arm’s first-place count and 1 in total.

Clinical Biostats