Tutorials › Response-Adaptive Randomization › Deriving Power For Equal Allocation

Comparison With Fixed Randomization · Tutorial 77 of 501

Deriving Power For Equal Allocation

Learn to calculate two-sided power under equal allocation and to distinguish a fair fixed-design benchmark from claims about an adaptive design.

Intermediate 11 min read

What You'll Learn

  • State the normal-outcome assumptions used in the equal-allocation power calculation.
  • Derive the standard error and noncentrality parameter for a difference in means.
  • Calculate two-sided power from a normal critical value.
  • Use a normal approximation to plan the per-arm sample size for a target power.
  • Identify assumptions that must be matched when comparing trial designs.
  • Diagnose common misuses of a benchmark power calculation.

Why Derive Power for Equal Allocation?

Power is the probability that a specified test rejects \(H_0\) when a particular alternative is true. It depends on the effect size, outcome variability, sample size, significance level, and test procedure. A calculation for equal allocation gives a clear reference point: with a fixed total sample size, the same number of participants is assigned to each of two treatments. This reference is useful when evaluating a design, but it represents a fair comparison only when the competing designs are assessed under matched trial conditions.

Here the outcome is continuous, and the target is the difference between two treatment means. The derivation uses a two-sample normal model and a two-sided test. It gives an exact power formula if the common population standard deviation is known and a useful normal approximation when that standard deviation is estimated.

Model and assumptions: There are \(n\) independent participants assigned to each treatment, A and B, for a total sample size of \(2n\). Outcomes are normally distributed with a common variance: \(Y_{Ai}\sim N(\mu_A,\sigma^2)\) and \(Y_{Bi}\sim N(\mu_B,\sigma^2)\). Observations are independent within and between treatment groups, and the treatment effect \(\Delta=\mu_A-\mu_B\) and \(\sigma\) are treated as fixed for the calculation. The planned test is a two-sided test of \(H_0:\mu_A-\mu_B=0\) at significance level \(\alpha\). The calculation also presumes complete outcome measurement and no clustering or interference between participants.

These assumptions describe a fixed equal-allocation benchmark. In particular, the calculation does not by itself describe the power of a response-adaptive design, where assignments and group sizes may depend on accumulating trial data. The benchmark is informative only if the effect, outcome variability, total sample size, test, significance level, and outcome-measurement conditions are held comparable.

Deriving the Equal-Allocation Power Formula

The estimator of the treatment difference is \(\bar{Y}_A-\bar{Y}_B\). Under the stated model, the two sample means are independent, with variances \(\sigma^2/n\) each. Therefore,

$$ \operatorname{Var}(\bar{Y}_A-\bar{Y}_B) =\frac{\sigma^2}{n}+\frac{\sigma^2}{n} =\frac{2\sigma^2}{n}, \qquad SE=\sigma\sqrt{\frac{2}{n}}. $$

Under a particular true difference \(\Delta\), the standardized statistic \(Z=(\bar{Y}_A-\bar{Y}_B)/(\sigma\sqrt{2/n})\) has a normal distribution with variance 1 and mean \(\lambda\), where \(\lambda\) is the effect measured in standard-error units. This mean is also called the noncentrality parameter.

$$ Z\sim N(\lambda,1), \qquad \lambda=\frac{\Delta}{\sigma\sqrt{2/n}}. $$

Let \(\Phi\) be the standard normal cumulative distribution function, and let \(z_{1-\alpha/2}\) satisfy \(\Phi(z_{1-\alpha/2})=1-\alpha/2\). A two-sided z test rejects when \(|Z|>z_{1-\alpha/2}\). Under the alternative, rejection occurs either in the lower tail or the upper tail. Subtracting the mean \(\lambda\) from the two rejection boundaries gives the power formula:

$$ \operatorname{Power} =P(Z<-z_{1-\alpha/2})+P(Z>z_{1-\alpha/2}) =\Phi(-z_{1-\alpha/2}-\lambda) +1-\Phi(z_{1-\alpha/2}-\lambda). $$

The first term is the probability of rejection in the lower tail, and the second is the probability of rejection in the upper tail. For a negative \(\Delta\), \(\lambda\) is negative; the two tail probabilities exchange roles, leaving power unchanged for an effect of the same absolute size.

Worked Example: Calculating Two-Sided Power

Suppose a hypothetical equal-allocation trial plans \(n=99\) participants per treatment. Assume a common standard deviation of \(\sigma=10\) outcome units and a true mean difference of \(\Delta=4\) units. For a two-sided test with \(\alpha=0.05\), calculate approximate power using the normal critical value.

The model uses independent normal outcomes with equal variances and fixed group sizes. The calculation treats 10 units as the known standard deviation; if it is estimated in the analysis, the normal calculation is an approximation to the pooled t-test power.

The standard error and noncentrality parameter are

$$ SE=10\sqrt{\frac{2}{99}}\approx1.42134, \qquad \lambda=\frac{4}{10\sqrt{2/99}}\approx2.814249. $$

For \(\alpha=0.05\), the two-sided critical value is \(z_{0.975}\approx1.959964\). Substituting the unrounded values into both tails,

$$ \begin{aligned} \operatorname{Power} &=\Phi(-1.959964-2.814249) +1-\Phi(1.959964-2.814249)\\ &=\Phi(-4.774213)+1-\Phi(-0.854285)\\ &\approx0.80353\approx0.804. \end{aligned} $$

Thus, under these assumptions, the test has approximately 80.4% power to detect a true difference of 4 outcome units. This is a long-run rejection probability under the specified alternative, not the probability that the alternative is true.

Planning a Sample Size for a Target Power

The same relationship can be rearranged to plan the number per treatment. For a positive effect, a common normal-approximation formula for target power \(1-\beta\) is

$$ n\approx \frac{2\sigma^2\left(z_{1-\alpha/2}+z_{1-\beta}\right)^2}{\Delta^2}. $$

This formula comes from requiring the alternative mean of the standardized statistic, \(\lambda\), to exceed the upper rejection boundary by about \(z_{1-\beta}\). That is, set \(\lambda-z_{1-\alpha/2}\approx z_{1-\beta}\), substitute \(\lambda=\Delta/(\sigma\sqrt{2/n})\), and solve for \(n\). It focuses on the upper-tail rejection probability for a positive effect; the exact two-sided formula also includes the usually small probability of rejection in the opposite tail. Round the resulting \(n\) up to a whole participant per treatment, then check the resulting power using the two-tail formula.

Worked Example: Planning for 80% Power

For a hypothetical study, suppose the smallest difference of interest is 4 outcome units, the planning standard deviation is 8 units, and the planned two-sided significance level is 0.05. Find an approximate equal sample size per treatment for at least 80% power using the normal planning formula.

The target power is \(1-\beta=0.80\), so \(z_{1-\beta}=z_{0.80}\approx0.841621\), and \(z_{1-\alpha/2}=z_{0.975}\approx1.959964\). Substitution gives

$$ n\approx \frac{2(8^2)(1.959964+0.841621)^2}{4^2} \approx62.79. $$

Rounding up gives \(n=63\) participants per treatment, or 126 in total. To check, the noncentrality parameter is

$$ \lambda=\frac{4}{8\sqrt{2/63}}\approx2.806. $$

The two-sided power is \(\Phi(-1.960-2.806)+1-\Phi(1.960-2.806)\), approximately 0.801. Thus, this rounded sample size meets the target under the model assumptions. The planning calculation is approximate, so a design using an estimated standard deviation should use an appropriate t-based calculation or verify power by a more suitable method.

Conditions for a Fair Design Comparison

A power number is not a property of an allocation rule alone. It is conditional on the assumptions and choices that produce it. For a fair comparison with another design, use the same total number of participants, treatment effect, outcome scale and variability, significance level, sidedness, analysis method, and follow-up conditions. If one calculation assumes complete outcomes and another includes loss to follow-up, their powers do not describe the same conditions.

For equal allocation, the sample size in the formula is the number in each group, not the total. If a trial has total sample size \(N\), then \(n=N/2\) when allocation is exactly equal. Confusing \(n\) with \(N\) changes the standard error and can substantially distort the power calculation.

Also distinguish a known-variance z test from the usual analysis with an estimated variance. Under the normal, equal-variance model, a pooled two-sample t test uses \(2n-2\) degrees of freedom and estimates the common variance from the data. Its critical value and power are not exactly the same as those of a z test. The normal formula is often a useful planning approximation, particularly when sample sizes are not small, but it should not be described as exact t-test power.

Worked Example: Comparing Two Planning Scenarios

Consider two hypothetical fixed equal-allocation plans, each with 80 participants per treatment and \(\alpha=0.05\). Suppose both assume \(\sigma=12\) outcome units, but Plan 1 targets a difference of 5 units and Plan 2 targets a difference of 3 units. Compare their approximate power under the same known-variance normal model.

For both plans, \(SE=12\sqrt{2/80}\approx1.89737\). For Plan 1, \(\lambda=5/1.89737\approx2.635\), so the two-sided power is \(\Phi(-1.960-2.635)+1-\Phi(1.960-2.635)\approx0.750\). For Plan 2, \(\lambda=3/1.89737\approx1.581\), giving power \(\Phi(-1.960-1.581)+1-\Phi(1.960-1.581)\approx0.352\).

The lower power for Plan 2 follows from its smaller assumed effect, not from a change in allocation or sample size. The comparison is interpretable because the standard deviation, group sizes, test, and significance level were held fixed. A comparison that changed several of these inputs at once would not isolate the reason for a power difference.

Diagnostics, Limitations, and a Common Pitfall

Before interpreting a calculated power, check whether its inputs and model describe the planned study. Confirm that the per-group sample size has been used, that the effect and standard deviation use the same outcome units, and that the intended test is two-sided if the two-tail formula is used. Ask whether outcomes are plausibly independent and whether a common variance and normal model are reasonable for the planned sample sizes. Strong skewness, outliers, clustering, unequal variances, or substantial missing outcomes can make this calculation a poor description of the test’s actual operating characteristics.

The calculation also treats \(\Delta\) and \(\sigma\) as known planning inputs, although in practice they are uncertain. Power can change sharply across plausible effect sizes, especially when the target effect is close to zero. It is therefore useful to show how power varies over a reasonable range of planning values rather than presenting one number as guaranteed performance. A normal-model calculation does not establish that an adaptive design has the same power: if allocation depends on observed outcomes or the group sizes are random, this fixed-allocation derivation is not that design’s power calculation.

Common mistake: substituting the total sample size \(N=2n\) for \(n\) in \(\sigma\sqrt{2/n}\), then reporting the resulting power as if it were for the planned equal-allocation trial. The standard error formula uses the number in each treatment group. For a total of 198 participants divided equally, the correct input is \(n=99\), giving \(SE=\sigma\sqrt{2/99}\), not \(\sigma\sqrt{2/198}\).

Another tempting shortcut is to report only the upper-tail probability under the alternative for a two-sided test. The correct calculation includes both rejection tails, as in the formula above. The omitted tail is often very small for a reasonably large positive effect, but the two-tail expression defines the planned test and should be used for the reported calculation.

Key takeaway: Under the independent, equal-variance normal model, equal allocation gives \(SE=\sigma\sqrt{2/n}\) and noncentrality parameter \(\lambda=\Delta/SE\). A two-sided test’s power is the sum of its lower- and upper-tail rejection probabilities under the specified alternative. Treat the result as a conditional benchmark, and match assumptions and trial conditions when comparing designs.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. A trial has 50 participants per treatment. What sample size belongs in the equal-allocation standard error formula, and what is the total sample size?
  2. With \(\sigma=10\), \(n=50\) per treatment, and \(\Delta=2\), calculate the standard error and noncentrality parameter.
  3. Why is the known-variance normal calculation not exactly the same as power for a pooled two-sample t test?
  4. Name three conditions that should be matched for a fair comparison of design power.

Solutions. (1) Use \(n=50\) in the per-group formula; the total is \(2n=100\). (2) \(SE=10\sqrt{2/50}=2\) outcome units, so \(\lambda=2/2=1\). (3) The pooled t test estimates the variance and uses a t critical value with \(2n-2\) degrees of freedom, whereas the known-variance calculation uses a standard normal critical value. (4) For example, match total sample size, assumed treatment effect, outcome variability, significance level, sidedness, analysis method, and outcome follow-up conditions; any three of these are required comparison conditions.

Clinical Biostats