Anthropic principle
Noise and evidence
Principle or heuristic
Intermediate
The phenomena we can successfully study in statistics will not be too small or too large.
What it is
In cosmology, the anthropic principle says we observe a universe compatible with our existence because otherwise we wouldn’t be here to observe it. Gelman’s statistical version says that the effects statisticians actually study, and need statistics for, fall in a band. Effects that are too small can’t be detected with feasible data. Effects that are too large are obvious without statistics. Statistical work happens in between.
Why it matters
The principle explains some recurring patterns. Published effects cluster near the edge of detectability. Statistical methods matter most in fields with moderate signal-to-noise. And claims of huge effects found by subtle statistical analysis deserve suspicion, because a truly huge effect would have been noticed without the analysis. If a study claims an effect large enough that it should be obvious, but it took fancy statistics to find, something doesn’t add up.
How it works
Let true effect sizes in a domain range over many orders of magnitude. Detection with feasible sample sizes requires \(|\theta| \gtrsim c_1 \cdot \sigma/\sqrt{n_{\max}}\). Effects above \(c_2 \cdot \sigma\) are visible to the naked eye and need no inference. The “anthropic window” between those bounds is where statistics can contribute. It is also where the studied effects come from.
Simulated example
Effects in a domain span many orders of magnitude. Set the largest feasible sample size and the naked-eye threshold, and see which effects end up being “statistical.”
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, pct} from "../js/stats.js"
viewof nMax = Inputs.range([1, 6], {value: 3, step: 0.25, label: "log10 of the largest feasible sample size"})
viewof obvious = Inputs.range([0.5, 5], {value: 2, step: 0.1, label: "Naked-eye threshold (effect in sd units)"})
viewof seed = Inputs.range([1, 500], {value: 119, step: 1, label: "Random seed"})
universe = {
const r = rng(seed);
const detect = 2.8 / Math.sqrt(10 ** nMax); // ~80% power threshold
return range(4000).map(() => {
const eff = 10 ** r.uniform(-4, 1);
return {eff, zone: eff < detect ? "Too small to detect" : eff > obvious ? "Obvious without statistics" : "Statistics territory"};
});
}
Plot.plot({
ariaLabel: "Anthropic principle: simulation chart",
ariaDescription: "Horizontal axis: True effect size (sd units, log scale). Vertical axis: Phenomena. The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 260,
x: {type: "log", label: "True effect size (sd units, log scale)"},
y: {label: "Phenomena"},
color: {legend: true, domain: ["Too small to detect", "Statistics territory", "Obvious without statistics"], range: ["#8a8a8a", "#2166ac", "#d6604d"]},
marks: [Plot.rectY(universe, Plot.binX({y: "count"}, {x: "eff", fill: "zone", thresholds: 50})), Plot.ruleY([0])]
})# Anthropic principle: which effects can statistics study at all?
1n_max <- 3 # log10 of the largest feasible sample size
obvious <- 2 # naked-eye threshold (effect in sd units)
2set.seed(119)
3detect <- 2.8 / sqrt(10^n_max) # effect detectable with ~80% power
4eff <- 10^runif(4000, -4, 1) # effects spread over five orders of magnitude
5zone <- ifelse(eff < detect, "Too small to detect",
ifelse(eff > obvious, "Obvious without statistics",
"Statistics territory"
)
)
print(round(100 * prop.table(table(zone))))
breaks <- seq(-4, 1, length.out = 51)
mid <- (head(breaks, -1) + tail(breaks, -1)) / 2
cols <- ifelse(10^mid < detect, "grey70",
ifelse(10^mid > obvious, "#d6604d", "#2166ac")
)
6hist(log10(eff),
breaks = breaks, col = cols, border = "white", main = "",
xlab = "True effect size (sd units, log10 scale)", ylab = "Phenomena"
)
legend("topleft", c("Too small", "Statistics territory", "Obvious"),
fill = c("grey70", "#2166ac", "#d6604d"), cex = 0.8, bty = "n"
)- 1
- The page’s controls: the largest feasible sample size, as a power of ten, and the effect size that is obvious without statistics.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- The smallest effect a study of the largest feasible size can detect with about 80% power.
- 4
- True effects spread evenly over five orders of magnitude.
- 5
- Each effect lands in one of three zones. Only the middle one is where statistics is needed and can work.
- 6
- The histogram on a log scale, colored by zone. The blue band is the anthropic window.
# Anthropic principle: which effects can statistics study at all?
import numpy as np
import matplotlib.pyplot as plt
n_max = 3 # log10 of the largest feasible sample size
obvious = 2 # naked-eye threshold (effect in sd units)
rng = np.random.default_rng(119)
detect = 2.8 / np.sqrt(10 ** n_max) # detectable with ~80% power
eff = 10 ** rng.uniform(-4, 1, 4000) # effects over five orders of magnitude
zones = {"Too small to detect": eff < detect,
"Statistics territory": (eff >= detect) & (eff <= obvious),
"Obvious without statistics": eff > obvious}
for name, inside in zones.items():
print(f"{name}: {100 * inside.mean():.0f}%")
bins = np.linspace(-4, 1, 51)
colors = ["0.7", "#2166ac", "#d6604d"]
plt.hist([np.log10(eff[m]) for m in zones.values()], bins=bins,
stacked=True, color=colors, label=list(zones))
plt.xlabel("True effect size (sd units, log10 scale)")
plt.ylabel("Phenomena")
plt.legend()
plt.show()Key takeaways
- Statistics works in a window between “undetectable” and “obvious.”
- Studied effects cluster near the edge of detectability, so expect noise and exaggeration there.
- Huge effects that were hard to detect are a contradiction worth investigating.
Source
- Andrew Gelman, The anthropic principle in statistics (2018).