Tutorials › Group Sequential Methods and Sample Size Re-Estimation › Covariance From Shared Data

The Canonical Joint Distribution · Tutorial 34 of 699

Covariance From Shared Data

Learn to calculate covariance from the shared data at nested looks, including the adjustments needed when contributions are dependent.

Advanced 10 min read

What You'll Learn

  • Define cumulative score statistics over nested analysis sets and identify their shared contributions.
  • Derive covariance as the variance of the shared score total when later-only data are uncorrelated with it.
  • Apply the sum-of-variances formula when shared contributions are independent.
  • Include within-cluster covariances when shared contributions are dependent.
  • Recognize when changing score contributions or dependence across looks invalidates the simple formula.
  • Distinguish raw-statistic covariance from the correlation of standardized statistics.

Why Shared Data Determine Covariance

At successive interim looks, a cumulative score statistic at the later look reuses the observations already analyzed at the earlier look. The two statistics are therefore generally dependent, even if newly observed data bring independent information. Their covariance can be derived directly by separating the shared data from the later-only data.

The key result concerns raw cumulative statistics. It is not yet a formula for the correlation of standardized \(Z\) statistics: standardization changes the scale and is a separate calculation. The assumptions behind the covariance calculation also matter. In particular, adding individual variances is valid only when the corresponding shared contributions are independent.

Definition: Let \(A_i\) and \(A_j\) be analysis sets at two looks, with \(A_i\subset A_j\). Suppose each observation \(r\) contributes the same score \(X_r\) at either look where it is included. Define the cumulative score statistics \(U_i=\sum_{r\in A_i}X_r\) and \(U_j=\sum_{r\in A_j}X_r\). The shared block is \(S_i=\sum_{r\in A_i}X_r\), and the later-only block is \(T_{ij}=\sum_{r\in A_j\setminus A_i}X_r\), so \(U_i=S_i\) and \(U_j=S_i+T_{ij}\).

For the basic shared-data result, assume the score contributions have finite second moments and that the shared block \(S_i\) is uncorrelated with the later-only block \(T_{ij}\). Independence between the two blocks is a sufficient, but stronger, assumption. No normality assumption is needed to establish the covariance identity. Independence or dependence within the shared block determines how its variance is calculated.

Deriving the Shared-Block Covariance

Covariance is bilinear, and the covariance of a random variable with itself is its variance. Applying these facts to the decomposition of \(U_j\) gives the result.

1
Split the later statistic.
Because \(A_i\subset A_j\), write \(U_j=S_i+T_{ij}\), while \(U_i=S_i\).
2
Expand the covariance.
\(\operatorname{Cov}(U_i,U_j)=\operatorname{Cov}(S_i,S_i+T_{ij})=\operatorname{Var}(S_i)+\operatorname{Cov}(S_i,T_{ij})\).
3
Use the block assumption.
If the shared and later-only block totals are uncorrelated, then \(\operatorname{Cov}(S_i,T_{ij})=0\), so \(\operatorname{Cov}(U_i,U_j)=\operatorname{Var}(S_i)\).
4
Expand the shared variance.
For contributions that may be dependent within the shared block, include all pairwise covariances. If those contributions are independent, the pairwise terms are zero.
$$ \operatorname{Cov}(U_i,U_j) = \operatorname{Var}\left(\sum_{r\in A_i}X_r\right) = \sum_{r\in A_i}\operatorname{Var}(X_r) + 2\sum_{\substack{r<s\\r,s\in A_i}}\operatorname{Cov}(X_r,X_s), \quad \text{if } \operatorname{Cov}(S_i,T_{ij})=0. $$

Thus, when the shared contributions are independent, the formula simplifies to \(\operatorname{Cov}(U_i,U_j)=\sum_{r\in A_i}\operatorname{Var}(X_r)\). If they are also identically distributed with variance \(v\), and there are \(n_i\) shared contributions, this becomes \(n_i v\). These are nested formulas: the first identity needs uncorrelated shared and later-only block totals; the simplification to a sum of individual variances additionally needs independence within the shared block.

If the block totals are not uncorrelated, the omitted term must be retained: \(\operatorname{Cov}(U_i,U_j)=\operatorname{Var}(S_i)+\operatorname{Cov}(S_i,T_{ij})\). For example, this can arise when an observation in the later-only block is associated with a shared observation. Merely labeling data “later-only” does not guarantee zero covariance.

Worked Covariance Calculations

Worked Example: Independent Contributions With a Common Variance

Suppose, hypothetically, that the first look includes 40 independent score contributions, each with variance \(2.5\). A later look adds 60 new contributions. Assume all 100 contributions are mutually independent, and each contribution is unchanged between looks. Find the covariance of the two cumulative score statistics.

The first look's set \(A_i\) contains 40 shared contributions. The later-only sum is independent of that shared block, so the block covariance is zero. Independence within the shared block also permits adding its individual variances:

$$ \operatorname{Cov}(U_i,U_j) = \sum_{r\in A_i}\operatorname{Var}(X_r) = 40(2.5) = 100. $$

The covariance is \(100\) in squared score units. The 60 later-only contributions do not add to this covariance because they are independent of the first-look statistic. They do contribute to the variance of \(U_j\), which is a different quantity.

Worked Example: Independent Contributions With Unequal Variances

Consider a hypothetical interim analysis with four shared independent contributions whose variances are \(1\), \(2\), \(4\), and \(3\) score-units squared. Assume the later-only contributions are independent of these four. Calculate the covariance of the interim and later cumulative statistics.

The contributions are independent, but they are not identically distributed. Therefore, use the sum of their variances rather than multiplying the number of contributions by one common variance:

$$ \operatorname{Cov}(U_i,U_j) = 1+2+4+3 = 10. $$

The covariance is \(10\) score-units squared. This example also shows why the shared-data principle does not imply a universal formula of “number shared times variance”: that shortcut requires a common variance as well as independence.

Worked Example: Shared Contributions Within Clusters

Suppose a hypothetical first look includes two score contributions from each of 10 independent clusters. Within each cluster, each contribution has variance \(1\), and the two contributions have covariance \(0.25\). Assume that all later-only cluster scores are independent of the first-look clusters. Find the covariance between the cumulative statistics.

For one cluster, the variance of its shared score total is \(1+1+2(0.25)=2.5\). The factor of 2 appears because the covariance between the two distinct contributions enters twice in the variance expansion. Since the 10 clusters are independent, their shared totals have variances that add:

$$ \operatorname{Cov}(U_i,U_j) = 10\left[1+1+2(0.25)\right] = 10(2.5) = 25. $$

The covariance is \(25\) score-units squared. Adding the 20 individual variances alone would give \(20\), which is incorrect: it omits the within-cluster covariance terms. Here independence across clusters justifies summing cluster-total variances; it does not make the two contributions within a cluster independent.

When the Formula Applies—and When It Does Not

The shared-block calculation relies on the score contribution for a shared observation being the same in both statistics. It also relies on the shared and later-only block totals being uncorrelated. These conditions often hold when new independent participants enter at each look and the same prespecified score contribution is applied to each participant. If contributions are clustered, repeated, or otherwise dependent, the covariance structure must be represented at the correct unit of independence.

A useful alternative is to define one total score per independent cluster and use those cluster totals as the contributions. If clusters are independent, the variance of the shared total is then the sum of cluster-total variances. Within-cluster dependence is already incorporated in each cluster-total variance, as in the preceding example. This avoids falsely treating correlated individuals as independent units.

In likelihood-based settings, the variance of a score contribution may equal its expected information contribution under appropriate model conditions. When that identity holds, and the independent shared contributions have information contributions \(v_r\), their covariance is \(\sum_{r\in A_i}v_r\), the total information contributed by the shared data. The identity should not be assumed automatically: it depends on the statistical model and the conditions supporting the information identity.

If the score is recalculated at each look using different estimates, weights, or nuisance-parameter adjustments, the shared observations may not contribute the same \(X_r\) at both looks. In that case, the shared part of the covariance must use the look-specific contributions. For example, if the shared contribution at look \(i\) is \(X_r^{(i)}\) and at look \(j\) is \(X_r^{(j)}\), covariance terms have the form \(\operatorname{Cov}(X_r^{(i)},X_s^{(j)})\); they cannot be replaced automatically by \(\operatorname{Var}(X_r)\). This tutorial's simple formula is not a substitute for deriving those terms under the actual score definition.

Diagnostics, Alternatives, and Limitations

Before applying the shared-data formula, check the analysis sets and the dependence assumptions explicitly:

  • Verify that the analysis sets are nested and identify exactly which observations or independent units are shared.
  • Confirm that a shared observation has the same score contribution at both looks. If it does not, derive the cross-look covariance from the actual definitions.
  • Determine whether shared contributions are independent. If not, include their pairwise covariance terms or work with independent cluster totals.
  • Check whether the shared block and later-only block are uncorrelated. If that condition fails, include \(\operatorname{Cov}(S_i,T_{ij})\).
  • Check units: a covariance of score statistics has squared score units, while a variance is nonnegative. A computed covariance that violates the applicable variance or covariance bounds signals an arithmetic or modeling error.

The direct shared-data derivation is the most transparent approach when the cumulative statistics have an explicit sum representation. A second approach is to calculate \(\operatorname{Cov}(U_i,U_j)\) from the full joint covariance matrix of all contributions; this is useful when there are complex dependence patterns, but it requires all relevant covariance entries. For independent increments, another approach is to write the later statistic as the earlier statistic plus an independent increment; that gives the same shared-block result under its assumptions. The more specialized independent-increments representation is not justified merely by nested sets if the block totals are dependent.

A common mistake is to write “the covariance is the number shared times the variance of one contribution” whenever data overlap. That reasoning silently assumes a common variance, independence among shared contributions, unchanged contributions across looks, and no covariance between shared and later-only totals. The correction is to start from \(\operatorname{Cov}(U_i,U_j)=\operatorname{Var}(S_i)+\operatorname{Cov}(S_i,T_{ij})\), then expand the shared-block variance with all necessary covariance terms. Covariance alone also does not determine the correlation of the standardized statistics; their marginal variances are needed for that calculation.

Key takeaway: For nested cumulative statistics with unchanged shared contributions, the covariance equals the variance of the shared total only when that total is uncorrelated with the later-only total. Add individual shared variances only when the shared contributions are independent; otherwise, include their pairwise covariances.

Check Your Understanding

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

  1. There are 12 independent shared contributions, each with variance \(3\), and the later-only block is independent of them. What is the covariance of the two cumulative statistics?
  2. Three shared contributions have variances \(1\), \(1\), and \(2\), with the only nonzero pairwise covariance equal to \(0.4\) between the first two. The later-only block is uncorrelated with the shared block. What is the covariance of the cumulative statistics?
  3. Why is it not enough to know that the analysis sets are nested to conclude that the covariance is the variance of the shared block?
  4. In a clustered study, why can adding the individual-level variances underestimate the variance of the shared total?

Solutions. (1) Independence gives \(12(3)=36\), so the covariance is \(36\) squared score units. (2) Expand the shared variance, including the pairwise covariance twice: \(1+1+2+2(0.4)=4.8\). The covariance is \(4.8\) squared score units. (3) The shared and later-only totals might be correlated; the exact identity includes \(\operatorname{Cov}(S_i,T_{ij})\), which vanishes only under an additional uncorrelated-block condition. (4) Correlated contributions add covariance terms to the variance of their sum. If those terms are positive, omitting them understates the shared-total variance; if they are negative, omitting them can instead overstate it.

Clinical Biostats