Why Allocation Counts Need a Strong Law
In a response-adaptive trial, the chance of assigning the next participant to an arm can depend on the trial history. Consequently, assignment indicators are generally not independent and need not have the same distribution. A familiar law of large numbers for independent, identically distributed assignments is therefore not the right general tool. The useful structure is conditional: at each assignment, the allocation probability is known from the history available just before that assignment.
The key result separates the cumulative number assigned to an arm into two parts. One is the sum of its conditional allocation probabilities, which is determined by the evolving design and history. The other is a martingale sum representing the random deviation of assignments from those probabilities. Under bounded assignment increments, that second part divided by the number of assignments converges to zero almost surely. Thus, if the average conditional allocation probability has a limit, the realized allocation share has the same limit.
Predictable Allocation and Assignment Noise
Consider a sequential trial with \(K\) treatment arms. Let \(\mathcal{F}_{k-1}\) denote the information available immediately before assignment \(k\), including the past assignments and responses. For arm \(j\), let \(A_{j,k}=1\) if participant \(k\) is assigned to arm \(j\), and let \(A_{j,k}=0\) otherwise. Define the conditional allocation probability \(\pi_{j,k}=P(A_{j,k}=1\mid\mathcal{F}_{k-1})\). Since assignment \(k\) goes to exactly one arm, the indicators satisfy \(\sum_{j=1}^K A_{j,k}=1\) and the probabilities satisfy \(\sum_{j=1}^K\pi_{j,k}=1\).
The conditional-mean property follows directly from the definition of \(\pi_{j,k}\): \(E(D_{j,k}\mid\mathcal{F}_{k-1})=E(A_{j,k}\mid\mathcal{F}_{k-1})-\pi_{j,k}=0\). Thus \(D_{j,k}\) is a martingale difference with respect to the trial history. Summing the definition of \(D_{j,k}\) gives the exact decomposition
The first term may be random, because the history that determines future probabilities is random. It is nevertheless predictable one step at a time. The second term is the accumulated difference between actual assignments and their conditional probabilities.
Strong-Law Result and Justification
The crucial fact is that the martingale noise is negligible on the scale \(n\). Here is a direct justification for this bounded-increment setting. Because \(D_{j,k}\) is a martingale difference and \(|D_{j,k}|\leq1\), its second moment is at most 1. The martingale series with increments \(D_{j,k}/k\) has total expected squared increments bounded by
Martingale differences at distinct times are orthogonal in expectation: for \(r<k\), \(D_{j,r}\) is measurable with respect to \(\mathcal{F}_{k-1}\), so \(E(D_{j,r}D_{j,k})=E[D_{j,r}E(D_{j,k}\mid\mathcal{F}_{k-1})]=0\). Therefore the partial sums of \(\sum_k D_{j,k}/k\) form an \(L^2\)-bounded martingale. The martingale convergence theorem implies that this series converges almost surely.
To see why this implies that the unweighted noise average vanishes, set \(s_n=\sum_{k=1}^nD_{j,k}/k\) and \(s_0=0\). Since \(D_{j,k}=k(s_k-s_{k-1})\), summation gives
The limit is zero because a convergent sequence and its arithmetic averages have the same limit. Dividing the count decomposition by \(n\) now proves the theorem: its predictable term tends to \(q_j\), and its martingale term tends to zero. This proof uses no independence assumption and allows the allocation probabilities to change with the observed history.
Applying the Result in Two-Arm Trials
For a two-arm trial, label the treatment arm \(T\) and the control arm \(C\). Write \(A_k=A_{T,k}\), \(p_k=P(A_k=1\mid\mathcal{F}_{k-1})\), and \(N_T(n)=\sum_{k=1}^nA_k\). Then \(N_C(n)=n-N_T(n)\), and the theorem yields
If the average \(n^{-1}\sum_{k=1}^np_k\) converges almost surely to \(q\), then the treatment share converges almost surely to \(q\), and the control share converges to \(1-q\). This conclusion is conditional on the predictable average having a limit; the strong law for assignment noise does not itself ensure that the design’s probabilities converge or have a convergent average.
Worked Example: A Fixed Allocation Probability
Suppose a hypothetical two-arm trial assigns each participant to treatment with conditional probability \(p_k=0.60\), regardless of the history. In ten assignments, suppose the treatment indicators are \(1,0,1,1,0,1,1,1,1,0\). There are seven treatment assignments, so \(N_T(10)=7\). The predictable total and noise total are
Thus the observed treatment share is \(7/10=0.70\), while the predictable share is \(6/10=0.60\); the difference is \(1/10=0.10\). A finite-trial discrepancy is compatible with the strong law, which says the discrepancy divided by \(n\) tends to zero almost surely as \(n\) grows. It does not say the two shares must be equal at every finite \(n\).
Worked Example: History-Dependent Probabilities
Consider a hypothetical adaptive trial in which, along one realized history, the eight treatment probabilities before assignment are \(0.50, 0.55, 0.55, 0.60, 0.60, 0.65, 0.65, 0.70\). Suppose the realized treatment indicators are \(1,0,1,1,0,1,1,0\). The trial has five treatment assignments. Its predictable total is
The accumulated assignment noise is \(5-4.80=0.20\), and the observed and predictable shares are respectively \(5/8=0.625\) and \(4.80/8=0.600\). These calculations describe this finite realized path; they do not establish an asymptotic limit. If the design also satisfies \(n^{-1}\sum_{k=1}^np_k\to0.62\) almost surely, the theorem implies \(N_T(n)/n\to0.62\) almost surely. The probabilities may be history-dependent; what is needed for this conclusion is convergence of their cumulative average.
Worked Example: A Random Limiting Share
A hypothetical design assigns participant 1 to treatment with probability \(0.50\). After that assignment, it uses treatment probability \(0.70\) at every later step if participant 1 went to treatment, and \(0.40\) at every later step otherwise. This is a predictable rule because the probability for each later assignment depends only on an observed past assignment. Suppose participant 1 is assigned to treatment and the first six indicators are \(1,1,0,0,1,0\). Then \(N_T(6)=3\), while the predictable total is
On the event that the first assignment is to treatment, the average predictable probability tends to \(0.70\), so the treatment share tends to \(0.70\) almost surely on that event. If the first assignment is to control, the average probability instead tends to \(0.40\), and so does the treatment share. Unconditionally, the limiting share is random: it is \(0.70\) with probability \(0.50\) and \(0.40\) with probability \(0.50\). The theorem permits this; it does not replace a random limit with its expectation.
How to Use and Check the Conclusion
For each assignment, identify the history available beforehand and define the conditional probability for the arm of interest.
Write \(N_j(n)=\sum_{k=1}^n\pi_{j,k}+\sum_{k=1}^n(A_{j,k}-\pi_{j,k})\). Check that the indicator has the stated conditional probability.
Show or assume that \(n^{-1}\sum_{k=1}^n\pi_{j,k}\) converges almost surely. Do not infer this from the martingale argument.
The bounded martingale noise divided by \(n\) vanishes almost surely, so \(N_j(n)/n\) has the same limit.
In a theoretical analysis, the conditional probability should match the actual randomization mechanism, given the full history on which that mechanism depends. If a recorded or simplified probability omits relevant history, the claimed conditional-mean-zero property may fail. In a simulation, plotting \(N_T(n)/n\) against \(n^{-1}\sum_{k=1}^np_k\) can help diagnose discrepancies or implementation errors, but a finite plot is not a proof of almost-sure convergence.
A common mistake is to argue that the treatment count is close to its expected value and conclude that its realized share has a particular limit. An expectation alone does not establish an almost-sure statement. The correction is to use the conditional decomposition: prove the centered assignment sum is negligible almost surely, and separately establish the limit of the average conditional probabilities. If that average does not converge, this theorem gives no fixed limiting share, even though the assignment noise remains negligible.
The result also clarifies how this argument differs from the independent, identically distributed law of large numbers. Independent, identically distributed allocation with a fixed probability is a special case, but adaptive assignments need not be independent. The martingale decomposition instead uses conditional probabilities and bounded increments, so it applies to history-dependent randomization. Its scope is limited: it identifies the allocation-count limit when the predictable average has one; it does not show that a particular adaptive design makes that average converge.
Check Your Understanding
Answer each question using the predictable-count decomposition. Short solutions follow the questions.
- For an arm with conditional probabilities \(\pi_{j,k}\), write the exact decomposition of \(N_j(n)\).
- If \(n^{-1}\sum_{k=1}^n\pi_{j,k}\to0.35\) almost surely, what does the theorem imply about the arm’s count share?
- Why is a finite observed share of \(0.70\) not inconsistent with a predictable share of \(0.60\)?
- If the predictable average has a random limit \(Q\), must the realized count share converge to the fixed number \(E(Q)\)?
- What additional condition is needed, beyond the martingale-noise result, to conclude that an allocation count share has a specified limit?
Solutions. (1) \(N_j(n)=\sum_{k=1}^n\pi_{j,k}+\sum_{k=1}^n(A_{j,k}-\pi_{j,k})\). (2) \(N_j(n)/n\to0.35\) almost surely. (3) The strong law concerns the discrepancy divided by \(n\) as \(n\) grows, not equality at a finite sample size. (4) No. The realized share converges almost surely to \(Q\), which may be random rather than equal to its expectation. (5) One must establish that the average conditional allocation probabilities converge almost surely to that specified limit.