Tutorials › Response-Adaptive Randomization › Effect Of Allocation Ratio On Required Sample Size

Comparison With Fixed Randomization · Tutorial 84 of 501

Effect Of Allocation Ratio On Required Sample Size

Learn to calculate and compare approximate total sample sizes across fixed allocation ratios, and understand how allocation imbalance changes the sample size needed for a target power.

Intermediate 11 min read

What You'll Learn

  • Define the treatment-to-control allocation ratio and connect it to group sample sizes.
  • Derive the approximate total sample size for a two-sided comparison of means.
  • Calculate how required sample size changes across several fixed allocation ratios.
  • Round continuous sample-size requirements into feasible integer group sizes.
  • Identify assumptions and practical limitations of the allocation-ratio calculation.
  • Check how allocation-ratio comparisons can be distorted by rounding or inconsistent inputs.

Why Allocation Ratio Changes the Required Sample Size

A fixed allocation ratio determines how a trial’s total sample is divided between treatment and control. When outcome variances and the treatment effect are held constant, changing that division changes the precision of the estimated difference in means. The practical question is how many participants are needed at each ratio to attain a specified power.

The key comparison is between designs that use the same outcome model, treatment effect, significance level, and target power. If any of those inputs changes between calculations, the resulting sample sizes no longer isolate the effect of allocation ratio. The calculations below use a normal approximation for a two-sided test; at small sample sizes, a calculation based on the appropriate finite-sample test may be preferable.

Definition: Let \(n_T\) and \(n_C\) denote the numbers assigned to treatment and control, respectively, and define the treatment-to-control allocation ratio as \(r=n_T/n_C\). The total sample size is \(N=n_T+n_C\). Thus, for a specified \(N\) and \(r\), \(n_T=rN/(1+r)\) and \(n_C=N/(1+r)\).

For example, \(r=2\) means two treatment participants for every control participant. It does not mean that treatment receives two-thirds more participants than control: it receives twice as many. In every comparison, the ratio’s direction must be stated, because reversing the numerator and denominator changes its interpretation.

Model, Assumptions, and Sample-Size Formula

Suppose independent participants in the two groups have continuous outcomes with means \(\mu_T\) and \(\mu_C\), and variances \(\sigma_T^2\) and \(\sigma_C^2\). The treatment effect to detect is \(\delta=\mu_T-\mu_C\), with \(|\delta|>0\). For planning, assume these variances and the effect are fixed and known inputs. The usual large-sample normal approximation for the difference in sample means has standard error \(SE=\sqrt{\sigma_T^2/n_T+\sigma_C^2/n_C}\).

The test is two-sided, with null hypothesis \(H_0:\mu_T-\mu_C=0\), alternative hypothesis \(H_a:\mu_T-\mu_C\ne0\), and significance level \(\alpha\). The normal approximation treats the standardized test statistic as having variance 1 and, under the planning alternative, mean \(|\delta|/SE\). This setup requires independent observations within and between groups, a meaningful variance model, and an analysis consistent with the planned comparison. In small samples, the normal approximation may not describe the test’s power well.

Write \(z_q\) for the \(q\)-quantile of the standard normal distribution. The usual planning approximation achieves target power \(1-\beta\) when the standardized effect is at least \(z_{1-\alpha/2}+z_{1-\beta}\). Substituting the allocation ratio into the standard error gives a formula for the total sample size.

$$ n_T=\frac{rN}{1+r},\qquad n_C=\frac{N}{1+r}, \qquad SE^2=\frac{1+r}{N}\left(\frac{\sigma_T^2}{r}+\sigma_C^2\right). $$
$$ N\ \approx\ \frac{\left(z_{1-\alpha/2}+z_{1-\beta}\right)^2(1+r) \left(\sigma_T^2/r+\sigma_C^2\right)} {\delta^2}. $$

When both groups have the same variance, \(\sigma_T^2=\sigma_C^2=\sigma^2\), this simplifies to \(N\approx (z_{1-\alpha/2}+z_{1-\beta})^2\sigma^2(1+r)^2/(r\delta^2)\). The allocation-dependent factor is then \((1+r)^2/r=r+2+1/r\). It is smallest at \(r=1\), so equal allocation requires the smallest total sample under this equal-variance model when the cost and other conditions are the same.

Why the Formula Has This Shape

The approximation can be justified directly from the test’s power. Under a positive effect, the standardized statistic is approximately normal with mean \(\lambda=\delta/SE\) and variance 1. The two-sided test rejects above \(z_{1-\alpha/2}\) or below \(-z_{1-\alpha/2}\). Its approximate power is therefore \(P(Z>z_{1-\alpha/2})+P(Z<-z_{1-\alpha/2})\) when \(Z\) has that shifted normal distribution.

For a positive effect, the upper-tail rejection probability is \(\Phi(\lambda-z_{1-\alpha/2})\). Setting this probability approximately equal to \(1-\beta\) gives \(\lambda\approx z_{1-\alpha/2}+z_{1-\beta}\). This is the familiar sample-size approximation; it neglects the small lower-tail rejection probability under a positive alternative. Replacing \(SE^2\) by the allocation-ratio expression and solving for \(N\) yields the displayed formula. The omitted tail is one reason to treat the result as a planning approximation, not an exact power calculation.

With equal variances, the allocation factor is \(r+2+1/r\). Its derivative with respect to \(r\) is \(1-1/r^2\), which is negative for \(0<r<1\), zero at \(r=1\), and positive for \(r>1\). Thus the factor decreases up to equal allocation and increases beyond it. This shows why imbalance raises the required total sample in this setting.

Worked Example: Equal and Two-to-One Allocation

A hypothetical trial plans a continuous outcome with a common standard deviation of 10 units in both groups. It aims to detect a difference of 4 units with two-sided \(\alpha=0.05\) and 80% power. Compare equal allocation with a 2:1 treatment-to-control ratio.

The normal quantiles are \(z_{0.975}=1.960\) and \(z_{0.80}=0.8416\). The squared quantile sum is \((1.960+0.8416)^2=7.849\), to four significant figures. Under equal allocation, \(r=1\), so

$$ N\approx \frac{7.849(1+1)^2(10^2)}{1(4^2)} =\frac{7.849(4)(100)}{16} \approx196.2. $$

This continuous calculation gives about \(98.11\) participants per group. Rounding each group size up gives 99 treatment and 99 control participants, for a feasible total of 198.

For \(r=2\), the allocation factor is \((1+2)^2/2=4.5\). Therefore,

$$ N\approx \frac{7.849(4.5)(100)}{16} \approx220.8. $$

The continuous group sizes are \(n_C\approx220.8/3=73.59\) and \(n_T\approx2(220.8)/3=147.2\). Rounding each up gives 74 control and 148 treatment participants, or 222 in total. Under these assumptions, the 2:1 design needs more total participants than the equal-allocation design to attain the same approximate power.

Comparing Several Ratios

A useful way to compare candidate ratios is to keep every input except \(r\) unchanged. The next example does this for a hypothetical trial with a common outcome standard deviation in both groups.

Worked Example: Comparing Three Ratios at 90% Power

Suppose the common standard deviation is 8 units, the target difference is 2.5 units, the two-sided significance level is 0.05, and target power is 90%. Compare \(r=1\), \(r=2\), and \(r=3\). Here \(z_{0.90}=1.282\), so the squared quantile sum is \((1.960+1.282)^2=10.51\).

The common multiplier before the allocation factor is \(10.508(8^2)/(2.5^2)=10.508(64)/6.25\approx107.6\). For \(r=1\), the allocation factor is 4, giving \(N\approx107.6(4)=430.4\). The continuous group sizes are about 215.2 each; rounding up gives 216 per group, or 432 participants.

For \(r=2\), the factor is \(4.5\), giving \(N\approx107.6(4.5)=484.2\). The continuous sizes are about 161.4 control and 322.8 treatment participants; rounding up gives 162 and 323, or 485 total.

For \(r=3\), the factor is \(16/3=5.333\ldots\), giving \(N\approx107.6(5.333\ldots)=573.9\). The continuous sizes are about 143.5 control and 430.4 treatment participants; rounding up gives 144 and 431, or 575 total. The approximate totals are 430.4, 484.2, and 573.9 before integer allocation. Their increase with imbalance is consistent with the equal-variance formula.

These totals are planning approximations, not guaranteed minimum totals for an exact finite-sample test. The upward rounding ensures that both calculated group sizes are whole numbers and are not below their continuous targets.

Worked Example: A Four-to-One Allocation

Consider a separate hypothetical trial with common standard deviation 12 units, target difference 3 units, two-sided \(\alpha=0.05\), and 80% target power. Compare equal allocation with \(r=4\). The quantile sum squared is 7.849, and the common multiplier is \(7.849(12^2)/(3^2)=7.849(144)/9\approx125.6\).

For equal allocation, \(N\approx125.6(4)=502.3\). The continuous group sizes are about 251.2 per group; rounding each up gives 252 per group and 504 total.

For \(r=4\), the allocation factor is \((1+4)^2/4=6.25\), giving \(N\approx125.6(6.25)=784.9\). The continuous sizes are \(n_C\approx784.9/5=157.0\) and \(n_T\approx4(784.9)/5=627.9\). Rounding up gives 157 control and 628 treatment participants, or 785 total. The large increase arises from the fixed treatment effect and variance combined with a substantially imbalanced division of participants.

Checking the Calculation and Its Limits

Before using a sample-size comparison, check that the planned effect, variances, significance level, and power target are identical across ratios. Confirm that \(r\) is treatment divided by control, and verify that the resulting group sizes satisfy \(n_T/n_C\approx r\). A frequent arithmetic error is to calculate \(n_T\) and \(n_C\) from a rounded total and then report a ratio inconsistent with those group sizes.

Another diagnostic is the equal-variance allocation factor. It must be at least 4, since \(r+2+1/r\ge4\) for positive \(r\). If a calculation at \(r\ne1\) gives a smaller factor than 4, check the ratio definition and arithmetic. Also check units: \(\sigma^2\) and \(\delta^2\) both have outcome-units squared, so their ratio and the resulting sample size are dimensionless counts.

The formula assumes complete, independent observations and the specified variance and effect. Missing outcomes, clustering, unequal costs per participant, or a different analysis can change the required enrollment. If outcomes are not adequately represented by the assumed large-sample model, the approximation may give inaccurate power; use a calculation matched to the planned analysis, especially for small samples. Integer rounding can also shift the exact power slightly.

A common mistake is to argue that a 2:1 allocation should need fewer total participants because more people receive the treatment. That reasoning ignores the loss of precision caused by having fewer control observations. With equal variances, precision depends on \(1/n_T+1/n_C\); for a fixed total, that sum is minimized by equal group sizes. Unequal allocation may still be chosen for reasons outside this calculation, but it does not reduce total sample size for the same target power under the stated equal-variance assumptions.

These calculations compare fixed allocation designs. They do not establish the sample size for a response-adaptive design, whose realized group sizes may vary with observed outcomes. Nor does the formula by itself determine which ratio is best when practical or ethical considerations also matter. It isolates one question: how the fixed division of a given total affects the approximate sample size required under the stated model.

Check Your Understanding

Try each problem, then compare your reasoning with the solutions below.

  1. With equal outcome variances, compare the allocation factor at \(r=3\) with the factor at \(r=1\). By what percentage is the \(r=3\) factor larger?
  2. A hypothetical study has common standard deviation 6 units, target difference 3 units, two-sided \(\alpha=0.05\), and 80% target power. Find the approximate total sample size under equal allocation, then round to whole group sizes.
  3. With equal variances, are the allocation factors for \(r=1/4\) and \(r=4\) equal? Explain using the formula.
  4. Name one assumption whose failure could make the calculated total sample size unreliable, and explain why.

Solutions. For 1, the factor at \(r=3\) is \((1+3)^2/3=16/3\approx5.333\); at \(r=1\), it is 4. The relative increase is \((5.333-4)/4=1/3\), or about 33.3%. For 2, use the quantile-sum square 7.849: \(N\approx7.849(4)(6^2)/(3^2)=7.849(4)(36)/9\approx125.6\). The continuous group sizes are about 62.79 each, so round up to 63 in each group, for 126 total. For 3, the factor is \(r+2+1/r\); replacing \(r\) with \(1/r\) leaves it unchanged. Thus \(r=1/4\) and \(r=4\) have the same factor under equal variances, although the treatment and control labels are reversed. For 4, for example, if observations are correlated within groups, the independent-observation variance expression may not apply; the actual standard error and required sample size can then differ from the calculation.

Clinical Biostats