The Piranha Principle
Noise and evidence
Principle or heuristic
Intermediate
These large effects can’t all coherently coexist.
What it is
Imagine a tank full of piranhas. They can’t all be thriving, because they’d eat each other. Some literatures claim that many small, incidental factors each have a large effect on the same outcome. Examples include a word you read, the weather, a smiley face, the temperature of a cup you held, the date of your birthday, and a picture on the wall. If all those effects were as large as reported, they would interfere with each other, and the outcome would be dominated by trivia. They can’t all be true at once.
Why it matters
Each claim gets evaluated alone, as if it were the only factor in the world. The piranha argument gives a joint check that needs no replication. Outcomes have finite variance, so the effects that explain them have to fit inside that budget. A field claiming dozens of large independent nudges is claiming something mathematically impossible. Tosh, Greengard, Goodrich, Gelman, Vehtari and Hsu formalized this as “the piranha problem.”
How it works
If predictors \(x_1, \dots, x_K\) are roughly independent and each has correlation \(r\) with outcome \(y\), then
\[ R^2 = \sum_{k=1}^K r_k^2 = K r^2 \le 1, \]
so at most \(K \le 1/r^2\) such effects can coexist. Ten effects of \(r = 0.4\) would explain 160% of the variance, which is impossible. Correlated predictors loosen the constraint only somewhat, and in a way that undermines the claim that each effect is separate.
Simulated example
Choose how many large-effect claims a literature makes and how big each claims to be. The plot shows the share of outcome variance they would jointly explain. There is no randomness in this model: it is a deterministic calculator, so the same settings always give the same answer and there is no random seed.
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 {range, fmt} from "../js/stats.js"
viewof r = Inputs.range([0.05, 0.6], {value: 0.3, step: 0.01, label: "Claimed correlation of each factor"})
viewof K = Inputs.range([1, 50], {value: 20, step: 1, label: "Number of claimed independent factors"})
budget = range(50).map(i => ({k: i + 1, r2: (i + 1) * r * r}))
Plot.plot({
ariaLabel: "The Piranha Principle: simulation chart",
ariaDescription: "Horizontal axis: Number of large effects claimed. Vertical axis: Implied share of variance explained (R²). The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 300,
x: {label: "Number of large effects claimed"},
y: {label: "Implied share of variance explained (R²)", grid: true},
marks: [
Plot.rect([0], {x1: 0, x2: 51, y1: 1, y2: Math.max(1.05, 50 * r * r), fill: "#d6604d", fillOpacity: 0.12}),
Plot.text([0], {x: 2, y: Math.max(1.05, 50 * r * r) * 0.95, text: () => "impossible: R² > 1", textAnchor: "start", fill: "#d6604d"}),
Plot.line(budget, {x: "k", y: "r2", stroke: "#2166ac", strokeWidth: 2}),
Plot.dot(budget.filter(d => d.k === K), {x: "k", y: "r2", r: 7, fill: "#2166ac"}),
Plot.ruleY([1], {stroke: "currentColor"})
]
})# The Piranha Principle: there can't be many large independent effects.
1r <- 0.3 # claimed correlation of each factor with the outcome
K <- 20 # number of claimed independent factors
# Deterministic: no random numbers. Independent factors with correlation
# r each explain r^2 of the variance, and the shares can't add past 100%.
2explained <- K * r^2
3max_k <- floor(1 / r^2)
cat(K, " factors with r = ", r, " would explain ", round(100 * explained),
"% of the variance\nAt most ", max_k, " such factors can coexist\n",
sep = ""
)
k <- 1:50
4plot(k, k * r^2,
type = "h", lwd = 4,
col = ifelse(k * r^2 > 1, "#d6604d", "#2166ac"),
xlab = "Number of independent factors",
ylab = "Share of variance explained"
)
abline(h = 1, lty = 2)
abline(v = K, col = "grey50")- 1
- The page’s controls: the claimed correlation of each factor with the outcome, and how many such factors are claimed. There is no seed: the model is deterministic.
- 2
- Independent factors each explain r squared of the variance, and the shares add.
- 3
- The most such factors that can coexist before the shares exceed 100%.
- 4
- Variance explained against the number of factors. The red bars are impossible: the piranhas would have eaten each other.
# The Piranha Principle: there can't be many large independent effects.
import numpy as np
import matplotlib.pyplot as plt
r = 0.3 # claimed correlation of each factor with the outcome
K = 20 # number of claimed independent factors
# Deterministic: no random numbers. Independent factors with correlation
# r each explain r^2 of the variance, and the shares can't add past 100%.
explained = K * r ** 2
max_k = int(1 / r ** 2)
print(f"{K} factors with r = {r} would explain {100 * explained:.0f}% of "
f"the variance\nAt most {max_k} such factors can coexist")
k = np.arange(1, 51)
plt.bar(k, k * r ** 2, color=np.where(k * r ** 2 > 1, "#d6604d", "#2166ac"))
plt.axhline(1, color="black", linestyle="--")
plt.axvline(K, color="0.5")
plt.xlabel("Number of independent factors")
plt.ylabel("Share of variance explained")
plt.show()Key takeaways
- Large effects compete for a finite variance budget. They can’t all be large.
- Use the joint constraint as a sanity check on literatures full of “powerful nudges.”
- When effects are claimed one at a time, ask what the whole collection implies.
Source
- Andrew Gelman, The piranha problem in social psychology / behavioral economics (2017).
- Tosh, Greengard, Goodrich, Gelman, Vehtari and Hsu, “The piranha problem: Large effects swimming in a small pond” (2021).