Why Separate the Two Contributions?
In a multi-arm trial, each treatment is compared with a control group. For one such comparison, the estimated difference in means depends on observations from both arms. Its precision therefore reflects two sources of sampling variation: variation in the treatment-arm mean and variation in the control-arm mean. Keeping those contributions separate makes the variance calculation transparent and helps identify how sample sizes and outcome variability affect precision.
The focus here is one treatment-control comparison. A shared control also makes different treatment-control estimates statistically related, but calculating their covariance is a separate question. The earlier material on the sampling structure of shared-control comparisons establishes that a treatment arm and the control arm contain distinct observations, while the same control observations may be used in more than one comparison.
For the variance formula below, assume observations are independent within and between the two arms, and that each arm's observations have a common finite variance within that arm. The treatment and control variances need not be equal. Randomization is a common way to create independent arms in a parallel-group trial, but the variance calculation itself depends on the sampling structure and assumptions, not on randomization alone. No normality assumption is needed to calculate the variance. Normal outcomes do give an exact normal distribution for the difference in sample means.
Deriving the Variance
The variance of a difference contains a covariance term in general. Here, the treatment-arm sample mean and control-arm sample mean are independent, so that covariance is zero. Also, the variance of a mean of \(n\) independent observations with common variance \(\sigma^2\) is \(\sigma^2/n\). Applying those facts gives:
The first term is the treatment-arm contribution; the second is the control-arm contribution. Each is nonnegative, so both arms add sampling variation. Increasing one arm's sample size reduces that arm's contribution, but does not eliminate the contribution from the other arm.
If both arms have a common variance \(\sigma^2\), the formula simplifies to \(\sigma^2(1/n_i+1/n_0)\). This familiar special case still contains two contributions. It is not \(\sigma^2/(n_i+n_0)\): the treatment and control means are estimated separately and then subtracted.
Worked Calculations
Worked Example: Known, Unequal Population Variances
Hypothetical data. Suppose a treatment arm has \(n_i=50\) participants and outcome standard deviation \(\sigma_i=8\) points. The control arm has \(n_0=100\) participants and standard deviation \(\sigma_0=10\) points. Treat these population standard deviations as known for this calculation.
The variance has a treatment contribution of \(8^2/50=64/50=1.28\) points squared and a control contribution of \(10^2/100=100/100=1.00\) points squared. Thus,
The standard error is \(\sqrt{2.28}=1.510\) points. The treatment-arm contribution is larger here, even though that arm is smaller, because the standard deviation and sample size both matter. The standard error describes the sampling variability of the estimated difference across repetitions of the same design; it is not the observed treatment-control difference itself.
Worked Example: Estimating the Standard Error From Sample Data
Hypothetical data. Suppose the treatment arm has \(n_i=36\), sample mean \(\bar{x}_i=18.2\) minutes, and sample standard deviation \(s_i=12\) minutes. The control arm has \(n_0=64\), sample mean \(\bar{x}_0=13.7\) minutes, and sample standard deviation \(s_0=9\) minutes. The estimated mean difference is \(18.2-13.7=4.5\) minutes.
Because the population variances are unknown, estimate each arm's variance with its sample variance. The estimated variance of the difference is:
Therefore the estimated standard error is \(\sqrt{5.266}=2.295\) minutes. The sample mean difference is 4.5 minutes, while its estimated standard error is 2.295 minutes; these quantities have different roles and should not be confused. The calculation does not require equal population variances.
The unpooled estimated standard error in the second example is often called the unequal-variance or Welch standard error. An alternative is the pooled standard error, which combines the two sample variances before calculating the standard error. That approach requires a common-variance model. Under that model, the pooled variance estimate is
For the hypothetical data above, \(s_p^2=[35(144)+63(81)]/98=103.5\) minutes squared, giving \(SE_{\mathrm{pooled}}=\sqrt{103.5(1/36+1/64)}=2.119\) minutes. This differs from 2.295 minutes because it imposes a common-variance assumption and weights the two sample variances together. It is not a more accurate standard error merely because it is smaller. When unequal variances are plausible, the unpooled calculation retains each arm's separate contribution.
Worked Example: How Allocation Changes the Variance
Hypothetical planning calculation. Suppose the treatment and control outcome variances are 9 and 4 units squared, respectively, and the total sample size is 100. Compare an allocation of 60 treatment and 40 control participants with an allocation of 50 in each arm.
With 60 treatment and 40 control participants, the variance is \(9/60+4/40=0.15+0.10=0.25\) units squared, so the standard error is \(0.500\) units. With 50 participants per arm, it is \(9/50+4/50=0.18+0.08=0.26\) units squared, and the standard error is \(\sqrt{0.26}=0.5099\) units. For this single comparison and these assumed variances, the unequal allocation gives slightly lower variance.
The reason can be made precise for a fixed total \(N=n_i+n_0\). Write \(n_i=n\) and \(n_0=N-n\). The variance as a function of \(n\) is \(f(n)=\sigma_i^2/n+\sigma_0^2/(N-n)\). Its derivative is \(-\sigma_i^2/n^2+\sigma_0^2/(N-n)^2\); setting it to zero gives \(n/(N-n)=\sigma_i/\sigma_0\). Thus, when allocation costs are equal and the variances are treated as known, the variance-minimizing allocation for one comparison assigns sample sizes in proportion to the arm standard deviations. Here the ratio is \(3/2\), matching 60 to 40. This is a single-comparison result, not a general allocation rule for optimizing an entire multi-arm design.
Conditions, Diagnostics, and Alternatives
The formula is exact for the variance of the difference under independent observations with finite arm-specific variances. Its usual estimated version substitutes \(s_i^2\) and \(s_0^2\) for the unknown variances. The standard error is then an estimate of the standard deviation of the estimator, not the standard deviation of individual outcomes. If outcomes are normally distributed within each arm, the difference in sample means is normally distributed when population variances are known. With estimated variances, inference also depends on the chosen method and its assumptions; calculating this standard error alone does not determine a test or confidence interval.
Before using the calculation, check how observations were collected and whether the assumptions match the design. In particular, repeated measurements on one participant, clustering by site, or other within-arm dependence can make \(s^2/n\) an unsuitable variance estimate. In a paired design, the two measurements are not independent and their covariance matters. The independent-arm formula should not be applied without accounting for that dependence. Also check that each sample standard deviation and sample size refers to the same analysis population; missing outcomes or exclusions can change both.
For one comparison, the unpooled formula is the direct plug-in estimate when the two arm variances may differ. The pooled alternative is appropriate only when a common variance is a defensible assumption. A model-based analysis may instead adjust for prespecified covariates or reflect clustering, but its standard error must follow that model and design. These approaches answer related precision questions under different assumptions; they should not be interchanged without justification.
Confirm that the estimate is treatment mean minus control mean, so the target is \(\mu_i-\mu_0\).
For the sum-of-contributions formula, the two arm means must be independent, and observations within each arm must satisfy the variance assumptions used for the mean.
Use \(\sigma^2/n\) for a known variance or \(s^2/n\) as its sample-based estimate, separately for each arm.
The sum is the variance in squared outcome units; its square root is the standard error in outcome units.
Common Mistake and Key Limitation
A common mistake is to use only the treatment-arm term, \(\sigma_i^2/n_i\), because the treatment is the arm of interest. That leaves out the sampling variation in the estimated control mean. The correction is to include both independent contributions: \(\sigma_i^2/n_i+\sigma_0^2/n_0\). Another error is to label this single-comparison variance as the variance of all treatment-control estimates jointly. It describes one contrast only; sharing a control across comparisons affects their joint dependence but does not remove the control contribution from any individual contrast.
The calculation also has practical limitations. A small standard error does not establish that the treatment effect is important, unbiased, or clinically meaningful. It quantifies sampling precision under the stated model. Poor measurement, selection, nonadherence, or a mismatch between the analysis population and the target population are not repaired by computing the formula correctly.
Check Your Understanding
Answer each question, then check the solutions below.
- A treatment arm has \(n_i=25\) and \(\sigma_i=5\); control has \(n_0=100\) and \(\sigma_0=8\). Find the variance and standard error of the mean difference.
- In a hypothetical study, \(s_i=10\), \(n_i=50\), \(s_0=6\), and \(n_0=30\). Calculate the unpooled estimated variance and standard error.
- Why is the variance of a mean difference not generally \(\sigma^2/(n_i+n_0)\), even when both arms share variance \(\sigma^2\)?
- What key sampling feature would make the independent-arm formula inappropriate for paired measurements on the same participants?
Solutions. (1) The variance is \(5^2/25+8^2/100=1+0.64=1.64\) units squared, and the standard error is \(\sqrt{1.64}=1.281\) units. (2) The estimated variance is \(10^2/50+6^2/30=2+1.2=3.2\) units squared, and the standard error is \(\sqrt{3.2}=1.789\) units. (3) The two sample means are estimated separately, so their variances add: \(\sigma^2/n_i+\sigma^2/n_0\); this is not generally equal to \(\sigma^2/(n_i+n_0)\). (4) The measurements are dependent within pairs, so the covariance between paired outcomes must be accounted for rather than treating the arm means as independent.