encyclopegia.org

Clustered standard errors

Clustered standard errors (or Liang-Zeger standard errors) are measurements that estimate the standard error of a regression parameter in settings where observations may be subdivided into smaller-sized groups ("clusters") and where the sampling and/or treatment assignment is correlated within each group.[src] Clustered standard errors are widely used in a variety of applied econometric settings, including difference-in-differences or experiments.[src] Analogous to how Huber-White standard errors are consistent in the presence of heteroscedasticity and Newey–West standard errors are consistent in the presence of accurately-modeled autocorrelation, clustered standard errors are consistent in the presence of cluster-based sampling or treatment assignment.[src] Clustered standard errors are often justified by possible correlation in modeling residuals within each cluster; while recent work suggests that this is not the precise justification behind clustering, it may be pedagogically useful.[src]

Clustered standard errors (or Liang-Zeger standard errors) are measurements that estimate the standard error of a regression parameter in settings where observations may be subdivided into smaller-sized groups ("clusters") and where the sampling and/or treatment assignment is correlated within each group.[src] Clustered standard errors are widely used in a variety of applied econometric settings, including difference-in-differences or experiments.[src] Analogous to how Huber-White standard errors are consistent in the presence of heteroscedasticity and Newey–West standard errors are consistent in the presence of accurately-modeled autocorrelation, clustered standard errors are consistent in the presence of cluster-based sampling or treatment assignment.[src] Clustered standard errors are often justified by possible correlation in modeling residuals within each cluster; while recent work suggests that this is not the precise justification behind clustering, it may be pedagogically useful.[src] Y = X\beta + e As is standard with OLS models, we minimize the sum of squared residuals e to get an estimate \hat{\beta} : \min_\beta (Y-X\beta)^2 \Rightarrow X'(Y-X\hat{\beta}) = 0 \Rightarrow \hat{\beta} = (X'X)^{-1} X'Y From there, we can derive the classic "sandwich" estimator: V(\hat{\beta}) = V((X'X)^{-1}X'Y) = V(\beta + (X'X)^{-1}X'e) = V((X'X)^{-1}X'e) = (X'X)^{-1}X'ee'X(X'X)^{-1} Denoting \Omega \equiv ee' yields a potentially more familiar form V(\hat{\beta}) = (X'X)^{-1}X'\Omega X (X'X)^{-1} While one can develop a plug-in estimator by defining \hat{e} \equiv Y - X\hat{\beta} and letting \hat{\Omega} \equiv \hat{e} \hat{e}' , this completely flexible estimator will not converge to V({\hat{\beta}}) as N \rightarrow \infty .[src] Given the assumptions that a practitioner deems as reasonable, different types of standard errors solve this problem in different ways.[src] For example, classic homoskedastic standard errors assume that \Omega is diagonal with identical elements \sigma^2 , which simplifies the expression for V(\hat{\beta}) = \sigma^2 (X'X)^{-1} .[src] Huber-White standard errors assume \Omega is diagonal but that the diagonal value varies, while other types of standard errors (e.g.[src] Newey–West, Moulton SEs, Conley spatial SEs) make other restrictions on the form of this matrix to reduce the number of parameters that the practitioner needs to estimate.[src] Clustered standard errors assume that \Omega is block-diagonal according to the clusters in the sample, with unrestricted values in each block but zeros elsewhere.[src] In this case, one can define X_c and \Omega_c as the within-block analogues of X and \Omega and derive the following mathematical fact: X'\Omega X = \sum_c X'_c \Omega_c X_c By constructing plug-in matrices \hat{\Omega}_c , one can form an estimator for V(\hat{\beta}) that is consistent as the number of clusters c becomes large.[src] While no specific number of clusters is statistically proven to be sufficient, practitioners often cite a number in the range of 30-50 and are comfortable using clustered standard errors when the number of clusters exceeds that threshold.[src] Alternatively, finite-sample modifications are also typically used, to reduce downwards bias V(\hat{\beta}) due to finite C.[src] Often practitioners use the following bias corrected estimator: \hat{V}(\hat{\beta}) = (X'X)^{-1} \sum_c X'_c \hat{\Omega}_c X_c (X'X)^{-1} \frac{C}{C-1} \frac{n - 1}{n - k}.[src] However, more recent practice has shifted towards analogues of the heteroscedasticity-robust HC2 and HC3 estimators.[src] Often called the CR2 and CR3 estimators, these estimators are unbiased under certain assumptions.[src] They also have been shown, especially when combined with degrees of freedom corrections for use in building confidence intervals, to produce better coverage rates when the number of clusters is not large.[src]

21 sentences · 21 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Clustered standard errors." encyclopegia.org, 2026, https://encyclopegia.org/wiki/clustered-standard-errors. Accessed 28 November 2026.

Chicago

"Clustered standard errors." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/clustered-standard-errors.

APA

encyclopegia.org. (2026). Clustered standard errors. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/clustered-standard-errors

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375955499 · 0.5 · snapshot enwiki-001375955499

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.