Surveys and trials often sample whole groups, such as villages, schools or clinics, instead of individuals. The design effect calculator takes the sample size under simple random sampling, the average cluster size and the intracluster correlation, and gives the design effect, the total sample size with clustering, the number of clusters, the effective sample size and the inflation of the standard error.
How the calculation works
- Start from the sample size n you would need if people were picked at random one by one, for example from a margin-of-error calculation.
- Estimate the intracluster correlation ρ, which is how alike people in the same cluster are, and the average cluster size m.
- The design effect is DEFF = 1 + (m − 1) × ρ. It is the factor by which clustering inflates the variance of an estimate.
- The sample you need with clusters is n × DEFF, the number of clusters is that total divided by m (rounded up), and the effective sample size of a clustered sample is its size divided by DEFF.
Example
A survey needs 400 people under simple random sampling. It will be run in clusters of 20 people with an intracluster correlation of 0.05. DEFF = 1 + 19 × 0.05 = 1.95, so the sample must grow to 400 × 1.95 = 780 people in 39 clusters. If only 400 people were recruited in clusters, the effective sample size would be 205, and the standard error would be 1.396 times larger.
Why it matters
Ignoring clustering gives a sample that is too small and confidence intervals that are too narrow. The design effect is the standard fix, and it appears in the plan of almost every household survey and cluster-randomized trial.
Good to know
The formula assumes clusters of similar size and a single level of clustering. With unequal sizes the design effect is a little larger, and with several levels of sampling the effects multiply. The ICC is usually not known precisely, so treat the result as an estimate and plan for some margin.
Related tools
The sample size calculator gives the simple random sample, and the margin of error calculator shows how precision depends on it.