Why Unequal Group Variances Matter
In a multi-arm study, several treatment-control comparisons may use the same control participants. That shared group contributes uncertainty to every contrast, so the contrasts are correlated. When the outcome variances differ by group, the covariance still comes from the shared control mean, but the variance of each contrast also includes its own treatment group's variance. The calculation must therefore keep the group-specific variances and sample sizes separate.
This tutorial focuses on two treatment arms compared with one control, with each contrast written as treatment minus control. It builds on the earlier material on shared-control correlation and heteroscedastic shared-control correlation by working through the calculations with specified, potentially unequal group variances.
Assume observations are independent within each group, each group has a finite outcome variance, and the samples from different groups are independent. The variance of \(\bar{X}_g\) is then \(\sigma_g^2/n_g\). The arm-specific variances need not be equal. Normal outcome distributions are not required for these covariance and correlation formulas; if outcomes are normal, the group means and the contrasts are jointly normal as well.
Deriving the Unequal-Variance Formula
The two contrasts contain the same random quantity, \(\bar{X}_0\), with the same negative sign. The treatment means themselves come from independent groups, so they do not contribute cross-covariance. Expanding the covariance makes this structure explicit.
\(\operatorname{Cov}(D_1,D_2)=\operatorname{Cov}(\bar{X}_1-\bar{X}_0,\bar{X}_2-\bar{X}_0)\), which equals \(\operatorname{Cov}(\bar{X}_1,\bar{X}_2)-\operatorname{Cov}(\bar{X}_1,\bar{X}_0)-\operatorname{Cov}(\bar{X}_0,\bar{X}_2)+\operatorname{Var}(\bar{X}_0)\).
The first three terms are zero under the stated sampling assumptions. Thus the covariance is \(\operatorname{Var}(\bar{X}_0)=\sigma_0^2/n_0\).
For \(j=1,2\), independence of \(\bar{X}_j\) and \(\bar{X}_0\) gives \(\operatorname{Var}(D_j)=\sigma_j^2/n_j+\sigma_0^2/n_0\).
Substituting these quantities in the definition of correlation gives the result for two treatment-minus-control contrasts:
The covariance has units of outcome squared. Each variance in the denominator has the same units, so the correlation is dimensionless. For these same-direction contrasts, the shared-control covariance is nonnegative and is positive when the control variance is positive. Unequal treatment variances alter the denominator, and therefore can alter the correlation, without changing the shared-control covariance.
Worked Example: Two Unequal Treatment Variances
Suppose a hypothetical study has 40 control participants, 30 participants in treatment arm 1, and 50 in treatment arm 2. The specified outcome variances are \(16\), \(25\), and \(36\) outcome-units squared for control, arm 1, and arm 2, respectively. Assume independent samples across groups and within each group. Calculate the covariance and correlation of the two treatment-minus-control contrasts.
The shared-control contribution, and hence the covariance, is:
The contrast variances include the control contribution and the relevant treatment-arm contribution:
Therefore,
Under the stated model, the contrasts have covariance \(0.400\) outcome-units squared and correlation about \(0.340\). The different treatment variances and sample sizes yield different contrast variances; using one pooled variance in their place would not reproduce this calculation.
How Allocation Changes the Correlation
The formula separates two roles. Increasing control sample size \(n_0\) reduces the shared-control variance contribution \(\sigma_0^2/n_0\), which is the covariance. It also reduces that contribution to both contrast variances. Changing a treatment arm's sample size or variance changes that contrast's variance, but not the covariance with the other treatment contrast, provided control allocation and variance stay fixed.
Correlation is not determined by covariance alone: its denominator changes too. For example, a large treatment-arm variance makes that contrast less precise and can reduce its correlation with the other contrast. Nor does a larger sample in a treatment arm necessarily change the covariance; under this independent-groups model, it changes only the variance of that arm's contrast. These statements concern contrast dependence, not the association between individual outcomes across groups.
Worked Example: Unequal Allocation and a Shared Control
Consider hypothetical independent groups with \(n_0=25\), \(n_1=25\), and \(n_2=50\). Let the outcome variances be \(\sigma_0^2=9\), \(\sigma_1^2=16\), and \(\sigma_2^2=25\), in outcome-units squared. Find the covariance and correlation.
The covariance is determined by the control mean:
For arm 1, \(\operatorname{Var}(D_1)=16/25+9/25=0.640+0.360=1.000\). For arm 2, \(\operatorname{Var}(D_2)=25/50+9/25=0.500+0.360=0.860\). Thus,
The correlation is about \(0.388\), while the covariance is \(0.360\) outcome-units squared. The values are different kinds of quantities and should not be interpreted interchangeably.
Using Estimated Variances
In applications, population variances may be unknown. If separate sample variances \(s_0^2,s_1^2,s_2^2\) are available, replacing each \(\sigma_g^2\) by its group-specific estimate gives a plug-in estimate of the contrast covariance matrix and correlation. This preserves the unequal-variance structure. It does not make the unknown population correlation known exactly: the estimated correlation also has sampling uncertainty.
Do not confuse this plug-in calculation with an analysis that assumes a common variance and pools information across groups. Pooling is appropriate only under a common-variance model; if variances differ, it changes the variance inputs and can give an unsuitable estimate of contrast dependence. The introductory material on estimating contrast covariance from a common variance treats that distinct assumption.
Worked Example: Plug-In Correlation From Sample Variances
Suppose a hypothetical study has \(n_0=20\), \(n_1=24\), and \(n_2=30\), with observed sample variances \(s_0^2=12\), \(s_1^2=20\), and \(s_2^2=8\) outcome-units squared. Assume the groups are independent. Estimate the covariance and correlation by substituting the sample variances.
The estimated shared-control covariance is \(s_0^2/n_0=12/20=0.600\). The estimated contrast variances are:
The plug-in correlation is:
This estimates a positive correlation of about \(0.539\) using the observed arm-specific variances. The calculation does not say that the population correlation is exactly \(0.539\); different samples could produce different sample variances and a different plug-in value.
Assumptions, Diagnostics, and Alternatives
The covariance identity relies on independent samples across groups and on the stated definition of each contrast. If participants contribute to more than one group, or if outcomes across groups are otherwise dependent, the cross-covariance terms in the derivation need not be zero. The group means must also have finite variances for the formulas to apply. Normality is useful when a joint normal model for the contrasts is needed, but is not required for the covariance calculation itself.
A quick diagnostic is to check the components before calculating the correlation: the covariance should be \(\sigma_0^2/n_0\); each variance should add the control term to that arm's own term; and the final correlation must lie between \(-1\) and \(1\). For the specified same-direction contrasts, it should be nonnegative. A negative value or a value exceeding 1 signals a sign, arithmetic, or model-input problem. Check especially that variances, not standard deviations, were divided by sample sizes.
The main alternatives answer different modeling or design questions. A pooled-variance calculation imposes a common-variance assumption rather than retaining separate arm variances. Separate control groups remove this particular shared-control covariance under independent sampling, but they change the design and the amount of information per group. A randomization-based or simulation-based assessment can examine dependence under a specified design and analysis; it does not remove the need to define the contrast and its variance model. The formula here is limited to unadjusted sample-mean contrasts under independent groups; other estimators or dependence structures require their own covariance calculation.
Check Your Understanding
Try each question, then compare your work with the solutions below.
- With \(n_0=20\), \(n_1=40\), \(n_2=40\), and variances \(9\), \(16\), and \(25\) for groups 0, 1, and 2, calculate the covariance and both contrast variances.
- For the values in question 1, calculate the correlation of the two treatment-minus-control contrasts.
- If \(n_1\) doubles while all variances and other sample sizes stay fixed, which of the covariance and contrast variances changes?
- Why is it generally incorrect to substitute a pooled variance when the group variances are specified as unequal?
Solutions. For question 1, the covariance is \(9/20=0.450\). The first contrast variance is \(16/40+9/20=0.400+0.450=0.850\); the second is \(25/40+9/20=0.625+0.450=1.075\), all in outcome-units squared. For question 2, the correlation is \(0.450/\sqrt{(0.850)(1.075)}=0.450/\sqrt{0.91375}\approx0.450/0.9559\approx0.471\). For question 3, the covariance is unchanged because the control group is unchanged; \(\operatorname{Var}(D_1)\) decreases because its treatment contribution \(\sigma_1^2/n_1\) decreases, while \(\operatorname{Var}(D_2)\) stays the same. For question 4, pooling replaces the arm-specific variance inputs with a common-variance estimate, imposing an assumption that conflicts with unequal specified variances and potentially changing the contrast variances and correlation.