Effect size · Statistics Library

Cohen's d

Cohen's d expresses the difference between two group means in standard-deviation units, so the size of an effect can be judged independently of the sample size.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

A p-value tells you whether a difference is detectable. It does not tell you whether it is big. With enough data, a difference of half a gram becomes 'significant'.

Cohen's d answers the size question. It divides the gap between the two averages by the typical spread within the groups. So d = 1 means the groups are one standard deviation apart: the average member of one group scores above about 84% of the other group.

Because it is measured in spread units rather than grams or seconds, d is comparable across studies that measured different things. The usual rough labels are 0.2 small, 0.5 medium, 0.8 large, but those are conventions, not laws: in a field where nothing moves the needle, d = 0.3 may be a major finding, and in a manufacturing setting d = 0.8 may still be within tolerance. Judge the size against your own context.

Cohen's d is a standardized mean difference: the gap between two means expressed in standard deviations instead of the original units. Hedges g is a slightly shrunk version of Cohen's d that corrects its small tendency to overstate the effect in small samples. Cohen's d is one kind of effect size, and the most common one for comparing two means.

Practitioner explanation

d = (mean1 - mean2) / s_p, using the POOLED standard deviation. KernelStats computes it this way for the two-sample t regardless of the equal_var setting, so the effect size remains comparable across the Welch and Student paths; note that Glass's delta (dividing by the control SD only) is the better choice when the treatment is expected to change the variance itself, and Hedges' g applies the small-sample correction factor roughly (1 - 3/(4(n1+n2) - 9)) that removes d's upward bias below about n = 20 per group.

d is a ratio of two estimates and therefore has its own sampling error; it should be reported with a confidence interval, which at small n is noticeably wide and is often the fastest cure for over-reading a point estimate. Its value depends on the population's variability, so d is not comparable across populations with different heterogeneity even when the raw effect is identical: a frequent source of trouble in meta-analysis.

Cohen's benchmarks were offered explicitly as a fallback for when no better frame exists, not as a classification scheme. Where the outcome has a meaningful unit, the raw difference with its interval is the more informative report and d is the supplement.

When to use it

Consider it when

Alongside every two-group mean comparison, and whenever you need an effect on a scale that is comparable across studies or across differently-scaled outcomes.

Use caution when

As a replacement for the raw difference when the outcome has a meaningful unit (grams, dollars, minutes): the unit is more informative to a decision-maker. Also avoid comparing d across populations with different variability, and avoid the unadjusted d below roughly 20 per group, where Hedges' g is preferable.

Formulas and symbols

Cohen's d for two independent groups

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

s_p is the pooled standard deviation of the two groups.

Pooled standard deviation (the denominator)

sp=(n1−1)s12+(n2−1)s22n1+n2−2s_p = \sqrt{\frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1 + n_2 - 2}}

The same pooled SD used by the equal-variance form of the t-test.

Alternatives

  • Hedges' g. Fewer than about 20 observations per group, where d is biased upward and the small-sample correction matters.
  • One-Way ANOVA. Three or more groups: eta-squared or omega-squared is the corresponding proportion-of-variance effect size.
  • Raw mean difference with a confidence interval. The outcome is measured in units your audience already understands. Report d as a supplement, not a substitute.

Worked example

Scenario

Adelie versus Gentoo penguin body mass, where the two-sample t reports a mean difference of -1375 g.

Result

Pooled SD is 479.5 g, giving d = -2.87.

Interpretation

The species differ by nearly three standard deviations: far beyond the conventional 'large' benchmark, and consistent with body mass alone being close to a diagnostic feature. Here the raw difference of about 1.4 kg is the more useful number for a reader, with d showing how extreme the separation is relative to within-species variation.

Dataset: penguins.csv

Common misconceptions

Misconception

d = 0.8 is a large effect, full stop.

Correction

Cohen offered those benchmarks as a last resort when a field has no better reference. The same d can be trivial or decisive depending on the outcome, the cost of acting, and what other interventions achieve. Interpret against domain context first.

Misconception

A significant result with a small d means the effect is unimportant.

Correction

Importance depends on scale and stakes. A tiny standardized effect on a population-wide outcome, or on a cheap intervention, can matter a great deal; a large d on a surrogate outcome nobody cares about may not.

References

  1. Statistical Power Analysis for the Behavioral Sciences, 2nd edition, Cohen, J. (1988).
  2. NIST/SEMATECH e-Handbook of Statistical Methods, §7.2.4 sample sizes and detectable differences, NIST/SEMATECH (2012), §7.2.4.