Quant Memo
Core

Design Effect and Cluster Sampling

A single number that tells you how much a sampling design inflates (or shrinks) your estimator's variance compared to a simple random sample of the same size — critical whenever your data comes in naturally correlated groups, like trades within a day or customers within a branch.

Prerequisites: The Central Limit Theorem

You want to estimate the average trade size at a broker by sampling 1,000 trades, but pulling 1,000 fully independent trades is expensive, so instead you sample 50 client accounts and take all 20 trades each of them made that month. You now have 1,000 trade observations — but they are not 1,000 independent pieces of information, because trades from the same account tend to be similar (the same client's trades cluster around their typical size). Treating this cluster sample as if it were 1,000 independent random draws will make your confidence interval look far tighter than it really is. The design effect is the number that tells you exactly how much narrower your interval falsely appears to be, and how to correct it.

An analogy: asking one family member instead of ten strangers

If you want to learn the average height of a town's population, interviewing ten strangers gives you ten mostly-independent data points. Interviewing ten members of the same family instead gives you ten numbers too, but families share genes and diet, so those ten numbers are correlated and collectively carry much less new information than ten strangers would — maybe as little as the information in two or three independent people. The "effective sample size" of that family sample is much smaller than 10, even though you wrote down ten numbers. Cluster sampling has exactly this problem whenever the thing you're measuring is more similar within a cluster than across clusters.

The formula, one piece at a time

Let mm be the average number of elements sampled per cluster, and let ρ\rho (rho) be the intraclass correlation — how similar elements within the same cluster are to each other, relative to elements in different clusters, ranging from 0 (no similarity, clusters are as good as random draws) to 1 (every element in a cluster is identical). The design effect is

DEFF=1+(m1)ρ.\text{DEFF} = 1 + (m - 1)\rho.

In plain English: DEFF tells you the factor by which your cluster sample's variance is inflated compared to a simple random sample of the same total size. If ρ=0\rho = 0, DEFF =1= 1 and clustering costs you nothing. If clusters are highly homogeneous (ρ\rho close to 1) and you take many elements per cluster (large mm), DEFF grows large, meaning most of your observations are redundant. Your effective sample size — the size of a simple random sample that would give the same precision — is neff=n/DEFFn_{\text{eff}} = n / \text{DEFF}, where nn is your raw observation count.

Worked example 1: the trade-size survey

With m=20m = 20 trades per account and an intraclass correlation of ρ=0.3\rho = 0.3 (trades within one client's account are moderately similar in size), the design effect is

DEFF=1+(201)(0.3)=1+5.7=6.7.\text{DEFF} = 1 + (20 - 1)(0.3) = 1 + 5.7 = 6.7.

Your raw sample is n=1,000n = 1{,}000 trades, so the effective sample size is neff=1,000/6.7149n_{\text{eff}} = 1{,}000 / 6.7 \approx 149. Your 1,000 trade observations carry roughly the statistical information of only 149 independent trades. A confidence interval computed as if you had 1,000 independent draws would be roughly 6.72.6\sqrt{6.7} \approx 2.6 times too narrow, badly overstating your precision.

Worked example 2: fewer, deeper vs. more, shallower clusters

Compare two designs with the same 1,000 trades and ρ=0.3\rho = 0.3 fixed: Design A samples 50 accounts with m=20m = 20 trades each (as above, neff149n_{\text{eff}} \approx 149). Design B samples 200 accounts with m=5m = 5 trades each: DEFF=1+(51)(0.3)=1+1.2=2.2\text{DEFF} = 1 + (5-1)(0.3) = 1 + 1.2 = 2.2, giving neff=1,000/2.2455n_{\text{eff}} = 1{,}000 / 2.2 \approx 455. Design B, spreading the same 1,000 observations across more, smaller clusters, gives roughly three times the effective sample size of Design A — because fewer redundant observations are drawn from any one correlated cluster. This is why survey designers generally prefer more clusters with fewer elements each over fewer clusters sampled deeply, whenever the sampling cost allows it.

elements per cluster (m) m=5: DEFF=2.2 m=20: DEFF=6.7
Design effect rises linearly with cluster size m at fixed intraclass correlation ρ=0.3 — the deeper you sample within each correlated cluster, the more redundant information you collect.
n = 1000 (raw) 149 eff. Design A: 50×20 455 eff. Design B: 200×5
Both designs collect 1,000 raw trade observations, but spreading them across more, shallower clusters (Design B) roughly triples the effective sample size compared to fewer, deeper clusters (Design A) at the same intraclass correlation.

What this means in practice

The design effect matters wherever data is naturally grouped: trades within a client account, transactions within a trading day, loans within a branch, or repeated observations within a stock. Standard errors computed with an ordinary formula (ignoring clustering) are routinely too small by a factor of DEFF\sqrt{\text{DEFF}}, which can turn a genuinely insignificant result into one that looks statistically significant purely from underestimated variance. Clustered or "sandwich" standard errors, used routinely in panel-data regressions, are the practical fix — they explicitly account for within-cluster correlation rather than pretending it away.

Design effect DEFF=1+(m1)ρ\text{DEFF} = 1 + (m-1)\rho measures how much a cluster sample's variance is inflated relative to a simple random sample of the same size; effective sample size is the raw count divided by DEFF, and it's often dramatically smaller than the number of rows in your dataset.

The classic mistake is computing a standard error or confidence interval as if every observation in a clustered dataset were independent, when observations from the same cluster are correlated. This silently overstates precision — sometimes by a factor of 2 or 3 as in the example above — and is a common, hard-to-spot cause of results that look statistically significant in a backtest but don't replicate, because the "effective" sample size was a fraction of the raw row count all along.

Related concepts

Practice in interviews

Further reading

  • Kish, Survey Sampling, ch. 5
  • Cochran, Sampling Techniques, ch. 9
ShareTwitterLinkedIn