Tutorials › Generalized Linear Models › Cluster Size and Correlation-Parameter Precision

Working Correlation Choices · Tutorial 873 of 981

Cluster Size and Correlation-Parameter Precision

Learn how the number and dependence of within-cluster pairs, together with the number of independent clusters, determine the precision available for estimating working-correlation parameters.

Advanced 10 min read

What You'll Learn

  • Distinguish the number of within-cluster pairs from the number of independent clusters.
  • Derive the variance of a pooled exchangeable pair-product estimator under Gaussian assumptions.
  • Calculate how overlapping lag-one products affect AR(1) estimator precision.
  • Interpret the per-parameter information available for an unstructured correlation matrix.
  • Identify why counting all pairs as independent generally understates uncertainty.

Why Pair Counts and Cluster Counts Both Matter

A cluster of \(m\) repeated measurements contains \(\binom{m}{2}\) distinct pairs. That count is relevant to correlation estimation, but it is not usually the estimator’s effective sample size: pairs from the same cluster share observations and are dependent. In contrast, independent clusters provide independent replications of the entire within-cluster pattern. Precision therefore depends both on how many usable pairs contribute to a parameter and on how those pairs co-vary within clusters.

The distinction is especially important when comparing working-correlation structures. An exchangeable model pools information across many pairs for one common parameter. An AR(1) model draws information from pairs at particular lags, with lag-one pairs often supplying the estimate of the adjacent-visit correlation. An unstructured model has a separate parameter for each visit pair, so each parameter has its own available replication count.

Definition: Suppose there are \(K\) independent clusters, each with \(m\) standardized responses \(X_{ij}\), where \(i\) indexes clusters and \(j\) indexes visits. A within-cluster pair count is the number of distinct response pairs available inside a cluster; with a complete schedule this is \(q=\binom{m}{2}\). The independent cluster count is \(K\), the number of independent replications of that within-cluster data structure.

For transparent variance calculations, several examples below use mean-zero Gaussian responses with unit marginal variance and known marginal standardization. These assumptions make pair products easy to analyze; they are not claims that residuals from every generalized linear model are Gaussian. In applications, estimated means, estimated scales, missing observations, and non-Gaussian responses can change the variance. The central distinction remains: uncertainty must account for dependence among contributions from the same cluster.

Exchangeable Correlation: Pooling Pairs Without Pretending They Are Independent

Under an exchangeable correlation structure, every distinct pair in a cluster has the same correlation \(\rho\). With complete data, a natural method-of-moments estimator averages all pair products across clusters. Define the within-cluster sum and average by

$$ S_i=\sum_{1\leq j<k\leq m}X_{ij}X_{ik}, \qquad T_i=\frac{S_i}{q}, \qquad q=\binom{m}{2}. $$

If \(E[X_{ij}X_{ik}]=\rho\) for distinct visits, then \(E[T_i]=\rho\). For equal cluster sizes, the pooled estimator is \(\hat{\rho}=K^{-1}\sum_{i=1}^K T_i\). The following exact calculation shows why \(q\) is not, in general, the number of independent pieces of information within a cluster.

Result: Suppose each cluster is an independent draw from a mean-zero, unit-variance, \(m\)-dimensional Gaussian distribution with exchangeable correlation \(\rho\), where \(-1/(m-1)<\rho<1\). Let \(q=\binom{m}{2}\). Then $$ \operatorname{Var}(T_i)= \frac{ q(1+\rho^2) +2m\binom{m-1}{2}(\rho+\rho^2) +12\binom{m}{4}\rho^2 }{q^2}. $$ For \(K\) independent clusters of this common size, \(\operatorname{Var}(\hat{\rho})=\operatorname{Var}(T_i)/K\).

Proof. Write \(Z_{jk}=X_jX_k\) for a pair product in one cluster. For a single pair, the Gaussian fourth-moment identity gives \(E[X_j^2X_k^2]=1+2\rho^2\), so \(\operatorname{Var}(Z_{jk})=1+\rho^2\). For two distinct pairs sharing one index, such as \((j,k)\) and \((j,\ell)\), the same identity gives \(E[X_j^2X_kX_\ell]=\rho+2\rho^2\). Subtracting \(E[Z_{jk}]E[Z_{j\ell}]=\rho^2\), their covariance is \(\rho+\rho^2\).

For two disjoint pairs, such as \((j,k)\) and \((\ell,r)\), the fourth moment is \(3\rho^2\), so the covariance is \(3\rho^2-\rho^2=2\rho^2\). There are \(q\) individual pair terms, \(m\binom{m-1}{2}\) unordered pairs of pair-terms that share an index, and \(3\binom{m}{4}\) unordered pairs of pair-terms that are disjoint. In a variance sum, each covariance between distinct terms appears twice. Therefore

$$ \operatorname{Var}(S_i) =q(1+\rho^2) +2m\binom{m-1}{2}(\rho+\rho^2) +2\left(3\binom{m}{4}\right)(2\rho^2). $$

Since \(T_i=S_i/q\), divide by \(q^2\) to obtain the displayed variance. Finally, independence across clusters gives \(\operatorname{Var}(K^{-1}\sum_i T_i)=K^{-2}\sum_i\operatorname{Var}(T_i)=\operatorname{Var}(T_i)/K\). \(\square\)

Worked Example: Four Visits Under Exchangeability

Suppose each of \(K=30\) independent clusters has \(m=4\) standardized Gaussian measurements, and the exchangeable correlation is \(\rho=0.2\). There are \(q=\binom{4}{2}=6\) pair products per cluster. The counts of shared-index and disjoint pair-term pairs are \(4\binom{3}{2}=12\) and \(3\binom{4}{4}=3\), respectively.

The variance of the within-cluster sum is

$$ \begin{aligned} \operatorname{Var}(S_i) &=6(1+0.2^2)+2(12)(0.2+0.2^2)+2(3)(2\cdot0.2^2)\\ &=6(1.04)+24(0.24)+6(0.08)\\ &=6.24+5.76+0.48=12.48. \end{aligned} $$

Thus \(\operatorname{Var}(T_i)=12.48/6^2=12.48/36=0.346\overline{6}\). Averaging across 30 independent clusters gives \(\operatorname{Var}(\hat{\rho})=0.346\overline{6}/30=0.0115\overline{5}\), and the standard error is \(\sqrt{0.0115\overline{5}}\approx0.1075\). The six pairs per cluster improve precision, but their contributions are not six independent observations when \(\rho\ne0\).

At \(\rho=0\), the formula simplifies to \(\operatorname{Var}(T_i)=1/q\): in this special Gaussian case, the covariances between distinct pair products vanish. Away from zero, the shared observations and nonzero correlations create additional covariance terms. Consequently, a rule that divides a variance by the total pair count \(Kq\) is not generally justified.

Why Independent Clusters Govern Replication

For a general cluster-level estimating contribution, there is a precise large-sample statement. It does not require the pair products inside a cluster to be independent.

Theorem: Let \(U_1,\ldots,U_K\) be independent and identically distributed cluster-level contributions with \(E[U_i]=\theta\) and \(\operatorname{Var}(U_i)=\tau^2<\infty\). For \(\hat{\theta}=K^{-1}\sum_{i=1}^K U_i\), \(\operatorname{Var}(\hat{\theta})=\tau^2/K\), and \(\sqrt{K}(\hat{\theta}-\theta)\xrightarrow{d}N(0,\tau^2)\).

Proof. Independence gives \[ \operatorname{Var}(\hat{\theta}) =\operatorname{Var}\left(K^{-1}\sum_{i=1}^K U_i\right) =K^{-2}\sum_{i=1}^K\operatorname{Var}(U_i) =\tau^2/K. \] The variables \(U_i-\theta\) are independent and identically distributed, have mean zero, and have finite variance \(\tau^2\). The classical central limit theorem therefore gives \(K^{-1/2}\sum_{i=1}^K(U_i-\theta)\xrightarrow{d}N(0,\tau^2)\), which is the stated convergence. \(\square\)

In the exchangeable example, \(U_i=T_i\). More generally, estimating equations often produce cluster-level contributions whose variance reflects all within-cluster dependence. With cluster size fixed, increasing \(K\) supplies more independent replications and reduces variance at rate \(1/K\). Increasing cluster size can also add useful information, but its effect is encoded in the variance of the entire cluster contribution; it cannot be assessed by simply counting every pair as an independent replicate.

AR(1): Lag-One Pair Count and Overlap

For an ordered schedule with AR(1) correlation, \(\operatorname{Corr}(X_{ij},X_{ik})=\rho^{|j-k|}\). A simple lag-one moment estimator averages the \(m-1\) adjacent products in each cluster. Those products overlap: consecutive products share one response, and more widely separated products remain correlated under the AR(1) model.

Worked Example: Precision From Four Lag-One Products

Suppose the standardized responses follow a mean-zero, stationary Gaussian AR(1) model with \(\rho=0.5\). In a cluster of five visits, define \(S_i=\sum_{t=1}^{4}X_{it}X_{i,t+1}\) and \(T_i=S_i/4\). The lag-one products each have expectation \(0.5\). For a lag \(h\geq1\) between two product indices, the Gaussian fourth-moment identity gives covariance \(2\rho^{2h}\); for the same product, the variance is \(1+\rho^2\). Therefore

$$ \begin{aligned} \operatorname{Var}(S_i) &=4(1+\rho^2)+2\sum_{h=1}^{3}(4-h)\,2\rho^{2h}\\ &=4(1.25)+4\left[3(0.25)+2(0.0625)+1(0.015625)\right]\\ &=5+4(0.890625)=8.5625. \end{aligned} $$

The average of four products in one cluster has variance \(8.5625/4^2=8.5625/16=0.53515625\). With \(K=40\) independent clusters, the estimator variance is \(0.53515625/40=0.01337890625\), and its standard error is \(\sqrt{0.01337890625}\approx0.1157\).

There are \(4\times40=160\) observed lag-one products, but these are not 160 independent observations. The calculation accounts for covariance among the four products contributed by each cluster; independence is used across the 40 clusters.

For this estimator, adding visits increases the number of adjacent pairs from \(m-1\), but does not make those pairs independent. The precise gain depends on \(\rho\) and on the covariance pattern among the products. Pair counts at other lags may inform other aspects of an AR(1) fit, but they do not turn into independent replications of the lag-one moment.

Unstructured Correlation: Replication Is Per Pair

With an unstructured correlation matrix for a fixed schedule of \(m\) visits, there are \(q=\binom{m}{2}\) off-diagonal correlations, one for each distinct visit pair. Under complete data, every pair-specific parameter is observed once per cluster, giving \(K\) pair observations for that parameter. The \(Kq\) total pair products across all clusters and pairs are not \(Kq\) replications of any single unstructured parameter.

Worked Example: Six Parameters, 25 Replications Each

Consider \(K=25\) independent clusters with \(m=4\) fully observed standardized Gaussian responses. An unstructured correlation matrix has \(\binom{4}{2}=6\) distinct off-diagonal parameters. Focus on the correlation between visits 1 and 3, assumed to be \(0.3\). The method-of-moments estimate based on this pair is the average of the 25 products \(X_{i1}X_{i3}\). Each product has variance \(1+\rho_{13}^2=1+0.3^2=1.09\), so the estimate has variance \(1.09/25=0.0436\) and standard error \(\sqrt{0.0436}\approx0.2088\).

There are 150 pair products in total across the 25 clusters, but only 25 observations of the visit-1/visit-3 pair. Products for the other five pairs concern different parameters. They may be statistically related to this estimate, but they do not supply 125 additional direct replications of \(\rho_{13}\).

If visits are missing, the number of available observations can differ from pair to pair. For a particular unstructured parameter, its direct replication count is the number of independent clusters in which that pair is observed, subject to the missingness assumptions and the estimation method. A large total number of observed pairs can coexist with sparse information for one particular pair.

Common Mistake and Practical Interpretation

Wrong reasoning: “There are 20 clusters with 10 pairs each, so the correlation estimate has 200 independent observations; its standard error should be proportional to \(1/\sqrt{200}\).” This treats pair products sharing a response, or even sharing a whole cluster, as independent.

Correction: Identify the cluster-level contribution to the estimator and account for its within-cluster variance, including covariance among pair products. Under independent, identically distributed clusters with finite variance, the variance of an average of cluster contributions scales as \(1/K\), not automatically as \(1/(Kq)\). For an exchangeable parameter, pooling pairs can improve precision, but the size of that gain depends on their covariance. For an AR(1) parameter, relevant lag-specific products overlap and are correlated. For an unstructured parameter, assess the number and dependence of observations for that particular pair.

These calculations describe precision for correlation parameters, not the full precision of generalized estimating equation regression coefficients. Correlation estimation can affect coefficient efficiency, but the two uncertainty questions are distinct. When using residual-based correlation estimates, estimated mean parameters and residual scales can add further dependence; the simple Gaussian calculations are benchmarks, not universal standard-error formulas.

Key takeaway: Count pairs to describe how much within-cluster information is available for a correlation parameter; count independent clusters to describe replication. Then account for the dependence among all contributions from the same cluster. Neither count alone determines precision in every design.

Check Your Understanding

Use the distinction between within-cluster pairs and independent clusters in your answers.

  1. With six complete visits per cluster, how many distinct pairs are available within each cluster for an exchangeable correlation estimate?
  2. Why can the variance of a pooled pair-product estimator differ from the variance obtained by treating all pair products as independent?
  3. In the AR(1) example, what feature of the four lag-one products required covariance terms in the variance calculation?
  4. With an unstructured correlation matrix and 18 complete clusters, how many direct observations contribute to each pair-specific correlation under the simple pair-product estimator?
  5. State the conditions under which averaging independent cluster-level contributions has variance proportional to \(1/K\).
Clinical Biostats