Why the Allocation Rule Can Affect an Estimate
In a response-adaptive trial, an observed outcome can influence the probability of assigning a later participant to each treatment. This can change more than the allocation ratio: it can change which earlier responses are represented in each arm mean and how many later observations enter each mean. The ordinary difference in arm means may therefore be biased for the treatment effect, even when the allocation probabilities are known and every treatment remains possible.
The issue is not that randomization has stopped. Rather, the estimator gives equal weight to the observed participants in each arm, while the probability of including a participant in an arm may depend on the preceding outcomes. To see the distinction precisely, first specify the target and the sampling rule.
Write \(H_{i-1}\) for the assignment and outcome history available before participant \(i\) is randomized. The allocation probability for A is \(\pi_i=P(A_i=1\mid H_{i-1})\); the probability for B is \(1-\pi_i\). A typical response-adaptive rule makes \(\pi_i\) depend on outcomes in \(H_{i-1}\). For the probability-weighted result below, assume the potential outcomes are fixed for the finite-sample argument, the randomization probabilities are correctly recorded, and \(0<\pi_i<1\) at every assignment. These conditions ensure each participant has a positive chance of assignment to either treatment. They do not, by themselves, make the naive difference unbiased.
A Finite-Sample Calculation
Consider a hypothetical trial with three participants. The first two are randomized so that one receives A and one receives B; a fair coin determines which of the two gets A. Outcomes are independent Bernoulli variables, with success probabilities \(p_A=0.6\) and \(p_B=0.4\), and those probabilities are stable across participants. After seeing the first A outcome, the trial assigns participant 3 to A with probability \(q_1=0.8\) if that outcome was a success, and with probability \(q_0=0.2\) if it was a failure. The assignment is still randomized in either case.
Worked Example: Bias From an Outcome-Dependent Final Assignment
Let \(Y_A\) be the first observed outcome in A and \(Y_B\) the first in B. The third participant’s outcome has success probability \(p_A\) if assigned to A and \(p_B\) if assigned to B. Calculate the expected naive difference and compare it with the target \(\tau=p_A-p_B\).
If \(Y_A=1\), the probability of assigning participant 3 to A is \(0.8\). If assigned to A, the expected difference is \((1+p_A)/2-p_B=(1+0.6)/2-0.4=0.4\). If assigned to B, it is \(1-(p_B+p_B)/2=1-0.4=0.6\). Thus, conditional on \(Y_A=1\), the expected difference is \(0.8(0.4)+0.2(0.6)=0.44\).
If \(Y_A=0\), the probability of assigning participant 3 to A is \(0.2\). If assigned to A, the expected difference is \((0+p_A)/2-p_B=0.3-0.4=-0.1\). If assigned to B, it is \(0-(p_B+p_B)/2=-0.4\). Thus, conditional on \(Y_A=0\), the expected difference is \(0.2(-0.1)+0.8(-0.4)=-0.34\).
Since \(P(Y_A=1)=0.6\), the unconditional expectation is \(0.6(0.44)+0.4(-0.34)=0.128\). The target is \(\tau=0.6-0.4=0.200\), so the bias is \(0.128-0.200=-0.072\), in success-probability units. In this design and model, the naive estimate is biased downward.
The calculation is finite-sample: it averages over the first A response, the adaptive assignment, and the third outcome. It does not claim that every realized difference will be below \(0.200\). The source of the bias is visible in the conditional calculations: the final arm sizes depend on \(Y_A\), so the final means do not combine outcomes in a way that preserves the target contrast on average.
Why the Allocation Probabilities Matter
For a fixed set of potential outcomes, a probability-weighted estimate of each arm’s finite-sample mean can use the chance that each participant was assigned to that arm. Define the weighted estimates of the finite-sample means by \(\hat{\mu}_A^{HT}=n^{-1}\sum_i A_iY_i/\pi_i\) and \(\hat{\mu}_B^{HT}=n^{-1}\sum_i (1-A_i)Y_i/(1-\pi_i)\). Their difference is a probability-weighted estimate of \(\tau\). The weights are larger for outcomes observed under a treatment that had a smaller assignment probability.
This justification does not say that the weighted estimate will be close to the target in every trial. It establishes unbiasedness across repetitions of the randomization under the stated conditions. In particular, when an allocation probability is very small, an observed outcome can receive a large weight, making a single estimate highly variable.
Worked Example: Applying Assignment-Probability Weights
Suppose four fixed hypothetical participants have potential outcomes under A of \(1,0,1,0\). Each is independently assigned to A with known probability \(0.5\). In one possible assignment, the first and third receive A and the other two receive B. Calculate the weighted estimate of the finite-sample mean under A.
The observed A outcomes are \(1\) and \(1\). The weighted estimate is \(\hat{\mu}_A^{HT}=\frac{1}{4}\sum_{i=1}^4 A_iY_i/\pi_i\). Here \(\pi_i=0.5\), so substitution gives \(\hat{\mu}_A^{HT}=\frac{1}{4}\{1(1)/0.5+0(0)/0.5+1(1)/0.5+0(0)/0.5\}=\frac{4}{4}=1.000\).
The actual finite-sample mean under A is \((1+0+1+0)/4=0.500\). This particular weighted estimate is not equal to the target. But for each participant, the expectation of \(A_iY_i^A/0.5\) is \(0.5Y_i^A/0.5=Y_i^A\); consequently the weighted estimate averages to \(0.500\) across random assignments. Unbiasedness is an expectation over assignments, not a guarantee for each realized sample.
In an adaptive trial, the same argument uses the probability conditional on the history at the time of each assignment. The probability must be attached to the participant and treatment at that decision, not replaced by the final overall allocation proportion. An overall proportion, such as “40% were assigned to A,” does not generally capture the different probabilities participants faced as the outcome history changed.
Worked Example: A Fixed Allocation Probability Is Not the Adaptive Probability
Imagine two participants are assigned to A, with recorded assignment probabilities \(0.8\) and \(0.4\), and both have observed outcomes equal to 1. Suppose the probabilities differ because the second assignment followed a different outcome history. The probability-weighted contributions to the estimated A total are \(1/0.8=1.25\) and \(1/0.4=2.50\), for a total of \(3.75\). Using the realized overall A proportion of \(2/2=1\) for both participants would instead give contributions \(1\) and \(1\), a total of \(2\).
These totals are not two estimates that must agree in one sample. The point is that the adaptive design gave the participants different chances of entering A. The design-based weighting calculation requires their respective probabilities, not a single probability inferred from the final count. The weighted total can be noisy, especially when a recorded probability is small.
Conditions, Diagnostics, and Alternatives
The probability-weighted justification depends on more than recording numbers in a table. The randomization probability must be the probability actually used, conditional on the information available at assignment. Each relevant probability must be positive; if a treatment is impossible for a participant, the missing potential outcome for that participant cannot be recovered by weighting. The outcome must be recorded consistently, and the target population or finite sample must be specified. If outcomes, eligibility, or follow-up are missing in a way not accounted for by the assignment probabilities, assignment weighting alone does not correct that additional selection.
Useful diagnostics focus on how allocation and the observed history are connected:
- Tabulate or plot the recorded \(\pi_i\) values over enrollment order and alongside the response history used by the rule. Probabilities that do not change when the rule says they should, or change before the relevant outcome is available, can indicate implementation or recording errors.
- Check the smallest and largest probabilities and the resulting weights \(1/\pi_i\) and \(1/(1-\pi_i)\). Probabilities close to zero or one mean that some weighted contributions can dominate.
- Compare the naive arm means with probability-weighted estimates, while recognizing that a difference between them is a warning to investigate, not proof that either estimate is correct.
- Inspect arm sizes and the timing of observed responses. A final arm size that is associated with earlier outcomes is a direct sign that ordinary equal weighting may not reflect the target estimand.
The main alternative is fixed randomization with probabilities that do not depend on observed outcomes. Under suitable randomization and a clearly defined estimand, that design avoids this particular outcome-driven sampling mechanism. Response-adaptive randomization can change the allocation probabilities as information accumulates, but it requires attention to those probabilities when estimating treatment means. Probability weighting addresses unequal chances of assignment under its assumptions; it is not a remedy for every design or analysis problem.
Common Mistake and Limitations
Common mistake: “Randomization was used, so the final difference in arm means must be unbiased.” Randomization at each step does not imply that the ratio of observed outcomes to the random arm size is unbiased when that arm size depends on earlier responses. The correction is to examine the sequential allocation probabilities and the estimator together. In the finite-sample example, all assignments remained randomized, but the expected naive difference was \(0.128\), not the target \(0.200\).
A second mistake is to treat a weighted estimate as automatically superior because it has an unbiasedness argument. Inverse-probability weights can be unstable when probabilities are extreme, and a weighted estimate can be far from its target in a particular trial. If the allocation probabilities are misspecified, omitted, or recorded only as a final allocation ratio, the justification does not apply. These limitations concern the validity and precision of the estimate; weighting does not retroactively change the design.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- In the three-participant example, what was the target treatment effect, and what was the expected naive difference?
- Why can outcome-dependent arm sizes affect the expectation of a difference in arm means?
- For a participant with observed outcome \(Y_i=1\) assigned to A with probability \(\pi_i=0.25\), what is the A-arm weighted contribution before division by \(n\)?
- What assumption fails if a participant has zero probability of receiving B?
- Why is the final overall proportion assigned to A generally not a substitute for each participant’s recorded adaptive probability?
Solutions. (1) The target was \(0.6-0.4=0.200\); the expected naive difference was \(0.128\), giving bias \(-0.072\). (2) Earlier responses influence later assignment probabilities and hence the number and composition of observations in each final arm mean. (3) The contribution is \(A_iY_i/\pi_i=1/0.25=4\). (4) Positivity fails: weighting cannot represent a potential outcome under a treatment that was impossible for that participant. (5) Adaptive probabilities vary with enrollment history, so participants can have different assignment chances even when the final overall proportion is the same for all of them.