Algorithm Search⌘K

Definitionintro

Effect size

Also called Cohen's d, standardized mean difference.

A scale-free measure of how large an effect is, such as a mean difference divided by a standard deviation. Unlike a p-value it does not grow with n.

An effect size is a number that says how large an effect is, as opposed to how surely it differs from zero. The most used one, Cohen's dd, is the difference of two means divided by their common standard deviation, a unitless quantity. A p-value depends on both the effect and the sample size, while an effect size estimates a property of the populations that does not change with nn. Effect sizes are what power calculations and meta-analyses work with.

Definition

Population value. For two populations with means μ1,μ2\mu_1, \mu_2 and a common standard deviation σ\sigma (the root of the variance), Cohen's dd is

δ=μ1−μ2σ.\delta = \frac{\mu_1 - \mu_2}{\sigma} .

For one population and a reference value μ0\mu_0 it is (μ−μ0)/σ(\mu - \mu_0)/\sigma.

Sample value. With samples of sizes n1,n2n_1, n_2 and the pooled variance Sp2=((n1−1)S12+(n2−1)S22)/(n1+n2−2)S_p^2 = \big((n_1 - 1)S_1^2 + (n_2 - 1)S_2^2\big)/(n_1 + n_2 - 2) (divisor n1+n2−2n_1 + n_2 - 2),

d=Xˉ1−Xˉ2Sp,t=dn1n2n1+n2,d = \frac{\bar X_1 - \bar X_2}{S_p}, \qquad t = d\sqrt{\frac{n_1 n_2}{n_1 + n_2}},

where tt is the pooled Student t statistic. So tt grows like n\sqrt n at a fixed dd, while dd does not.

Hedges's correction. Under normal data, dd overestimates ∣δ∣|\delta|: E[d]=δ/J(ν)E[d] = \delta/J(\nu) with ν=n1+n2−2\nu = n_1 + n_2 - 2 and

J(ν)=Γ(ν/2)ν/2 Γ((ν−1)/2)≈1−34ν−1.J(\nu) = \frac{\Gamma(\nu/2)}{\sqrt{\nu/2}\,\Gamma((\nu - 1)/2)} \approx 1 - \frac{3}{4\nu - 1} .

The reason is that Xˉ1−Xˉ2\bar X_1 - \bar X_2 and SpS_p are independent and E[σ/Sp]=1/J(ν)E[\sigma/S_p] = 1/J(\nu). Hedges's g=J(ν) dg = J(\nu)\,d is therefore unbiased for δ\delta (Hedges, 1981).

Conventions. Cohen called δ=0.2\delta = 0.2, 0.50.5 and 0.80.8 small, medium and large, as defaults for when nothing better is known about the field. For two normal populations with a common σ\sigma, P(X1>X2)=Φ(δ/2)P(X_1 > X_2) = \Phi(\delta/\sqrt 2), which is 0.556, 0.638 and 0.714 at these values.

Examples and non-examples

A computation. x=5,7,9,6,8x = 5, 7, 9, 6, 8 and y=3,5,4,6,2y = 3, 5, 4, 6, 2. The means are 7 and 4, each sum of squared deviations is 10, so Sp2=20/8=2.5S_p^2 = 20/8 = 2.5 and Sp=1.5811S_p = 1.5811. Then d=3/1.5811=1.8974d = 3/1.5811 = 1.8974. With ν=8\nu = 8, J(8)=0.902703J(8) = 0.902703 (the approximation gives 0.903226), so g=1.7128g = 1.7128. The t statistic is 1.897425/10=3.01.8974\sqrt{25/10} = 3.0 with 8 degrees of freedom, two-sided p=0.0171p = 0.0171.

The bias, measured. Monte Carlo with n1=n2=5n_1 = n_2 = 5, normal data with δ=0.5\delta = 0.5, r=20000r = 20000 replications, seed 41: the mean of dd is 0.5459 (the exact value is 0.5/J(8)=0.55390.5/J(8) = 0.5539) and the mean of gg is 0.4928.

Non-example: the p-value. With the same sample d=0.3d = 0.3 and nn observations per group, the two-sided t-test p-value is 0.511 at n=10n = 10, 0.137 at n=50n = 50, 0.0029 at n=200n = 200 and 2.6×10−112.6 \times 10^{-11} at n=1000n = 1000. The p-value moved by ten orders of magnitude; the effect size did not move.

Non-example: the t statistic. t=dn1n2/(n1+n2)t = d\sqrt{n_1 n_2/(n_1 + n_2)} is a test statistic, not an effect size, because it grows with nn.

Not standardized, still an effect size. A raw difference such as "3 mm Hg lower blood pressure" is an effect size in the units of the measurement. It is often more useful than dd when the units mean something; dd is needed to compare or combine studies that measured on different scales.

  • Glass's Δ\Delta. The difference of means divided by the standard deviation of the control group only, used when the treatment may change the variance.
  • Paired data. dz=Dˉ/SDd_z = \bar D/S_D uses the standard deviation of the differences. With within-pair correlation ρ\rho and equal variances, σD=σ2(1−ρ)\sigma_D = \sigma\sqrt{2(1 - \rho)}, so dzd_z and dd are on different scales and must not be compared directly.
  • Other effect sizes. The correlation coefficient rr, the odds ratio and the risk difference for binary outcomes, and η2\eta^2 for analysis of variance.
  • Use in power analysis. The power of the t-test depends on δ\delta and nn only, so δ\delta is the input of sample size determination.
  • Report with an interval. A sample effect size is an estimate, and it should come with a confidence interval.

References

  1. Jacob Cohen, Statistical Power Analysis for the Behavioral Sciences, second edition, Lawrence Erlbaum, 1988, Chapter 2, Section 2.2 (the effect size index d for the difference of two means, and the conventional values 0.2, 0.5 and 0.8)
  2. Larry V. Hedges, Distribution theory for Glass's estimator of effect size and related estimators, Journal of Educational Statistics 6(2), 1981, pp. 107 to 128, The bias of the sample standardized mean difference and the exact correction factor J

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/Q9FA7V/text.yaml