Why the Number of Clusters Matters
When observations within a cluster can share shocks, the independent pieces of information are not the individual observations but the clusters. A regression can contain many rows and still have limited independent information if those rows are concentrated in only a few clusters. The central asymptotic question is therefore what happens as the number of independent clusters grows.
The key result is that OLS can be asymptotically normal even when errors are dependent in arbitrary ways within each cluster. The dependence is accommodated by treating each cluster’s entire regression score as one contribution to the estimator. But independence across clusters alone is not enough: no small set of clusters should dominate the sum of scores. A condition on the scores themselves rules out that failure.
Model and Cluster Scores
Let \(g=1,\ldots,G\) index independent clusters. Cluster \(g\) contains \(n_g\) observations, with response vector \(y_g\), regressor matrix \(X_g\) having \(p\) columns, and error vector \(u_g\). Consider the linear conditional-mean model
The parameter \(\beta_0\) is a fixed \(p\)-vector, with \(p\) fixed as \(G\) grows. Assume clusters are independent of one another and that \(E[u_g\mid X_g]=0\). There is no requirement that errors within a cluster be independent, have equal variances, or share a particular covariance structure. The conditional-mean assumption rules out systematic error conditional on the cluster’s regressors; it does not rule out within-cluster dependence.
Write the OLS estimator as \(\hat\beta=(\sum_g X_g'X_g)^{-1}\sum_g X_g'y_g\), when the inverse exists. Define the normalized design matrix and score covariance by
A standard many-cluster setup assumes \(Q_G\) converges to a finite positive-definite matrix \(Q\), and \(\Omega_G\) converges to a finite matrix \(\Omega\). The first condition prevents the regressors from becoming unidentified or arbitrarily ill-conditioned in the limit. The second ensures that the accumulated score variance has a stable scale. For nondegenerate inference on every linear contrast, the corresponding limiting variance must be positive.
The Conditions Behind the Limit
The central limit theorem must apply to the cluster scores, not merely to individual errors. One useful condition is the vector Lindeberg condition: for every \(\epsilon>0\),
Here \(\|\cdot\|\) is the Euclidean norm and \(\mathbf{1}\{\cdot\}\) is an indicator. The condition says that the portion of total score variance contributed by unusually large cluster scores vanishes. A convenient stronger condition is a uniform bound \(E[\|s_g\|^{2+\delta}]\leq C\) for some \(\delta>0\) and finite constant \(C\). That bound directly controls the score tails and implies the Lindeberg condition when the normalized score variance is bounded.
The representation behind the result also shows why the cluster score is the relevant object. From the regression model,
The independent-cluster central limit theorem gives \(G^{-1/2}\sum_g s_g\xrightarrow{d}N(0,\Omega)\), under the covariance limit and Lindeberg condition. Since \(Q_G^{-1}\to Q^{-1}\), multiplying the representation by \(\sqrt G\) and applying the continuous mapping theorem yields the displayed limit. Also, the score sum divided by \(G\) converges to zero in probability because its variance is of order \(1/G\). Thus \(\hat\beta\to\beta_0\): OLS is consistent under these conditions.
Why the Cluster-Robust Covariance Estimates This Limit
The cluster-robust covariance estimator, often called CR0, uses each cluster’s fitted residual vector \(\hat u_g=y_g-X_g\hat\beta\):
The middle term is the sum of outer products of fitted cluster scores, \(X_g'\hat u_g\). Unlike a formula that adds only observation-level squared residuals, this outer product includes cross-products between observations in the same cluster. Those terms allow the within-cluster covariance to be unrestricted.
For a simple sufficient setting for consistency of this covariance estimator, suppose cluster sizes and regressor magnitudes are uniformly bounded, the design limit above holds, and cluster scores have uniformly bounded moments of order \(2+\delta\). These conditions give a law of large numbers for the score outer products and control the effect of replacing errors by fitted residuals. Indeed, with \(A_g=X_g'X_g\), the fitted score is \(X_g'\hat u_g=s_g-A_g(\hat\beta-\beta_0)\). Bounded \(A_g\), consistency of \(\hat\beta\), and bounded average score size make the average difference between fitted-score and true-score outer products vanish. Consequently,
These are sufficient conditions, not a claim that bounded cluster sizes are necessary. In settings with growing or unbalanced clusters, the design, score-tail, and covariance conditions must be checked in a form appropriate to that sequence. The important point is that marginal moment bounds on regressors and errors, taken separately, do not automatically establish the needed control of their product \(X_g'u_g\).
Worked Example: Computing a Cluster-Robust Slope Standard Error
Consider a hypothetical regression with an intercept and one regressor. There are three independent clusters, each containing two observations with the same regressor value. The values are \(x=0,1,2\) across the clusters. Within each cluster the two responses are identical: \(13/6\), \(14/3\), and \(49/6\), respectively. These data are an arithmetic illustration of the estimator, not a basis for reliable large-sample inference with only three clusters.
The fitted line is \(\hat y=2+3x\). The residual in each of the two observations in the three clusters is \(1/6,-1/3,1/6\), respectively. The residuals sum to zero, and their regressor-weighted sum is \(2(0)(1/6)+2(1)(-1/3)+2(2)(1/6)=0\), so these coefficients satisfy the OLS normal equations.
For a cluster with repeated regressor value \(x_g\) and common residual \(r_g\), the score is \((2r_g,2x_gr_g)'\). The three cluster scores are therefore \((1/3,0)'\), \((-2/3,-2/3)'\), and \((1/3,2/3)'\). Their outer products sum to
The design cross-product is \(\sum_gX_g'X_g=\begin{pmatrix}6&6\\6&10\end{pmatrix}\), whose inverse is \(\begin{pmatrix}5/12&-1/4\\-1/4&1/4\end{pmatrix}\). The slope variance estimate is the quadratic form of the second row of this inverse with the score outer-product sum:
Thus the CR0 slope standard error is \(\sqrt{1/72}\approx0.1179\), in units of response per unit of \(x\). The calculation shows how cluster scores enter the sandwich. With \(G=3\), however, a many-cluster normal approximation should not be presumed accurate.
A Score-Tail Pitfall
Worked Example: Marginal Moments Do Not Guarantee a Cluster CLT
For each \(G\), imagine \(G\) independent clusters with one observation each. In a hypothetical triangular array, let \((X_g,u_g)=(1,\pm1)\) with total probability \(1-1/G\), and \((X_g,u_g)=(G^{1/4},\pm G^{1/4})\) with total probability \(1/G\); within either case, each sign has equal probability. The score \(s_g=X_gu_g\) is \(+1\) or \(-1\) in the first case and \(+\sqrt G\) or \(-\sqrt G\) in the rare case. Its mean is zero.
The design and score variance limits appear well behaved:
Yet for any \(0<\epsilon<1\), the rare score has magnitude \(\sqrt G>\epsilon\sqrt G\). Thus the Lindeberg expression is
not zero. The marginal moments of \(X_g\) and \(u_g\) of order \(3.5\) are uniformly bounded: each rare contribution is \(G^{-1}G^{7/8}=G^{-1/8}\). But the score’s moment of order \(2+\delta\) is not uniformly bounded for any \(\delta>0\). This example shows why conditions must control the score (or sufficiently strong joint moments that imply score control), rather than relying on separate marginal moment bounds.
Large-Sample Inference in a Hypothetical Regression
Worked Example: A Cluster-Robust Confidence Interval
Suppose a hypothetical study has \(G=400\) independent clusters and a regression with an intercept and a slope. Its normalized design matrix is \(Q_G=\begin{pmatrix}1&0\\0&1\end{pmatrix}\), and the estimated normalized score outer-product matrix is \(\widehat\Omega=\begin{pmatrix}2.5&1.5\\1.5&2.5\end{pmatrix}\). Suppose the estimated slope is \(0.300\), measured in outcome units per unit of the regressor. Assume the conditional-mean, independence, design-limit, and score-tail conditions are credible, and that the sample score outer products estimate their limiting covariance adequately.
Since \(Q_G^{-1}\) is the identity here, the estimated asymptotic slope variance is the slope diagonal entry divided by \(G\):
For the two-sided test \(H_0:\beta_1=0\) against \(H_a:\beta_1\ne0\), the large-sample statistic is \(z=0.300/0.07906\approx3.795\). Its two-sided standard-normal p-value is approximately \(0.00015\). A 95% large-sample confidence interval is
Under the stated asymptotic conditions, the data provide evidence against a zero slope. The interval describes plausible values for the slope in outcome units per regressor unit under the model and approximation; it is not a statement that the fixed parameter has a 95% probability of lying in this particular interval.
What the Result Does—and Does Not—Say
Many-cluster asymptotics justify normal approximations when the number of independent clusters grows and the stated design and score conditions hold. They do not say that a large observation count automatically guarantees accurate inference: the number of clusters, the spread of their scores, and the validity of the conditional-mean model all matter. Nor does the result impose a particular within-cluster correlation pattern; that flexibility is precisely why the cluster score aggregates all observations in a cluster before its outer product is formed.
Common mistake: “The clusters are independent, so the cluster-robust estimator is automatically asymptotically normal.” Independence is necessary for this argument, but it is not sufficient. A small fraction of clusters can carry a nonvanishing share of score variance, as the rare-event example demonstrates. The correction is to verify a score-level Lindeberg condition or a suitable stronger score-moment condition, alongside the design and covariance limits.
Check Your Understanding
Use the model and conditions in this tutorial to answer the following.
- Why can errors be arbitrarily dependent within a cluster while the many-cluster central limit argument still apply?
- State in words what the cluster-score Lindeberg condition rules out.
- In the consistency argument, what does convergence of \(Q_G\) to a positive-definite matrix ensure?
- Why do separate moment bounds on regressors and errors fail to guarantee a suitable score-tail condition?
- If \(G\widehat V_{\mathrm{CR0}}\) estimates the limiting covariance of \(\sqrt G(\hat\beta-\beta_0)\), how does the estimated variance of a coefficient scale with \(G\)?