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 be the average number of elements sampled per cluster, and let (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
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 , DEFF and clustering costs you nothing. If clusters are highly homogeneous ( close to 1) and you take many elements per cluster (large ), 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 , where is your raw observation count.
Worked example 1: the trade-size survey
With trades per account and an intraclass correlation of (trades within one client's account are moderately similar in size), the design effect is
Your raw sample is trades, so the effective sample size is . 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 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 fixed: Design A samples 50 accounts with trades each (as above, ). Design B samples 200 accounts with trades each: , giving . 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.
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 , 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 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