Simpson’s paradox explained with 342 penguins

Does a penguin with a deeper bill tend to weigh more? The same observations give two answers depending on whether you pool the three species or examine each one separately.

A relationship that changes sign

The Palmer dataset contains 344 penguins. Both bill depth and body mass are recorded for 342 of them. Spearman’s correlation compares how the birds rank on these two measures.

GroupPenguinsSpearman correlation
All species combined342−0.43
Adélie penguins151+0.60
Chinstrap penguins68+0.58
Gentoo penguins123+0.76

Why species changes the picture

Gentoo penguins are heavier and have shallower bills than the other two species. Their median bill depth is 15 mm and their median body mass is 5,000 g. For Adélie penguins the corresponding medians are 18.4 mm and 3,700 g.

Pooling the species brings those between-species differences into the rankings. Within each species, individuals with deeper bills tend to be heavier. This reversal between the pooled association and the within-group associations is an example of Simpson’s paradox.

Reproduce the reversal

Calculate the correlation on all complete observations, then split those same rows by species and repeat. The signs of the four coefficients tell you the direction of association. Establishing whether one measurement affects the other would require a causal analysis.

Sources