Why Prior Location Matters
In response-adaptive randomization, observed outcomes influence the probabilities of assigning future participants to each treatment. In Bayesian or bandit-style designs, prior distributions affect the early estimates that drive those probabilities. The prior's location can therefore matter even when its uncertainty is unchanged: an optimistic prior places more mass on higher response rates, a skeptical prior places more mass on lower rates, and a treatment-differential prior initially favors one arm over another.
The aim here is to isolate that location effect. The prior concentration will be held fixed across comparisons, so a change in the results is not being attributed to a change in prior uncertainty. This is a controlled sensitivity analysis, not a claim that one location is universally appropriate. The consequences depend on the true response rates, the adaptation rule, and how much data accrue before allocation becomes strongly adaptive.
The beta-binomial model assumes that, within each arm, responses are Bernoulli with a constant probability \(\theta_j\), conditional on \(\theta_j\), and that participant responses are conditionally independent. For the examples, outcomes are available before the next assignment, treatment effects are stable during enrollment, and assignment probabilities follow the specified rule. These assumptions make the updating calculation transparent; departures from them can make the resulting operating characteristics inapplicable.
For a concrete comparison, consider Thompson sampling: after each observed response, draw one value from each arm's posterior distribution and assign the next participant to the arm with the larger draw. With independent continuous posteriors, the probability of assigning arm A is \(P(\theta_A>\theta_B\mid\text{data})\). The examples compare priors for this rule, not every possible adaptive algorithm. Initial allocation, stopping, and any allocation safeguards must also be specified in an actual design.
Constructing Comparable Prior Scenarios
Take two treatment arms, A and B, and set the concentration to \(\kappa=20\) for each arm in every scenario. A symmetric optimistic prior uses a higher prior mean on both arms; a symmetric skeptical prior uses a lower mean on both arms. A treatment-differential prior instead gives A a higher prior mean than B. A neutral symmetric prior is useful as a reference.
| Scenario | Prior for A | Prior for B | Interpretation |
|---|---|---|---|
| Neutral | \(\mathrm{Beta}(10,10)\) | \(\mathrm{Beta}(10,10)\) | Both means are 0.50 |
| Optimistic | \(\mathrm{Beta}(12,8)\) | \(\mathrm{Beta}(12,8)\) | Both means are 0.60 |
| Skeptical | \(\mathrm{Beta}(6,14)\) | \(\mathrm{Beta}(6,14)\) | Both means are 0.30 |
| Differential, favoring A | \(\mathrm{Beta}(12,8)\) | \(\mathrm{Beta}(8,12)\) | Means are 0.60 for A and 0.40 for B |
Each prior in the table has \(a_j+b_j=20\). The optimistic and skeptical scenarios shift both arms together, while the differential scenario changes the prior contrast between arms. These are distinct perturbations: a global shift concerns the assumed level of response, whereas a differential shift concerns the assumed relative advantage of a treatment.
Worked Example: Checking That Prior Concentration Is Fixed
For the optimistic prior on A, \(m_A=12/(12+8)=0.60\) and \(\kappa_A=12+8=20\). For the skeptical prior on A, \(m_A=6/(6+14)=0.30\) and \(\kappa_A=6+14=20\). Thus the location changes by \(0.30\), while the concentration remains 20.
For the differential scenario, arm B has \(m_B=8/(8+12)=0.40\) and \(\kappa_B=8+12=20\), while arm A has mean 0.60 and concentration 20. The prior mean contrast is \(0.60-0.40=0.20\). Because both arms retain the same concentration as in the symmetric scenarios, this comparison changes prior location rather than prior concentration.
Posterior Updating and the Effect of Location
If \(x_j\) responses are observed among \(n_j\) participants on arm \(j\), beta-binomial conjugacy gives the posterior \(\mathrm{Beta}(a_j+x_j,b_j+n_j-x_j)\). Its mean can be expressed using the prior mean and the observed response proportion:
This is a weighted average of the prior mean and the observed response proportion, with weights proportional to prior concentration and sample size. For the same \(n_j\) and \(x_j\), changing the prior mean from \(m_1\) to \(m_0\), while keeping \(\kappa_j\) fixed, changes the posterior mean by
The difference shrinks as \(n_j\) increases, but it need not be negligible early in a trial. Importantly, Thompson sampling responds to the full posterior distributions, not just their means. A prior-location change can affect both the posterior mean and the probability that one arm has the larger response probability.
Worked Example: Comparing Posterior Means After the Same Outcomes
Suppose each arm has enrolled 10 participants: A has 6 responses and B has 4. The observed response proportions are 0.60 and 0.40. Update the neutral, optimistic, skeptical, and differential priors from the table.
Under the neutral prior, A's posterior is \(\mathrm{Beta}(10+6,10+4)=\mathrm{Beta}(16,14)\), with mean \(16/30=0.5333\). B's posterior is \(\mathrm{Beta}(10+4,10+6)=\mathrm{Beta}(14,16)\), with mean \(14/30=0.4667\).
Under the optimistic prior, A's posterior is \(\mathrm{Beta}(12+6,8+4)=\mathrm{Beta}(18,12)\), with mean \(18/30=0.6000\). B's posterior is \(\mathrm{Beta}(12+4,8+6)=\mathrm{Beta}(16,14)\), with mean \(16/30=0.5333\).
Under the skeptical prior, A's posterior is \(\mathrm{Beta}(6+6,14+4)=\mathrm{Beta}(12,18)\), with mean \(12/30=0.4000\). B's posterior is \(\mathrm{Beta}(6+4,14+6)=\mathrm{Beta}(10,20)\), with mean \(10/30=0.3333\). The data favor A by the same observed difference of 0.20 in every scenario, but the absolute posterior means differ substantially.
Under the differential prior favoring A, A's posterior is \(\mathrm{Beta}(18,12)\), with mean 0.6000, while B's posterior is \(\mathrm{Beta}(8+4,12+6)=\mathrm{Beta}(12,18)\), with mean 0.4000. In this example the posterior mean contrast is 0.20, rather than 0.0667 under the neutral, optimistic, and skeptical priors. Those contrasts alone do not determine the Thompson-sampling probability: the posterior distributions, not merely their means, determine \(P(\theta_A>\theta_B\mid\text{data})\).
Comparing Operating Characteristics
A prior sensitivity analysis should compare repeated-trial behavior under prespecified data-generating conditions. Each simulated trial must apply the same enrollment horizon, response model, randomization rule, safeguards, and analysis across prior scenarios. Only the prior locations should change. Useful outcomes include the fraction assigned to each arm and, under a fixed analysis, the probability of rejecting \(H_0\) under specified null and alternative response rates. These answer different questions: allocation fractions describe the design's assignments; rejection rates describe the behavior of the design-analysis pair.
For simulation, each trial produces one allocation fraction for A, such as \(F_A=N_A/N\), where \(N_A\) is the number assigned to A and \(N\) is total enrollment. Across \(R\) independently simulated trials, estimate the mean allocation fraction by \(\bar{F}_A\). Its Monte Carlo standard error is \(s_F/\sqrt{R}\), where \(s_F\) is the sample standard deviation of the \(R\) trial-level fractions. It is not generally valid to treat the \(N\) assignments within an adaptive trial as independent Bernoulli observations: their probabilities depend on prior outcomes and assignments.
When comparing scenarios using shared random numbers, calculate each trial's paired difference \(D_r=F_{A,r}^{(1)}-F_{A,r}^{(0)}\). The estimated difference is \(\bar{D}\), with Monte Carlo standard error \(s_D/\sqrt{R}\). Pairing can reduce simulation noise, but the standard error must use the variability of the trial-level differences, not the variability of individual assignments.
Worked Example: Interpreting a Replicated Allocation Comparison
Consider a hypothetical simulation with \(R=10{,}000\) trials per scenario, \(N=100\) participants per trial, and true response rates \(p_A=0.35\) and \(p_B=0.30\). Suppose the mean fraction assigned to A is 0.505 under the optimistic prior, 0.502 under the skeptical prior, and 0.638 under the prior favoring A. Suppose the corresponding sample standard deviations of the trial-level fractions are 0.104, 0.103, and 0.112.
The Monte Carlo standard errors are respectively \(0.104/\sqrt{10{,}000}=0.00104\), \(0.103/\sqrt{10{,}000}=0.00103\), and \(0.112/\sqrt{10{,}000}=0.00112\). These quantify simulation precision for each estimated mean allocation fraction. The difference between the differential and optimistic scenarios is 0.133, but for a paired comparison its Monte Carlo standard error must be calculated from the standard deviation of the 10,000 trial-level paired differences. The three marginal standard deviations alone do not determine that paired standard error.
Suppose, additionally, a prespecified test rejects \(H_0\) in 1,840 of the 10,000 alternative trials under the optimistic prior, 1,780 under the skeptical prior, and 1,870 under the differential prior. The estimated powers are 0.184, 0.178, and 0.187. For each scenario, the rejection indicators are independent across simulated trials, so an approximate Monte Carlo standard error for an estimated power \(\hat{p}\) is \(\sqrt{\hat{p}(1-\hat{p})/R}\). For the optimistic scenario this is \(\sqrt{0.184(0.816)/10{,}000}=0.00387\). The differences among these power estimates are small relative to their simulation uncertainty; the counts alone do not establish that one prior gives meaningfully greater power.
All figures in this example are hypothetical simulation summaries, not results from a clinical study. In practice, report the data-generating conditions, number of replications, trial-level variability, and analysis used so that readers can assess both the design comparison and its Monte Carlo precision.
Justification and Practical Diagnostics
The posterior-mean sensitivity formula follows directly by subtracting the two posterior means for prior locations \(m_1\) and \(m_0\), with common concentration \(\kappa\), sample size \(n\), and response count \(x\):
This establishes a simple diagnostic expectation: a fixed prior-location perturbation has its greatest direct influence when few outcomes have accrued. It does not imply that allocation differences vanish at a predictable rate, because the adaptive path also changes which arm receives participants and therefore which outcomes are observed.
Before simulation, check that the prior means are clinically interpretable and that each scenario has the intended concentration. Then inspect allocation trajectories over enrollment, not only final averages. Large early divergence, persistent arm imbalance under a symmetric prior, or allocations that remain highly sensitive after substantial data accrue can indicate prior domination, implementation errors, or an overly aggressive adaptation rule. Check that the treatment labels and prior assignments are correct; swapping A and B in a differential prior should swap the allocation behavior when the rest of the design is symmetric.
Also distinguish Monte Carlo uncertainty from trial-to-trial variability. A large \(s_F\) describes variation among possible trial outcomes; \(s_F/\sqrt{R}\) describes uncertainty in the simulated mean. Neither measures uncertainty about whether the assumed response model or prior scenarios are scientifically appropriate.
What the Comparison Does and Does Not Establish
A symmetric optimistic or skeptical prior can shift posterior response levels without initially favoring either treatment. If the allocation rule depends only on which posterior draw is larger, equal shifts do not guarantee unchanged allocation: posterior spread and the nonlinear comparison probability also matter. A treatment-differential prior can create an initial preference for one arm and may change allocation even before outcomes provide evidence. Under a true treatment difference, this could align with the better arm or direct participants toward the worse arm; under equal true response rates, an unbalanced prior can still generate unequal allocation.
The main alternatives clarify what is being tested. A neutral symmetric prior provides a reference but is not automatically correct. Fixed randomization removes dependence of future assignments on observed responses, but answers a different design question. A prior sensitivity analysis can also examine several plausible locations rather than selecting one favored value; each comparison should still keep concentration and all non-prior design features fixed. None of these comparisons alone establishes which prior is best.
Limitations remain. Results are conditional on the response model, follow-up assumptions, enrollment horizon, adaptation rule, safeguards, and analysis. A prior location that is plausible for one population may be misleading in another. Conclusions based on one alternative response-rate configuration may not hold under the null or under weaker or stronger treatment effects. Assessing those other dimensions requires separate, prespecified scenarios.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A beta prior has mean 0.45 and concentration 20. What are \(a\) and \(b\)?
- With concentration 20, how much does the posterior mean change if the prior mean increases by 0.10 after \(n=20\) observations on that arm?
- Why is the number of participants assigned to A not enough to calculate the Monte Carlo standard error of the mean allocation fraction across simulated trials?
- What does a differential prior change that a symmetric optimistic prior does not?
- In a symmetric two-arm design, what diagnostic check can reveal an arm-label or prior-coding error?
Solutions. (1) Since \(a/(a+b)=0.45\) and \(a+b=20\), \(a=9\) and \(b=11\). (2) The change is \(20(0.10)/(20+20)=0.05\). (3) Assignments within a trial are adaptively dependent, and the target is variability across trial-level allocation fractions; calculate the sample standard deviation of those fractions and divide by the square root of the number of simulated trials. (4) A differential prior changes the relative prior means between arms, creating an initial preference; a symmetric optimistic prior shifts both means together. (5) Swap the arm labels and corresponding priors in a symmetric setup. The allocation behavior should swap correspondingly; failure to do so warrants checking the implementation.