Tutorials › Response-Adaptive Randomization › Almost-Sure Rates for Adaptive Proportions

Asymptotic Theory for Adaptive Allocation · Tutorial 232 of 501

Almost-Sure Rates for Adaptive Proportions

Learn when adaptive allocation proportions converge at polynomial rates almost surely, and how martingale noise and stochastic-approximation stability affect those rates.

Advanced 12 min read

What You'll Learn

  • Derive an almost-sure bound for cumulative allocation noise from bounded martingale differences.
  • Convert polynomial convergence of conditional allocation probabilities into rates for observed allocation proportions.
  • Distinguish the effects of martingale noise and deterministic or random drift.
  • Use a scalar stochastic-approximation recursion to identify rates governed by its stability coefficient.
  • Diagnose why a rate argument can fail when boundedness, drift control, or stability assumptions are absent.

Why an Almost-Sure Rate Is More Than Convergence

Knowing that an allocation proportion approaches its target does not say how quickly it does so, or whether the claim holds along almost every realized trial. An almost-sure rate supplies both kinds of information: it bounds the size of the error as the trial grows, with probability one. For adaptive allocation, the error has two sources. Random assignment contributes cumulative martingale noise; the conditional assignment probabilities may also approach their target only gradually.

This tutorial studies rates for the proportion assigned to an arm. It does not require the allocation probabilities to be independent over time. Instead, the key assumptions concern their conditional means and the size of assignment increments. Those assumptions also make clear why a rate for conditional probabilities is not automatically a rate for realized proportions.

Definition: For random variables \(R_n\) and positive deterministic numbers \(r_n\), the notation \(R_n=O_{\mathrm{a.s.}}(r_n)\) means that, with probability one, there are finite random \(C\) and finite random \(n_0\) such that \(|R_n|\le C r_n\) for every \(n\ge n_0\). Thus \(R_n=O_{\mathrm{a.s.}}(n^{-\gamma})\) is a pathwise eventual bound, not a statement that the bound holds for every sample path with one fixed constant.

Martingale Noise in the Observed Allocation Proportion

Consider a two-arm trial. At assignment \(k\), let \(I_k=1\) if the participant is assigned to arm 1 and \(I_k=0\) otherwise. Let \(\mathcal{F}_{k-1}\) contain the trial information available before that assignment, and write \(p_k=P(I_k=1\mid\mathcal{F}_{k-1})\). The number assigned to arm 1 by time \(n\) is \(N_{1,n}=\sum_{k=1}^n I_k\), and the observed allocation proportion is \(N_{1,n}/n\).

The assignment error \(I_k-p_k\) has conditional mean zero and is bounded in absolute value by 1. Consequently, \(M_n=\sum_{k=1}^n(I_k-p_k)\) is a martingale with bounded increments. The proportion separates exactly into an average conditional allocation probability and a martingale term:

$$ \frac{N_{1,n}}{n}-q = \frac{M_n}{n} + \frac{1}{n}\sum_{k=1}^n(p_k-q), \qquad M_n=\sum_{k=1}^n(I_k-p_k). $$

The first term is random assignment noise; the second is the accumulated deviation of the conditional probabilities from the target \(q\). Separating them prevents a common error: convergence of \(p_k\) to \(q\) alone does not give the rate of \(N_{1,n}/n\) without controlling both terms.

Theorem: If \(|I_k-p_k|\le 1\) and \(E(I_k-p_k\mid\mathcal{F}_{k-1})=0\) for every \(k\), then \(M_n=O_{\mathrm{a.s.}}(\sqrt{n\log n})\). Therefore the martingale contribution to the observed allocation proportion is \(O_{\mathrm{a.s.}}(\sqrt{\log n/n})\).

For justification, the Azuma–Hoeffding inequality gives \(P(|M_n|\ge t)\le 2\exp(-t^2/(2n))\). Choose \(t=\sqrt{2c n\log n}\) for a constant \(c>1\). Then the probability is at most \(2n^{-c}\), and these probabilities have finite sum. The Borel–Cantelli lemma implies that, with probability one, the selected bound is violated only finitely often. Dividing by \(n\) gives the stated rate. The logarithm is part of this convenient almost-sure bound; it should not be silently omitted when citing this argument.

From Conditional-Probability Drift to Proportion Rates

Suppose the conditional assignment probability approaches a fixed target at a polynomial rate: for some \(\gamma>0\), \(|p_k-q|\le C k^{-\gamma}\) eventually, almost surely, where \(C\) may be finite and random. Summing this inequality and dividing by \(n\) controls the drift term. For \(0<\gamma<1\), comparison with an integral gives a sum of order \(n^{1-\gamma}\); for \(\gamma=1\), the sum is of order \(\log n\); and for \(\gamma>1\), it is bounded. Combining the drift bound with the martingale result yields the following rates.

$$ \left|\frac{N_{1,n}}{n}-q\right| = \begin{cases} O_{\mathrm{a.s.}}\!\left(n^{-\gamma}+\sqrt{\log n/n}\right), & 0<\gamma<1,\\[3pt] O_{\mathrm{a.s.}}\!\left(\log n/n+\sqrt{\log n/n}\right), & \gamma=1,\\[3pt] O_{\mathrm{a.s.}}\!\left(n^{-1}+\sqrt{\log n/n}\right), & \gamma>1. \end{cases} $$

In particular, if the conditional probabilities approach the target more slowly than the martingale term, their drift can determine the overall rate. If they approach it sufficiently quickly, the martingale bound determines the displayed rate. These are upper bounds under the stated assumptions, not claims that every allocation procedure attains a matching lower bound.

Worked Example: A Slowly Decaying Allocation Drift

Consider a hypothetical two-arm design with target \(q=0.60\) and conditional probabilities satisfying \(|p_k-q|\le 2k^{-0.40}\). Assume each assignment is generated with this conditional probability given the past. The indicator increments are bounded and have conditional mean zero after subtracting \(p_k\), so the martingale result applies.

For \(0.40<1\), the decreasing-function integral bound gives \(\sum_{k=1}^n k^{-0.40}\le 1+\int_1^n x^{-0.40}\,dx =1+(n^{0.60}-1)/0.60\). At \(n=1000\), the drift contribution is therefore bounded by

$$ \frac{2}{1000}\sum_{k=1}^{1000}k^{-0.40} \le \frac{2}{1000}\left[1+\frac{1000^{0.60}-1}{0.60}\right] \approx 0.209. $$

Thus the absolute drift in the observed proportion is at most approximately 0.209 under this bound. This is a conservative finite-sample bound, not a prediction that the proportion will differ from 0.60 by 0.209. As \(n\) grows, the drift rate is \(O_{\mathrm{a.s.}}(n^{-0.40})\), which is slower than the martingale rate \(O_{\mathrm{a.s.}}(\sqrt{\log n/n})\). The resulting overall rate is \(O_{\mathrm{a.s.}}(n^{-0.40})\).

Worked Example: Faster Conditional Convergence

In another hypothetical design, let the target again be \(q=0.55\), and suppose \(|p_k-q|\le 0.20k^{-0.75}\). Assume the same bounded assignment and conditional-mean conditions. At \(n=1000\), the integral comparison gives \(\sum_{k=1}^{1000}k^{-0.75}\le 1+4(1000^{0.25}-1)\approx19.49\). The drift contribution to the proportion is at most \(0.20(19.49)/1000\approx0.003899\).

The drift is \(O_{\mathrm{a.s.}}(n^{-0.75})\), faster than the martingale bound. Hence the combined rate is \(O_{\mathrm{a.s.}}(\sqrt{\log n/n})\), not \(O_{\mathrm{a.s.}}(n^{-0.75})\). To see the distinction numerically, the martingale inequality with \(c=2\) gives \(P(|M_{1000}|\ge\sqrt{4(1000)\log(1000)})\le2(1000)^{-2}=2\times10^{-6}\). The corresponding threshold for \(|M_{1000}|/1000\) is approximately \(0.1662\). This is a valid but loose probability bound; it is not an expected error or a typical realized deviation.

Stochastic Approximation and Stability-Determined Rates

Conditional allocation probabilities often depend on an evolving estimate or state. A useful local model for the error \(e_n\) from a stable target is the scalar stochastic-approximation recursion \(e_n=(1-a/n)e_{n-1}+\xi_n/n\), where \(a>0\) is a stability coefficient and \(\xi_n\) is a bounded martingale difference: \(E(\xi_n\mid\mathcal{F}_{n-1})=0\), with \(|\xi_n|\le B\). Take \(n\) sufficiently large that \(0<1-a/n<1\). These assumptions describe a local linear contraction plus mean-zero noise; they do not automatically hold for every adaptive rule.

The contraction repeatedly shrinks the initial error, while the noise is accumulated with weights that depend on \(a\). Iterating the recursion gives a product multiplying the initial value and weighted martingale increments. The product from indices \(j+1\) to \(n\) is of order \((j/n)^a\), since summing the logarithms of \(1-a/\ell\) gives \(-a\log(n/j)\) up to bounded terms. Thus an increment \(\xi_j/j\) has weight of order \(n^{-a}j^{a-1}\). The squared weights sum at order \(n^{-2a}\sum_{j\le n}j^{2a-2}\). This sum is bounded in order by \(n^{-2a}\) for \(a<1/2\), by \(n^{-1}\log n\) for \(a=1/2\), and by \(n^{-1}\) for \(a>1/2\).

Rate guide: Under the scalar recursion and bounded martingale-difference assumptions above, the initial-condition contribution is of order \(n^{-a}\). For \(a<1/2\), the convergent weighted-noise series also gives \(e_n=O_{\mathrm{a.s.}}(n^{-a})\). At \(a=1/2\), a general bounded-increment concentration bound gives \(e_n=O_{\mathrm{a.s.}}(\log n/\sqrt n)\); for \(a>1/2\), it gives \(e_n=O_{\mathrm{a.s.}}(\sqrt{\log n/n})\). These are rate bounds, with logarithmic slack in the concentration cases.

The threshold at \(a=1/2\) arises from whether the squared weights are summable at their lower endpoint, not from a change in the allocation rule’s target. A related recursion with a predictable forcing term \(r_n/n\), where \(|r_n|=O_{\mathrm{a.s.}}(n^{-b})\), has a forcing contribution of order \(n^{-\min(a,b)}\), with an additional \(\log n\) factor when \(a=b\). This follows by summing the weighted forcing terms \(n^{-a}j^{a-1}r_j\); the other contributions, including martingale noise, must still be included when stating the overall rate.

Worked Example: A Weakly Stable Stochastic Approximation

Suppose a hypothetical allocation state has error satisfying \(e_n=(1-0.30/n)e_{n-1}+\xi_n/n\), where \(\xi_n\) is a bounded martingale difference. The stability coefficient is \(a=0.30<1/2\), so the initial-state contribution decays at the polynomial rate \(n^{-0.30}\). At \(n=1000\), the scale \(1000^{-0.30}\) is approximately \(0.1259\); the actual error bound also contains a finite, potentially random multiplicative constant.

Because \(a<1/2\), the weighted noise series has squared weights of order \(n^{-0.60}\sum_{j\le n}j^{-1.40}\). The sum over \(j\) remains bounded as \(n\) grows, so the weighted contribution has order \(n^{-0.30}\) as well. Under the stated recursion, \(e_n=O_{\mathrm{a.s.}}(n^{-0.30})\). This conclusion depends on the stable scalar form and the martingale-difference condition; it cannot be inferred merely from observing that an allocation estimate appears to be moving toward a target.

Assumptions, Diagnostics, and Alternatives

Rate arguments are only as sound as their assumptions. In a trial analysis, check that assignment increments really are bounded and centered after conditioning on the history, and that the conditional-probability drift bound applies along the adaptive process. For a stochastic-approximation argument, also check that the target is a stable equilibrium and that the recursion’s local contraction and noise conditions hold in the region being studied. A drift bound asserted only in expectation is not the same as an almost-sure bound.

Several warning signs call for a different argument. If assignments can have unbounded increments, the Azuma–Hoeffding step above is unavailable without an appropriate replacement moment or tail condition. If conditional allocation probabilities fail to approach a fixed target, the drift average need not vanish. If stability is absent or the recursion has multiple possible limiting states, a single scalar contraction rate is not justified. In practice, plots of cumulative proportions and conditional allocation probabilities can reveal persistent drift, abrupt changes, or instability; such plots are diagnostics, not proofs of an almost-sure rate.

The main alternative is to report convergence without a quantitative rate, which requires weaker information but answers a less detailed question. A central limit approximation addresses distributional fluctuations on a different scale and requires its own assumptions; an almost-sure upper bound is not a confidence interval or a sampling distribution. Compared with a direct drift bound, stochastic approximation explains how feedback and local stability can generate polynomial rates, but it relies on a more specific recursion. Neither method proves a sharp rate unless matching lower-bound arguments are also supplied.

Common pitfall: It is wrong to reason, “\(p_k\to q\), so \(N_{1,n}/n-q\) is automatically \(O_{\mathrm{a.s.}}(n^{-1/2})\).” Convergence alone specifies no speed for the drift average, and the bounded-martingale argument above supplies a \(\sqrt{\log n/n}\) upper bound, not an automatic \(n^{-1/2}\) almost-sure bound. Check the drift rate and state precisely which martingale bound has been established.

Check Your Understanding

Answer each question using the rate assumptions as stated. Brief solutions follow the questions.

  1. If \(|p_k-q|\le Ck^{-0.30}\) eventually almost surely, which contribution determines the displayed allocation-proportion rate?
  2. For \(\gamma=1\), what is the order of the averaged drift term?
  3. Why does a bounded martingale-difference condition matter in the allocation-proportion argument?
  4. In the scalar recursion, what rate guide applies when \(a=0.70\), and what assumptions support it?
  5. Does a numerical observation that the allocation proportion is close to its target establish an almost-sure rate?

Solutions. (1) The drift term is \(O_{\mathrm{a.s.}}(n^{-0.30})\), slower than the martingale bound, so it determines the stated overall rate. (2) Since \(\sum_{k=1}^n k^{-1}\) is of order \(\log n\), its average is \(O(\log n/n)\). (3) It supports a concentration inequality for cumulative assignment noise; without a valid increment and conditional-mean condition, the Azuma–Hoeffding argument does not follow. (4) Since \(a>1/2\), the stated bounded-noise recursion gives \(O_{\mathrm{a.s.}}(\sqrt{\log n/n})\); this requires the stable scalar recursion and bounded martingale-difference noise. (5) No. One finite observation is descriptive evidence, not a proof of a pathwise eventual bound.

Clinical Biostats