Tutorials › Response-Adaptive Randomization › Allocation Probabilities as Design Records

Covariate-Adaptive and Covariate-Adjusted Allocation · Tutorial 440 of 501

Allocation Probabilities as Design Records

Build an auditable participant-level record that distinguishes a model’s estimated target from the probability actually used to assign treatment.

Intermediate 10 min read

What You'll Learn

  • Distinguish an estimated allocation target from the assignment probability actually used.
  • Specify the participant-level fields needed to audit an adaptive assignment.
  • Record model versions and decision inputs in a way that supports reproducibility.
  • Check that logged probabilities agree with the assignment rule and observed allocation.
  • Recognize what a design record can establish and what it cannot.

Why Allocation Probabilities Belong in the Record

In an adaptive trial, an assignment is made using information available at that point in enrollment. The covariates for the incoming participant, the trial history, and the current allocation model can all affect the probability of each treatment. A final table showing only treatment assignments cannot reveal which information or model version produced those assignments.

A participant-level allocation record preserves the decision as it was made. It should let an independent reviewer determine the inputs available at the time, the model and rule in force, the model’s estimated allocation target, the probability actually used for randomization, and the treatment assigned. This is a record of the design’s operation, not merely a summary of its final treatment counts.

Definition: For participant \(i\), let \(X_i\) denote the recorded baseline covariates, \(H_{i-1}\) the trial information available immediately before that participant’s assignment, and \(A_i\) the assigned treatment. In a two-arm trial, code \(A_i=1\) for treatment 1 and \(A_i=0\) for treatment 0. The allocation target \(q_i\) is the model-based target probability of treatment 1 for that decision. The assignment probability \(p_i\) is the probability of assigning treatment 1 under the complete randomization rule actually applied, conditional on \(X_i\), \(H_{i-1}\), and the rule in force. In general, \(q_i\) and \(p_i\) need not be equal.

The distinction matters whenever the design modifies a model-based target before drawing the assignment. For example, an exploration rule may mix the target with equal randomization, or an operational rule may constrain extreme probabilities. The assigned treatment is one realized draw; it is not itself the assignment probability.

What a Participant-Level Record Should Contain

A useful record is sufficiently detailed to connect each assignment to its inputs and governing rule. The exact storage format can vary, but the information should be explicit, time-stamped, and preserved rather than reconstructed from memory.

  • Decision identity and timing: a participant or decision identifier, the assignment timestamp, and the order of the decision in the trial.
  • Covariates used: the values of \(X_i\) as received by the allocation system, including any transformations or categories applied before the model was evaluated.
  • Available history: the history or sufficient state of the trial used by the rule, such as the assignments and response data that had been incorporated by that time. Record the data cut-off or update time.
  • Model identity: a stable version identifier for the outcome or allocation model, its code or configuration version, and the parameter estimates used for the decision.
  • Target and applied rule: the estimated target \(q_i\), the rule that converts it to the assignment probability, and the resulting \(p_i\). If a restriction or exploration component applies, preserve its inputs and calculation.
  • Randomization result: the assignment \(A_i\), plus the randomization draw or auditable random-number record when operationally appropriate. Protect any seed or access detail that could compromise allocation concealment.

A version label alone is not enough if the corresponding model artifact and configuration cannot later be retrieved. Conversely, storing every raw detail without a clear link to the participant’s decision can make the record difficult to audit. A practical design gives every decision a durable identifier and links it to an immutable model/configuration snapshot and a concise participant-level row.

Worked Example: Separating Target From Applied Probability

Suppose a hypothetical two-arm trial uses an outcome model to estimate \(q_i=0.70\) for treatment 1 for a particular participant. The randomization rule mixes this target with equal randomization: with probability \(\epsilon=0.20\), it uses a fair coin; otherwise, it uses the estimated target. The model and rule are assumed to have been specified before this decision, and the participant’s recorded covariates and eligible trial history are available to the system.

The probability actually used is

$$ p_i=(1-\epsilon)q_i+\epsilon(0.5) $$

Substituting the values gives

$$ p_i=(1-0.20)(0.70)+(0.20)(0.50)=0.56+0.10=0.66. $$

The record should therefore store the model target \(q_i=0.70\), the exploration weight \(\epsilon=0.20\), the rule/version, and the applied probability \(p_i=0.66\). If the randomization draw assigns treatment 1, record \(A_i=1\) and the probability of that realized assignment, \(0.66\). If it assigns treatment 0, record \(A_i=0\) and its probability, \(1-p_i=0.34\). Neither assignment changes the probability that was used.

A Compact Formal Record and Its Audit Logic

For a two-arm design, a decision row can be represented as a tuple containing the participant identifier, decision time, covariates, history or history reference, model version, model output, rule version, target, applied probability, and realized assignment. The key audit check is that the assignment probability can be regenerated from the recorded inputs and the archived rule.

More formally, suppose the rule in version \(v_i\) maps the decision inputs and estimated target to a probability:

$$ p_i=g_{v_i}(q_i,X_i,H_{i-1}), $$

where \(g_{v_i}\) includes all operational steps that affect the probability, such as a prespecified exploration mixture or probability constraint. The probability of the realized assignment, conditional on the recorded decision inputs, is then

$$ P(A_i\mid X_i,H_{i-1},v_i)= \begin{cases} p_i, & A_i=1,\\ 1-p_i, & A_i=0. \end{cases} $$

This expression explains why logging only \(q_i\) is inadequate: if \(g_{v_i}\) is not known, the actual assignment probability cannot be checked. It also explains why logging only \(p_i\) is incomplete: without the inputs and version, a reviewer cannot verify how that probability was produced.

Derivation: Why the Record Supports a Reproducibility Check

The basic justification is a direct consequence of the decision rule. If the model artifact, covariates, history state, and rule version are retained, an auditor can rerun the prescribed calculation to recover \(q_i\), then apply \(g_{v_i}\) to recover \(p_i\). The logged and regenerated values can be compared within a declared numerical tolerance.

The realized assignment provides a second check. Under the documented two-arm randomization step, treatment 1 is selected with probability \(p_i\) and treatment 0 with probability \(1-p_i\). Thus the record must satisfy \(0\leq p_i\leq1\), and the probability associated with the observed assignment must be positive. If the design requires both treatments to remain possible at each decision, it must additionally satisfy \(0<p_i<1\). That positivity condition is a property of the design rule, not a conclusion established merely by observing assignments.

This is a reproducibility and integrity argument. It does not say that the covariates were measured correctly, that the response model is well specified, or that the allocation rule is scientifically appropriate. Those are separate questions. A perfectly complete log can faithfully document a poor or misapplied design.

1
Freeze the decision inputs.
Save the covariate values and the trial-history state available immediately before assignment; retain a timestamp or data cut-off.
2
Identify the model and rule.
Link the decision to retrievable model estimates and an exact rule/configuration version, including any exploration or constraint step.
3
Store target, probability, and result separately.
Record \(q_i\), \(p_i\), and \(A_i\) as distinct fields; do not substitute one for another.
4
Recompute and compare.
Rerun the archived calculation, check the probability range and the probability of the realized arm, and investigate any discrepancy.

Worked Example: Auditing a Probability From a Saved Record

Consider a hypothetical record for participant 18. It lists model version M3, target \(q_{18}=0.40\), and an exploration mixture with \(\epsilon=0.10\) and equal-randomization probability \(0.50\). The rule is \(p_i=(1-\epsilon)q_i+\epsilon(0.50)\). The assignment is \(A_{18}=0\). Assume the archived model and rule identifiers resolve to the stated calculation, and that all covariates and the eligible history are recorded.

Recompute the probability of treatment 1:

$$ p_{18}=(1-0.10)(0.40)+(0.10)(0.50)=0.36+0.05=0.41. $$

Because the participant received treatment 0, the probability of the realized assignment is

$$ P(A_{18}=0\mid X_{18},H_{17},\text{rule})=1-p_{18}=1-0.41=0.59. $$

The record passes these arithmetic checks if it lists \(p_{18}=0.41\), \(A_{18}=0\), and realized-arm probability \(0.59\), subject to the trial’s rounding convention. A stored value of \(0.40\) as the applied probability would be inconsistent: it is the target, not the probability after mixing.

Diagnostics, Alternatives, and Limits

Useful diagnostics focus on whether the record and the live allocation process agree. Check for probabilities outside \([0,1]\), missing model versions, duplicate or out-of-order decision identifiers, disagreement between recorded and regenerated probabilities, and assignments that are impossible under the recorded probability. Also compare timestamps with model-update times: a decision must use the version that was active when the assignment occurred, not a later refit.

A discrepancy may indicate a transcription error, an unrecorded software update, a stale history state, or a deviation from the approved rule. It should be investigated rather than silently corrected after the fact. Preserve the original entry and document any correction, its reason, time, and authorization. If probabilities are rounded for display, retain sufficient precision in the underlying record for reliable regeneration.

A simple alternative is to retain only the final allocation list or periodic treatment counts. Such summaries are useful for describing enrollment, but they cannot establish which probability was applied to a particular participant. Another alternative is to save only the model target. This is also insufficient when a separate randomization step changes that target. A full participant-level decision record is more demanding to maintain, but it is the appropriate choice when the aim is to audit the actual allocation process.

The record has limits. It cannot establish that an outcome model is correctly specified, that the estimated target is clinically desirable, or that an assignment was concealed from people who should not know it. It also cannot repair covariate values entered incorrectly at the time of allocation. A record system should therefore be paired with access controls, version management, and checks of the allocation software and data pipeline.

Worked Example: Detecting a Version Mismatch

In a hypothetical trial, the log for participant 42 reports target \(q_{42}=0.60\) and applied probability \(p_{42}=0.60\). The archived rule version R2 uses that target directly. A later report, however, says the trial was using version R3 at the decision time; R3 applies a 10% equal-randomization mixture. Assume the saved target and the two candidate rule definitions are accurate, and the decision timestamp is available.

Under R2, the regenerated probability is \(p_{42}=0.60\), matching the log. Under R3, it would be

$$ p_{42}=(1-0.10)(0.60)+(0.10)(0.50)=0.54+0.05=0.59. $$

The numerical difference is \(0.01\), but the important issue is not its size: the version in force is unresolved. The audit should use the timestamp and deployment history to establish which rule was active, then retain the evidence. Choosing whichever version makes the logged value match would not be a valid audit.

Common Mistake

Wrong reasoning: “The model estimated a 70% target for treatment 1, and the participant received treatment 1, so the assignment probability was 70%.” This conflates a model target with the probability after the full randomization rule, and it confuses the probability with the realized outcome.

Correction: Record the target, the complete rule, the resulting assignment probability, and the assigned arm separately. In the exploration example above, a target of \(0.70\) produced an applied probability of \(0.66\); the realized treatment does not retroactively change either number.

Key takeaway: An auditable adaptive allocation record preserves the decision inputs, the exact model and rule versions, the model-based target, the probability actually used, and the realized assignment as distinct, linked facts.

Check Your Understanding

Answer each question, then compare with the solutions.

  1. A model target is \(q_i=0.30\). The rule mixes it with equal randomization using \(\epsilon=0.20\). What is \(p_i\)? If treatment 0 is assigned, what is the probability of the realized assignment?
  2. Why is a model version label without a retrievable model artifact or configuration inadequate for a reproducibility check?
  3. A record contains \(q_i=0.80\), \(p_i=0.80\), and \(A_i=1\). What additional information is needed to determine whether the probability is correct?
  4. State two checks that could reveal a mismatch between the recorded decision and the allocation process.

Solutions. (1) \(p_i=(1-0.20)(0.30)+(0.20)(0.50)=0.24+0.10=0.34\). For treatment 0, the realized-assignment probability is \(1-0.34=0.66\). (2) The label does not reveal the model estimates, code, or configuration used; without those materials, the calculation cannot be regenerated. (3) The covariates and available history, the exact model/rule version, and the complete rule—including any exploration or constraint step—are needed. (4) Examples include regenerating \(p_i\) from the archived inputs and comparing it with the log, checking timestamps against model-update times, verifying \(0\leq p_i\leq1\), and checking that the observed arm had positive probability under the logged rule.

Clinical Biostats