StatHarbor Analytics · Applied statistics lab

Effective sample size: how much data your weights really leave you

All 40 people stay in this example. Move the slider to give a few people more of the total weight. How many equally weighted people would give the same precision for the group mean if outcomes were independent with equal variance?

Try it: skew the weights

0%Healthy
0%30%70%100%
ESS (of N = 40)
Design effect
Reference SE multiplier

Each bar is one unit’s weight. Taller bars hold more influence. Illustrative simulated weights.

The formulas

Effective sample sizeESS=(∑i=1Nwi)2∑i=1Nwi2\mathrm{ESS}=\frac{\left(\sum_{i=1}^{N} w_i\right)^2}{\sum_{i=1}^{N}w_i^2}Kish’s effective sample size. Compute it separately for the treated and control groups, since each arm’s precision limits the estimate.
Fraction of the group’s headcountr=ESSNr=\frac{\mathrm{ESS}}{N}Compare ESS with the original headcount in the same group. Equal weights give exactly 1.
Design effect from unequal weightsD=NESS=1+CV(w)2D=\frac{N}{\mathrm{ESS}}=1+\mathrm{CV}(w)^2Design effect: variance inflation from unequal weights. CV is the standard deviation of weights divided by their mean.
Reference standard error multiplierD=1r\sqrt{D}=\frac{1}{\sqrt{r}}A 25% ESS/N means deff = 4, so standard errors roughly double.

Which weight does each person receive?

Choose the population whose treatment effect you want to estimate. Then read across its row.

ei=P(Ti=1∣Xi)e_i=P(T_i=1\mid X_i) is person ii’s propensity score. p=P(T=1)p=P(T=1) is the overall proportion treated.

TargetTreated
Ti=1T_i=1
Control
Ti=0T_i=0
ATEAverage treatment effect in the full population1ei\frac{1}{e_i}11−ei\frac{1}{1-e_i}
ATTAverage treatment effect on the treated11ei1−ei\frac{e_i}{1-e_i}
ATOAverage treatment effect in the overlap population1−ei1-e_ieie_i
Stabilized ATEAverage treatment effect in the full populationpei\frac{p}{e_i}1−p1−ei\frac{1-p}{1-e_i}

Read the ATT row. At a propensity score of 0.80, a treated person gets weight 1. A control with the same score gets weight 0.800.20=4\tfrac{0.80}{0.20}=4. This control represents four control observations of weight 1 in the weighted mean.

Under ATT, treated ESS equals the treated headcount. Under ATE and overlap weighting, weights can vary in both groups. Stabilizing ATE weights rescales each group by a constant, so its within-group ESS stays the same.

Key interpretation benchmarks

No universal cutoff exists. Use ESS / N as a guide.

ESS / NReadingWhat it means
> 70%HealthyWeights are fairly uniform. Little precision was spent on balance.
30–70%ModerateNoticeable variance inflation. Inspect covariate balance and the confidence interval for the effect.
< 30%WarningSevere precision loss. A handful of observations carry most of the weight.

What a low ESS tells you

How to fix it

Choose a response that fits the scientific question.