Why Robust Inference Can Still Be Wrong
A standard error can be calculated correctly for the wrong dependence structure. Clustering at an inappropriate level, treating a large observation count as a large number of independent units, or truncating serial covariances too aggressively can all produce misleading uncertainty. Even after estimating a defensible covariance matrix, a test can still be miscalibrated if its reference distribution does not suit the design and sample size.
The goal here is diagnostic: ask what units can reasonably be treated as independent, how much independent information the data contain, which dependence the covariance estimator includes, and what distribution the reported test actually uses. Robust covariance estimation addresses specified forms of dependence; it does not make every modeling or inferential choice harmless.
Set Up the Dependence Problem
Consider the linear regression model \(y=X\beta+u\), where \(y\) is an \(n\)-vector of outcomes, \(X\) is an \(n\times k\) regressor matrix, \(\beta\) is the coefficient vector, and \(u\) is the error vector. Suppose the coefficient estimator is ordinary least squares, with \(\hat\beta=(X'X)^{-1}X'y\). Inference requires a covariance estimator for \(\hat\beta\), not just an estimate of \(\beta\).
Cluster-robust inference allows errors to be dependent within specified clusters while relying on independence across clusters, alongside suitable regularity and exogeneity conditions. HAC (heteroskedasticity-and-autocorrelation-consistent) inference instead allows serial dependence across a time-ordered sequence, under conditions such as weak dependence, suitable moments, and an appropriate bandwidth sequence. Neither approach repairs endogeneity, an incorrect regression specification, or a dependence structure the estimator was not designed to capture.
For clusters \(g=1,\ldots,G\), a basic cluster-robust covariance estimator has the sandwich form
where \(X_g\) and \(\hat u_g\) contain the regressors and residuals in cluster \(g\). Finite-sample scaling factors or leverage adjustments may modify this expression. Its central feature is that it aggregates each cluster's score contribution before forming the outer product, allowing arbitrary covariance among observations in the same cluster.
Mistake 1: Clustering at the Wrong Level
The clustering level should reflect how treatment or exposure is assigned and where shocks can be shared. Clustering at a level below the assignment unit can count observations as independent even when they share a common treatment decision or shock. Conversely, clustering too broadly can discard useful independent variation and yield imprecise estimates. The relevant structure may also involve nested or crossed sources of dependence; a single cluster label is not automatically sufficient for every design.
Worked Example: Treatment Assigned by Clinic
Hypothetical data. A regression uses 500 patients treated in 10 clinics, with treatment assigned at the clinic level. Assume patients within a clinic may share unobserved clinic shocks, while clinics are plausibly independent. The estimated treatment coefficient is 0.90 outcome points. The patient-level standard error is 0.20 points, while the clinic-clustered standard error is 0.45 points.
Using the clinic-level estimate gives
For illustration, if the adopted small-sample procedure justifies a \(t\) reference distribution with \(G-1=9\) degrees of freedom, the two-sided p-value is \(2P(T_9\geq 2.00)=0.07655\). This is not statistically significant at \(\alpha=0.05\). The patient-level calculation would instead give \(0.90/0.20=4.50\), a much larger statistic, because it fails to account for the shared clinic-level dependence. The example's conclusion is about the specified inference procedure; \(G-1\) is not a universal degrees-of-freedom rule.
The 500 patients do not create 500 independent treatment assignments: there are only 10 clinics. If clinic-level independence is credible, treating patients as independent can understate uncertainty and overstate the evidence against \(H_0\).
Mistake 2: Treating Observation Count as Independent Information
A large \(n\) can coexist with a small \(G\). The usual cluster asymptotics rely on the number of independent clusters growing, not merely on adding observations within a fixed set of clusters. When \(G\) is small, a cluster sandwich estimate can be unstable, and normal-reference tests may reject too often. Finite-sample corrections, leverage adjustments, and degrees-of-freedom methods can help, but none turns a handful of clusters into abundant independent information. The number and balance of clusters, and whether a few clusters dominate, matter.
Worked Example: Many Observations, Few Clusters
Hypothetical data. A study has 2,400 observations nested in 12 independent regions, and the coefficient estimate is 0.45 units. Its region-clustered standard error is 0.20 units. Thus
A standard normal reference gives a two-sided p-value of approximately 0.02445. If, purely for illustration, the procedure justifies a conventional \(t\) reference with \(G-1=11\) degrees of freedom, the two-sided p-value is 0.04589. Both are below 0.05 here, but the normal approximation makes the evidence look substantially stronger. A \(t_{11}\) 95% interval is approximately
Under the stated procedure, this interval is just above zero at its lower endpoint. It describes uncertainty using the chosen cluster-level approximation; it does not mean there is a 95% probability that the fixed coefficient lies in this realized interval. The large observation count alone does not justify substituting a normal reference or ignoring the limited number of regions.
Mistake 3: Choosing a HAC Bandwidth That Is Too Short
A HAC estimator combines estimated autocovariances of score contributions, weighting them by a kernel and truncating or tapering their influence according to a bandwidth. If the bandwidth excludes important positive serial covariance, the long-run variance can be underestimated and the standard error too small. If included covariances are negative, or if noisy distant-lag estimates are given too much weight, a larger bandwidth can instead lower the estimate or increase its variability. Thus, “larger bandwidth means larger standard errors” is not a general rule.
For a Bartlett estimator with bandwidth \(L\), the weight at lag \(j\) is \(w_j=1-j/(L+1)\) for \(j=1,\ldots,L\). Under standard weak-dependence and regularity conditions, HAC consistency typically requires the bandwidth to grow with the sample size while growing more slowly than it. In a finite sample, a bandwidth is an approximation choice: it should be assessed in relation to plausible serial dependence and sensitivity to reasonable alternatives.
Worked Example: A One-Lag Bandwidth Misses Positive Dependence
Hypothetical calculation. For a time series of \(T=120\) observations, suppose the estimated autocovariances of a scalar influence series are \(\hat\gamma_0=4.0\), \(\hat\gamma_1=1.2\), \(\hat\gamma_2=0.8\), and \(\hat\gamma_3=0.4\), in squared outcome units. The long-run variance estimate is \(\hat\Omega=\hat\gamma_0+2\sum_{j=1}^{L}w_j\hat\gamma_j\), and the estimated variance of the sample mean is \(\hat\Omega/T\).
With \(L=1\), the Bartlett weight is \(w_1=1-1/2=0.5\), so
With \(L=3\), the weights are \(w_1=0.75\), \(w_2=0.50\), and \(w_3=0.25\). Therefore
and \(SE_{L=3}=\sqrt{6.8/120}=0.2380\) outcome units. Here the shorter bandwidth omits positive covariance and gives the smaller standard error. This calculation illustrates a possible consequence, not a rule that the longer bandwidth must always produce a larger standard error. In regression, the corresponding calculation is applied to score contributions and combined with the regression “bread” matrix.
Mistake 4: Using an Unjustified Reference Distribution
A covariance estimate and a reference distribution are separate parts of inference. A cluster-robust standard error does not itself specify whether a test should use a normal distribution, a \(t\) distribution with a particular \(df\), or a more design-specific procedure. The choice depends on the sampling and assignment structure, the number and influence of clusters, and the inference method being used. In particular, \(G-1\) is a common convention in some settings, not a theorem that applies to every clustered coefficient or contrast. Satterthwaite degrees of freedom, for example, can differ across contrasts.
For HAC inference, a normal reference is common in large samples under the relevant asymptotic conditions. Applying a small-cluster \(t\) correction to a time-series HAC result merely because the sample has a certain number of observations is not automatically justified. Likewise, a large-sample normal test should not be assumed reliable just because the total \(n\) is large when there are few independent clusters. Report the covariance estimator and the reference distribution or degrees of freedom, not only the standard error.
A Short Justification: Why Cluster Counts Matter
Let \(S_g\) be the score contribution for cluster \(g\), and suppose distinct clusters are independent. The variance of the total score is then
because independence makes every cross-cluster covariance zero. But within a cluster, the score is a sum of observation-level contributions, and its variance contains their cross-covariances. For two contributions \(s_{gi}\) and \(s_{gj}\), that variance includes \(2\mathrm{Cov}(s_{gi},s_{gj})\). A calculation that treats the observations as independent drops these terms. Clustering retains them by forming the cluster score first and then taking its outer product. This explains both why the dependence unit matters and why the number of independent clusters—not simply the number of rows—is central to the approximation.
Practical Diagnostics and Common Pitfalls
Before reporting clustered or HAC inference, make the assumptions visible and check how sensitive the conclusion is to defensible choices. The following questions help distinguish a computationally successful analysis from a credible inferential one.
- What generates dependence? Identify the assignment unit, shared shocks, repeated measurements, or time ordering that motivates the covariance estimator.
- How many independent units are there? Report \(G\) for cluster inference, along with cluster sizes and any concentration of leverage or influence.
- Does the bandwidth reflect plausible dependence? Check whether the main conclusion changes across reasonable bandwidths, and explain the basis for the selected value.
- What reference distribution was used? State whether inference is normal or \(t\)-based and give the degrees of freedom when relevant.
- What happens under alternatives? Sensitivity analysis can reveal fragile uncertainty estimates, but it cannot establish that one arbitrary choice is correct.
A common mistake is to argue, “There are thousands of observations, so the robust standard error and normal p-value must be reliable.” The correction is to identify the independent units supporting the relevant asymptotic approximation. In a clustered design, that may be a small \(G\); in a time series, dependence may extend across many lags. Large \(n\) does not answer either question by itself.
Check Your Understanding
For each question, explain the inferential issue rather than relying only on a calculation.
- A treatment is assigned to 8 hospitals, with 300 patients per hospital. What count is most relevant to the independent-cluster approximation, and why?
- Why might clustering by patient be inadequate if treatment was assigned by hospital and hospital-level shocks affect outcomes?
- For a Bartlett HAC estimate, what happens to the lag-one weight when the bandwidth changes from \(L=1\) to \(L=3\)?
- Does increasing a HAC bandwidth always increase the estimated standard error? Explain using the sign of autocovariances.
- Why is \(G-1\) degrees of freedom not a universal rule for every clustered test?
- A researcher reports a cluster-robust standard error but no reference distribution. What additional information is needed to interpret the p-value or confidence interval?