Schoolyard Evolutionary Biology
Causes, samples and populations
Fallacy
Introductory
The idea that, because of evolution, all people are equivalent to all other people, except that all boys are different from all girls.
What it is
A caricature of a common style of popular evolutionary reasoning. Variation between individuals is treated as noise, while the difference between the sexes is treated as the deep, evolved truth. Boys are like this, girls are like that becomes the whole story. That ignores the large variation within each sex, the overlap between the sexes’ distributions, and every other dimension along which people differ.
Why it matters
Average group differences can be real and still say very little about individuals. When within-group variation is large compared with the gap between groups, most of what distinguishes one person from another has nothing to do with sex. Schoolyard reasoning turns modest average differences into categorical ones, inflates their importance, and ignores the other sources of variation that usually matter more.
How it works
Take a trait with group means differing by \(d\) standard deviations (Cohen’s \(d\)). Then:
- the share of overlap between the two distributions is \(2\Phi(-|d|/2)\);
- the chance that a random member of the higher group exceeds a random member of the lower group is \(\Phi(d/\sqrt{2})\);
- the share of total variance explained by group is roughly \(d^2 / (d^2 + 4)\).
For \(d = 0.3\), a “medium-small” difference, the distributions overlap by about 88% and sex explains about 2% of the variance.
Simulated example
Simulate a trait in two groups with a mean difference you choose. Compare the categorical schoolyard picture with what the distributions show.
Show simulation code
The R version uses base R, and the Python version uses NumPy and Matplotlib. Where the simulation draws random numbers, each language draws its own, so exact numbers differ slightly but show the same pattern. The numbered markers in the R code are explained under it.
import {rng, range, pnorm, fmt, pct} from "../js/stats.js"
viewof d = Inputs.range([0, 1.5], {value: 0.3, step: 0.05, label: "Average group difference (Cohen's d)"})
viewof seed = Inputs.range([1, 500], {value: 107, step: 1, label: "Random seed"})
yard = {
const r = rng(seed);
return [...range(3000).map(() => ({group: "Group A", v: r.normal(0, 1)})), ...range(3000).map(() => ({group: "Group B", v: r.normal(d, 1)}))];
}
Plot.plot({
ariaLabel: "Schoolyard Evolutionary Biology: simulation chart",
ariaDescription: "Horizontal axis: Trait value. Vertical axis: People. The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 280,
x: {label: "Trait value", grid: true},
y: {label: "People"},
color: {legend: true, range: ["#2166ac", "#d6604d"]},
marks: [
Plot.rectY(yard, Plot.binX({y: "count"}, {x: "v", fill: "group", fillOpacity: 0.55, thresholds: 60, mixBlendMode: "multiply"})),
Plot.ruleX([0], {stroke: "#2166ac", strokeWidth: 2}),
Plot.ruleX([d], {stroke: "#d6604d", strokeWidth: 2}),
Plot.ruleY([0])
]
})# Schoolyard Evolutionary Biology: a group difference amid individual
# variation.
1d <- 0.3 # average group difference (Cohen's d)
2set.seed(107)
a <- rnorm(3000, 0, 1)
3b <- rnorm(3000, d, 1)
cat("Overlap of the two distributions: ", round(100 * 2 * pnorm(-d / 2)),
"%\nA random B exceeds a random A ", round(100 * pnorm(d / sqrt(2))),
"% of the time (simulated: ",
4 round(100 * mean(sample(b) > sample(a))), "%)\n",
"Variance explained by group: ", round(100 * d^2 / (d^2 + 4), 1),
"%\n",
sep = ""
)
breaks <- seq(-5, 6, by = 0.2)
5hist(a,
breaks = breaks, col = adjustcolor("#2166ac", 0.5),
border = "white", main = "", xlab = "Trait", ylab = "People"
)
hist(b,
breaks = breaks, col = adjustcolor("#d6604d", 0.5),
border = "white", add = TRUE
)
legend("topright", c("Group A", "Group B"),
fill = c("#2166ac", "#d6604d"),
bty = "n"
)- 1
- The page’s control: the average difference between the groups, in standard deviations.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- Two groups whose means differ by d, with the same individual variation.
- 4
- How often a random member of one group exceeds a random member of the other: barely more than a coin flip for a typical d.
- 5
- The two distributions overlap almost entirely. A group difference says little about any two individuals.
# Schoolyard Evolutionary Biology: a group difference amid individual
# variation.
from statistics import NormalDist
import numpy as np
import matplotlib.pyplot as plt
d = 0.3 # average group difference (Cohen's d)
rng = np.random.default_rng(107)
a, b = rng.normal(0, 1, 3000), rng.normal(d, 1, 3000)
Phi = NormalDist().cdf
print(f"Overlap of the two distributions: {100 * 2 * Phi(-d / 2):.0f}%")
print(f"A random B exceeds a random A {100 * Phi(d / np.sqrt(2)):.0f}% of "
f"the time (simulated: "
f"{100 * np.mean(rng.permutation(b) > a):.0f}%)")
print(f"Variance explained by group: {100 * d ** 2 / (d ** 2 + 4):.1f}%")
bins = np.arange(-5, 6.01, 0.2)
plt.hist(a, bins=bins, color="#2166ac", alpha=0.5, label="Group A")
plt.hist(b, bins=bins, color="#d6604d", alpha=0.5, label="Group B")
plt.xlabel("Trait")
plt.ylabel("People")
plt.legend()
plt.show()Key takeaways
- Average group differences can be real and still small compared with individual variation.
- Overlap, not the gap between means, tells you how much a difference matters for individuals.
- Explanations that treat one dimension as the only one that matters leave most of the variation unexplained.
Source
- Andrew Gelman, Controversy about average personality differences between men and women (2012).