## Cohen’s d: a standardized measure of effect size

Various tools, scales and techniques are available to researchers to quantify outcome measures. Some of these tools are familiar, like a weight scale to measure weight loss over the course of an exercise program. Others are less familiar and are only understood by those working in the same field. Furthermore, different outcome measures can be calculated from the same data. For example, the size of motor evoked potentials, elicited by a brief magnetic pulse delivered to the brain, can be reported in terms of peak-to-peak amplitude or the area under the curve. These values can be expressed in original units — mili or microvolts — or as a percentage of a baseline value or an evoked maximal response.

The above observations raise two important questions:

1. How can we interpret the size of published effects if we are not familiar with the measures?
2. How can we compare results from studies using different measures?

One approach is to calculate a standardized measure of effect size.

### Effect size measure

The effect size measure we will be learning about in this post is Cohen’s d. This measure expresses the size of an effect as a number standard deviations, similar to a z-score in statistics.

The basic formula to calculate Cohen’s d is:

d = [effect size / relevant standard deviation]

The denominator is sometimes referred to as the standardiser, and it is important to select the most appropriate one for a given dataset.

### Calculating Cohen’s d for two independent groups

Let’s calculate Cohen’s d for an effect between two independent groups. If we assume that the variance is homogeneous between groups, we can use the pooled standard deviation between groups as our standardiser.

The formula to calculate the pooled standard deviation is:

$SDpooled = \sqrt{\dfrac{[(n_1 - 1) \times (SD_1)^2] + [(n_2 - 1) \times (SD_2)^2]}{n_1 + n_2 - 2}}$

Where $n_1$ and $n_2$ are the sample sizes for the two groups and $SD_1$ and $SD_2$ are the standard deviations for the two groups.

The effect size $ES$ is simply the difference between the two means (see figure):

$ES = M_2 - M_1$

Figure 1: Simulated distribution of two independent groups, with the mean values highlighted.

The formula to calculate Cohen’s d is simply:
$d = \dfrac{ES}{SD_{pooled}}$

### Example

In a previous post we analysed simulated data (see figure below). Briefly, we created a dataset relating to the the environmental impact (measured in kilograms of carbon dioxide) of pork and beef production. The data was sampled from 30 cows and 30 pigs.

Figure 2: Grey dots represent each animal in our sample. The means and standard deviations are also plotted.

We might want to compare environmental impact in this dataset (measured in kilograms of carbon dioxide) to another study that measured environmental impact using a different measure with different units (e.g. Joules per hour). To make the outcome measures comparable, we can compute Cohen’s d.

The mean value for beef is 353.6 whereas it is 262.0 for pork. So the effect size in original units is 91.6 kilograms of carbon dioxide. We will calculate the pooled standard deviation between pork and beef to use as our standardizer:

$SDpooled = \sqrt{\dfrac{[(n_{beef} - 1) \times (SD_{beef})^2] + [(n_{pork} - 1) \times (SD_{pork})^2]}{n_{beef} + n_{pork} - 2}}$

$SDpooled = \sqrt{\dfrac{[(30 - 1) \times (140.7)^2] + [(30 - 1) \times (157.2)^2]}{30 + 30 - 2}}$

Having calculated the effect size and the pooled standard deviation, we can now calculate Cohen’s d:

$d = \dfrac{ES}{SD_{pooled}}$

$d = \dfrac{91.6}{149.2}$

$d = 0.61$

### Summary

In this post we learned about measures of standardized effect size, in particular Cohen’s d. We applied what we learned to data from a previous example and found that the difference in environmental impact between beef and pork is approximately 0.6 standard deviations. What is nice about this value is that it can be compared to d values calculated using other measures of environmental impact. For example, it might be hard to compare results reported in units of kilograms of carbon dioxide to those reported in units of Joules per hour. However, if we computed that Cohen’s d for the first study was 0.33 and the second was 0.36, we could conclude that the reported effects are similar in sizes.

In our next post we will discuss how to interpret Cohen’s d. Is 0.6 a big or a small effect? We will also discuss the choice of an appropriate standardizer.