Effect Size - Cohen's d

Understand practical significance through standardized effect sizes

Calculate

Try these examples:

Understanding Effect Size

Statistical significance (p-values) tells us whether an effect exists, but not how large or important it is. A study with thousands of participants might find a "statistically significant" difference that is trivially small. Effect size bridges this gap.

A small p-value does NOT mean a large or important effect!

What is Cohen's dd?

Cohen's dd measures the difference between two means in units of standard deviations:

d=xˉ2−xˉ1spd = \frac{\bar{x}_2 - \bar{x}_1}{s_p}

where sps_p is the pooled standard deviation.

Visualizing Two Groups

Set the control group mean to 100, the treatment group mean to 108, and pooled standard deviation to 15.

Group Distributions

M1M25010015000.010.020.03ValueDensityControlTreatmentOverlap

The shaded area is what the two curves share: 78.97% of each group's distribution lies under the other group's curve as well.

The raw difference is 8 units -- but whether that is meaningful depends on variability.

Computing Cohen's dd

d=0−00=0d = \frac{{\cmv{computed}{mean2}} - {\cmv{computed}{mean1}}}{{\cmv{computed}{pooledSD}}} = {\cmv{computed}{cohenD}}

Absolute effect size: ∣d∣=|d| = 0.533.

Interpreting Effect Sizes

Cohen (1988) proposed these benchmarks:

Effect SizeCohen's ddInterpretation
Negligible$d
Small$0.2 \leqd
Medium$0.5 \leqd
Large$d

With ∣d∣=|d| = 0.533, this is a medium effect. This represents a meaningful difference that is likely noticeable in practice.

Distribution Overlap

When d=0d = 0, the two distributions overlap completely. As ∣d∣|d| increases, overlap decreases. The percent superiority (U3U_3) is the fraction of the treatment group that exceeds the control median:

U3=Φ(d)×100%U_3 = \Phi(d) \times 100\%

Try dragging the treatment mean 108 away from the control mean 100 and watch the overlap shrink:

Φ(0)×100%=\Phi({\cmv{computed}{cohenD}}) \times 100\% = 70.3%

So 70.3% of the treatment group scores above the control group median (vs. 50% with no effect).

Common Language Effect Size

The CLES answers: "If you randomly pick one person from each group, what is the probability the treatment person scores higher?"

CLES=Φ ⁣(d2)\text{CLES} = \Phi\!\left(\frac{d}{\sqrt{2}}\right)

With pooled SD 15 and current means: CLES=\text{CLES} = 0.647 (64.7%).

A randomly selected treatment-group member scores higher than a randomly selected control-group member 64.7% of the time.

Putting It Together

Drag the means and standard deviation above to watch all three measures update together:

  • Raw gap: 8 units between means 100 and 108
  • Cohen's dd: 0.533 (standardized by sp=s_p = 15)
  • CLES: 64.7% probability of treatment advantage

Effect size also sets how large a study must be. To detect an effect of this size 80% of the time with a two-sided test at α=0.05\alpha = 0.05, you need about 56 people per group. Halving dd quadruples that number, because n≈2(z0.975+z0.80d)2n \approx 2\left(\frac{z_{0.975} + z_{0.80}}{d}\right)^2.

Power vs Sample Size

Required n2040608000.20.40.60.81Sample Size per Group (n)Power (1 - β)Power80% Power

Statistical significance tells you if an effect exists; effect size tells you how much it matters. Always report both.

Try it in Code

# Cohen's d and related effect size measures
from scipy import stats

m1 = 100   # control mean
m2 = 108   # treatment mean
sp = 15 # pooled SD

d = (m2 - m1) / sp
u3 = stats.norm.cdf(d) * 100           # percent above control median
cles = stats.norm.cdf(d / (2**0.5))    # common language effect size

print(f"Cohen's d: {d:.3f}")
print(f"U3 (percent above control median): {u3:.1f}%")
print(f"CLES (probability of superiority): {cles:.3f} ({cles * 100:.1f}%)")

What to explore next

You might also like