Tutorials › Response-Adaptive Randomization › Sensitivity to Prior Effective Sample Size

Operating Characteristics and Controversies · Tutorial 336 of 501

Sensitivity to Prior Effective Sample Size

Learn to vary prior effective sample size while holding prior location fixed, and assess the resulting changes in allocation, expected response, and uncertainty.

Advanced 12 min read

What You'll Learn

  • Define prior effective sample size in a conjugate normal model and distinguish it from the number of observed patients.
  • Derive the posterior contrast and posterior probability that one treatment is better.
  • Calculate how a fixed allocation rule translates posterior probabilities into assignment probabilities.
  • Compare expected response and posterior interval width across prior effective sample sizes.
  • Diagnose when apparent precision or patient benefit is being driven by the prior rather than accumulated trial data.

Why Prior Effective Sample Size Matters

In a posterior-driven adaptive trial, observed outcomes update beliefs about treatment performance, and those beliefs influence later assignments. The prior therefore matters most when little trial information has accumulated. Its effective sample size controls how strongly early observations can move the posterior and, through the allocation rule, how quickly assignment probabilities can become unequal.

This tutorial studies that sensitivity while holding the prior location and the allocation rule fixed. The aim is not to identify one universally correct prior size. It is to understand the consequences of plausible choices for early allocation, expected patient response, and inferential precision. All numerical data below are hypothetical.

Definition: In a normal model with known outcome variance \(\sigma^2\), a prior \(N(m_i,\sigma^2/\nu)\) for treatment mean \(\theta_i\) has effective sample size \(\nu\): its precision equals the precision of \(\nu\) independent outcomes with variance \(\sigma^2\). Increasing \(\nu\) strengthens the prior relative to the observed data. It does not add actual trial participants.

A Conjugate Model and an Allocation Rule

Suppose outcomes on treatment \(i\), for \(i=0,1\), are independent conditional on their treatment means and follow \(Y_{ij}\sim N(\theta_i,\sigma^2)\), with the same known variance on both treatments. Before the trial, use independent priors \(\theta_i\sim N(m_i,\sigma^2/\nu)\). For the sensitivity comparison, hold \(m_0\), \(m_1\), and \(\sigma^2\) fixed as \(\nu\) changes. After \(n_i\) outcomes on treatment \(i\), with sample mean \(\bar{x}_i\), conjugate updating gives

$$ \theta_i\mid\text{data}\sim N\left( \frac{\nu m_i+n_i\bar{x}_i}{\nu+n_i}, \frac{\sigma^2}{\nu+n_i} \right). $$

For independent treatment posteriors, the contrast \(\theta_1-\theta_0\) is normal. Its posterior mean is the difference between the two posterior means, and its posterior variance is the sum of their variances. A common posterior-probability allocation rule assigns treatment 1 with probability

$$ q_1=\frac{\varepsilon}{2}+(1-\varepsilon) P(\theta_1>\theta_0\mid\text{data}),\qquad q_0=1-q_1, $$

where \(0\leq\varepsilon\leq1\) is a fixed exploration fraction. The rule mixes posterior-guided allocation with equal randomization: each treatment has probability at least \(\varepsilon/2\). In the examples, \(\varepsilon=0.10\), so assignments remain between 0.05 and 0.95. This rule is stated explicitly because conclusions about prior size depend on how posterior beliefs are translated into randomization probabilities.

Key distinction: A larger \(\nu\) generally makes each treatment’s posterior distribution narrower, but it does not guarantee that \(P(\theta_1>\theta_0\mid\text{data})\) moves farther from 0.5. With a fixed prior location, greater prior precision can pull a data-driven contrast toward that location while also reducing posterior uncertainty.

Deriving the Posterior Comparison

For the balanced case \(n_0=n_1=n\), let \(d_0=m_1-m_0\) be the prior mean contrast and \(d=\bar{x}_1-\bar{x}_0\) the observed sample-mean contrast. Subtracting the posterior means gives the posterior contrast mean \(\delta_\nu\); adding the independent posterior variances gives its variance \(V_\nu\):

$$ \delta_\nu=\frac{\nu d_0+nd}{\nu+n}, \qquad V_\nu=\frac{2\sigma^2}{\nu+n}. $$

If \(Z\sim N(0,1)\), then standardizing the posterior contrast yields

$$ P(\theta_1>\theta_0\mid\text{data}) =P\left(\frac{\theta_1-\theta_0-\delta_\nu}{\sqrt{V_\nu}}> -\frac{\delta_\nu}{\sqrt{V_\nu}}\;\middle|\;\text{data}\right) =\Phi\left(\frac{\delta_\nu}{\sqrt{V_\nu}}\right), $$

where \(\Phi\) is the standard normal cumulative distribution function. Thus changing \(\nu\) changes both the posterior contrast and its standard deviation. Looking only at posterior variance, or only at the posterior mean, is not enough to determine the change in allocation.

Worked Example: Comparing Early Allocation Probabilities

Consider a hypothetical trial after two outcomes on each treatment. The observed means are \(\bar{x}_1=8\) and \(\bar{x}_0=6\), and the known outcome variance is \(\sigma^2=4\). Suppose both prior means are 7, so the prior contrast is zero. Compare \(\nu=2\) with \(\nu=8\), using \(\varepsilon=0.10\).

For \(\nu=2\), the posterior contrast mean and variance are

$$ \delta_2=\frac{2(0)+2(8-6)}{2+2}=1, \qquad V_2=\frac{2(4)}{2+2}=2. $$

Therefore \(P(\theta_1>\theta_0\mid\text{data})=\Phi(1/\sqrt{2})\approx0.7602499\). Substituting that unrounded probability into the allocation rule gives

$$ q_1=0.05+0.90\Phi(1/\sqrt{2})\approx0.7342249, \qquad q_0\approx0.2657751. $$

For \(\nu=8\), the corresponding quantities are

$$ \delta_8=\frac{8(0)+2(8-6)}{8+2}=0.4, \qquad V_8=\frac{2(4)}{8+2}=0.8. $$

Here \(P(\theta_1>\theta_0\mid\text{data})=\Phi(0.4/\sqrt{0.8})\approx0.6726396\), so

$$ q_1=0.05+0.90\Phi(0.4/\sqrt{0.8})\approx0.6553756, \qquad q_0\approx0.3446244. $$

The stronger, equally centered prior tempers the early advantage assigned to treatment 1: its randomization probability is about 0.655 rather than 0.734. It does not reverse the ranking; the posterior probability of superiority remains above 0.5 in both cases.

Consequences for Expected Patient Response

Allocation sensitivity has a direct one-step patient-benefit interpretation when the true treatment means are specified. Conditional on the current history, if the next patient’s expected outcomes are \(\theta_1\) and \(\theta_0\), the expected response under the allocation rule is \(q_1\theta_1+q_0\theta_0\). This is an expectation under the stated true means, not a guarantee about an individual patient or a complete-trial benefit measure.

Worked Example: One-Step Expected Response

Continue the hypothetical allocation comparison, and suppose the true means are \(\theta_1=8\) and \(\theta_0=6\) response units. For \(\nu=2\), use \(q_1\approx0.7342249\):

$$ E(Y_{\mathrm{next}}\mid\text{history}) =8(0.7342249)+6(1-0.7342249) =6+2(0.7342249) \approx7.46845. $$

For \(\nu=8\), use \(q_1\approx0.6553756\):

$$ E(Y_{\mathrm{next}}\mid\text{history}) =6+2(0.6553756) \approx7.31075. $$

The difference is \(7.46845-7.31075\approx0.15770\) response units, or about 0.158 response units. In this particular state, the smaller prior effective sample size assigns more patients to the truly better treatment and therefore has the larger one-step expected response. This comparison holds the true means fixed and does not account for how different assignments would change the information available for later decisions.

Posterior Precision Is Not the Whole Design

In the conjugate model, increasing \(\nu\) reduces posterior variance because prior precision is added to data precision. That reduction is conditional on the assumed prior and likelihood. It should not be confused with a guaranteed improvement in frequentist precision or coverage for the treatment contrast. A posterior can be narrow because the prior is strong, even when the trial itself has collected little information.

Worked Example: Posterior Interval Width

For the same hypothetical data, the 95% normal posterior interval for \(\theta_1-\theta_0\) is \(\delta_\nu\pm1.96\sqrt{V_\nu}\). With \(\nu=2\), its endpoints are

$$ 1\pm1.96\sqrt{2} =(-1.772,\;3.772)\text{ response units}. $$

With \(\nu=8\), the endpoints are

$$ 0.4\pm1.96\sqrt{0.8} =(-1.353,\;2.153)\text{ response units}. $$

The interval width falls from \(2(1.96\sqrt{2})\approx5.544\) to \(2(1.96\sqrt{0.8})\approx3.507\) response units. Both intervals include zero. These are posterior credible intervals under the specified model and priors; their widths alone do not establish that a trial’s frequentist confidence intervals will have nominal coverage.

How to Assess a Prior-Size Sensitivity Analysis

A useful analysis varies \(\nu\) over a scientifically defensible range, keeps the prior location, outcome model, allocation rule, and other design settings unchanged, and compares the resulting operating characteristics. The update above explains why early assignments may be especially sensitive: when \(n\) is small, the relative weight \(\nu/(\nu+n)\) on the prior is substantial. As data accumulate, the data weight \(n/(\nu+n)\) increases, though the full adaptive path can still differ because early allocations determine which outcomes are observed.

A simulation can summarize that path dependence. For each candidate \(\nu\), simulate many trials under the same specified treatment means and outcome model, applying the corresponding posterior update and allocation rule at every assignment. Compare allocation proportions over time, expected total response, final estimator precision, and inferential error or coverage as relevant to the design. Monte Carlo uncertainty should be reported: apparent differences that are small relative to simulation error are not persuasive evidence of sensitivity.

Useful diagnostics include the following:

  • Plot treatment assignment probabilities against time for several \(\nu\) values, not just the final allocation ratio.
  • Check whether early observed outcomes repeatedly push probabilities toward the boundary of the rule; early noise can then shape many later assignments.
  • Separate posterior interval width from the empirical sampling variability and coverage of the trial’s treatment-effect estimator.
  • Verify that the assumed outcome variance and prior calibration are plausible. A sensitivity grid cannot compensate for a seriously misspecified likelihood.

Comparisons, Pitfalls, and Limitations

A fixed equal-allocation design does not use posterior probabilities to change assignments, so it avoids this source of prior-size sensitivity but also forgoes posterior-guided adaptation. A posterior-driven design with a larger \(\nu\) is not simply “more conservative” in every respect: it may reduce early allocation imbalance while also making posterior intervals narrower through prior precision. Comparing only one of these features can give an incomplete account. The appropriate comparison depends on the design’s goals and should include patient outcomes and inferential performance.

The calculations here assume independent normal outcomes with known, common variance; independent normal priors; equal numbers observed in the two arms at the comparison point; and a fixed exploration fraction. If these assumptions do not describe the trial, the displayed formulas do not apply unchanged. In particular, an unknown or unequal outcome variance requires a model that represents that uncertainty. The effective sample size is also a modeling calibration, not a universally objective quantity: different prior families or outcome models can attach different meanings to a chosen numerical value.

  • Pitfall: treating a large prior as extra randomized patients. The prior contributes modeled information, but those observations were not enrolled, randomized, or observed in this trial. Report the prior contribution separately from actual sample size.
  • Pitfall: inferring benefit from allocation alone. More assignments to a treatment do not prove that treatment is better. State the true means or clearly describe the expectation being computed.
  • Pitfall: rounding intermediate probabilities too early. In the allocation rule, retain precision in \(\Phi(\cdot)\) and round the final \(q_1\) and expected response only at the end. Here \(q_1\) for \(\nu=8\) is about 0.655376, not 0.656.
  • Pitfall: calling a narrower posterior interval better frequentist precision. Posterior width is conditional on the model and prior; assess repeated-sampling variability and coverage separately when those are design objectives.
Key takeaway: Prior effective sample size influences the balance between prior information and early trial data. In posterior-driven randomization, that balance can change assignments and patient response, while simultaneously changing posterior interval width. Evaluate all three outcomes across a justified range of prior sizes rather than treating any one as a complete measure of design quality.

Check Your Understanding

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

  1. In the balanced normal model, what are the posterior contrast mean and variance when \(n=3\), \(\nu=3\), \(d_0=0\), \(d=2\), and \(\sigma^2=4\)?
  2. Why can a larger \(\nu\) narrow a posterior interval while moving the posterior probability of superiority closer to 0.5?
  3. With \(\varepsilon=0.10\) and posterior superiority probability 0.60, calculate \(q_1\) and \(q_0\).
  4. Give one reason why a narrower posterior interval does not by itself demonstrate improved frequentist coverage.

Solutions. (1) \(\delta_3=(3(0)+3(2))/(3+3)=1\), and \(V_3=2(4)/(3+3)=4/3\). (2) Greater prior precision reduces posterior variance, while a prior centered at no difference pulls the posterior contrast mean toward zero; the standardized contrast can therefore shrink even as the distribution narrows. (3) \(q_1=0.05+0.90(0.60)=0.59\), so \(q_0=0.41\). (4) Posterior width is conditional on the assumed prior and model, whereas frequentist coverage is a repeated-sampling property of an interval procedure; coverage must be evaluated across repeated trials under specified true parameters.

Clinical Biostats