MathsStatistics & Probability

Effect Size
calculator.

An effect size says how big a difference is, in a way a p-value cannot.

How it's worked out

Cohen's d is the gap between two means, counted in standard deviations. Lakens (2013) gives the standard form for two independent groups, where the bottom is the pooled SD, written here as sps_p, a weighted blend of the two spreads.

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

M is a group's mean, s its standard deviation and n its size. In small samples d runs a little high, so Hedges' g multiplies it by a factor just under 1, called J.

J\displaystyle J=1−34(n1+n2)−9\displaystyle {}= 1 - \frac{3}{4(n_1 + n_2) - 9}

Glass's delta divides by the control group's SD alone. Use it when a treatment changes the spread as well as the mean, so that only the control's spread is a fair ruler.

If a paper reports only a t, you can still get d for independent groups. It is t times the root of 1 over each group's size added together. With df alone, the tool assumes two equal groups of (df + 2) over 2.

d\displaystyle d=t1n1+1n2\displaystyle {}= t\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}

From a correlation, d is 2r over the root of 1 minus r squared, which assumes two equal groups. From a one-way ANOVA, the F conversions give eta squared and omega squared.

η2\displaystyle \eta^2=F⋅df1F⋅df1+df2\displaystyle {}= \frac{F \cdot df_1}{F \cdot df_1 + df_2}
ω2\displaystyle \omega^2=df1(F−1)F⋅df1+df2+1\displaystyle {}= \frac{df_1(F - 1)}{F \cdot df_1 + df_2 + 1}

The interval is the large-sample one, with a standard error from NIST. The size of the sample sets its width, and the interval is d plus or minus 1.96 of these standard errors.

SE\displaystyle SE=n1+n2n1n2+d22(n1+n2)\displaystyle {}= \sqrt{\frac{n_1 + n_2}{n_1 n_2} + \frac{d^2}{2(n_1 + n_2)}}

Worked examples

A vocabulary program, 75 against 68

Thirty pupils in a program average 75 (SD 10), and thirty others average 68 (SD 12). The pooled variance is 7,076 over 58, or 122, so the pooled SD is 11.045.

The 7 point gap divided by that gives d = 0.634, a medium effect on Cohen's scale. Hedges' g is 0.626, a touch smaller with this many pupils.

The 95% interval runs from 0.115 to 1.152, so these data fit anything from a negligible effect to a large one. To detect a d this size at 80% power, the next study needs 41 pupils in each group. This one had 30, which gives 67% power.

Open this example in the tool

A paper that only reports t(18) = 2.52

Lakens rates two movies with ten people in each group and reports t(18) = 2.52. That gives d = 1.13, and Hedges' g = 1.08, the same two values his paper gives (d of 1.13 and g of 1.08).

With 18 degrees of freedom the correction takes off about 4%. The interval is wide, from 0.18 to 2.07, as you would expect from ten people per group.

His paper then runs the same means as a within-subjects study, with t(9) = 4.74. The two-group formula would be wrong there, because the two sets of ratings are correlated.

Open this example in the tool

An ANOVA table showing F(2, 27) = 4.5

Three groups of ten give F(2, 27) = 4.5. Eta squared is 0.25, so a quarter of the variance in this sample goes with the groups. Cohen's f is 0.577.

Omega squared is 0.189, which is lower because it takes out the part chance alone would give a sample this small. Both count as large on Cohen's scale, where large starts at 0.14.

Open this example in the tool

Reading your result

Start with the size label, then doubt it. Cohen's cut-offs for d are 0.2, 0.5 and 0.8 for small, medium and large, and Sawilowsky added 1.2 for very large and 2 for huge. Lakens calls such values arbitrary, and warns they should not be read rigidly.

Set it against what matters. Psychometrica points out that a daily aspirin has a d of only 0.07, yet prevents about 34 of every 1,000 cardiac deaths. A small d on a serious outcome can matter more than a large d on a lab task. Compare with past studies on the same measure when you can.

Read the interval before the label. With 30 people per group and a d of 0.5, the interval runs from −0.01 to 1.01. That reaches from no effect at all to a large one, so one study rarely pins the size down.

Use the overlap figures for plain speech. U3, overlap and the chance of beating all assume two normal groups with equal spread. A d of 0.5 means about 69% of group 1 sits above group 2's mean, and a random person from group 1 beats one from group 2 about 64% of the time.

Sample size climbs fast as d shrinks. At 80% power and a two-sided 0.05 level, it takes 26 people per group for a d of 0.8, 64 for 0.5 and 394 for 0.2. The pwr package also lands on about 64 for a d of 0.5.

Common mistakes

  • Using the two-group formula on a paired t. It treats correlated scores as if they were independent, and gives the wrong d. In the Lakens example, one set of means gives t(18) as two groups and t(9) as repeated measures.
  • Quoting power from the effect you just saw. It only restates your p-value. Use the required group size to plan the next study, with an effect you would care about.
  • Reading partial eta squared as a share of all variance. From a factorial ANOVA, this F conversion gives the partial value for one factor, not that factor's share of the whole.
  • Pooling very unequal spreads. If one group's SD is much larger, the pooled SD hides that. Report Glass's delta as well, and say which SD you used.
  • Taking Cohen's labels as quality grades. A 51% powered study of d = 0.2 with 200 per group can still miss a real effect, and a large d from ten people may shrink when it is run again.

Questions people ask

Hedges' g is the safer pick with small groups, because d runs a little high there. With ten per group the correction takes off about 4%, and with thirty per group about 1.3%. Name the formula you used as well, since NIST, for one, calls the plain pooled-SD figure Hedges' g.

Sources