Salad Tongs
Noise and evidence
Law or aphorism
Intermediate
Not to be used for painting.
What it is
The phrase comes from a discussion of Uri Simonsohn’s warning that analyzing all the p-values reported in a literature is “falsely reassuring.” Gelman agreed, and added that if p-values are what we have, it makes sense to learn what we can from them. But “once we move to the goal of learning about underlying effects, I think we want to be analyzing raw data (and in the context of prior information), not merely pushing these p’s around. P-values are crude data summaries, and a lot of information can be lost by moving from raw data to p-values. Doing science using published p-values is like trying to paint a picture using salad tongs.” The simulation below shows one reason they are so crude: the same study, replicated, produces wildly different p-values.
Why it matters
People treat p-values as precise measures of evidence. In fact the p-value from an exact replication of a study, with the same true effect and the same sample size, varies enormously from one replication to the next. A study with 50% power gives p-values anywhere from 0.0001 to 0.8. Conclusions like the effect disappeared in the replication or the evidence is now stronger are often just the tongs wobbling.
How it works
If the true effect gives an expected z-statistic of \(\delta\), then each replication’s \(z \sim \mathrm{N}(\delta, 1)\) and \(p = 2(1 - \Phi(|z|))\). A z-score that varies by \(\pm 2\) between replications, which is entirely typical, maps to p-values spanning several orders of magnitude. The difference between “significant” and “not significant” is itself usually not statistically significant.
Simulated example
The same study is replicated 200 times with a fixed true effect. Look at how widely the p-values spread.
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, qnorm, quantile, fmt, pct} from "../js/stats.js"
viewof power = Inputs.range([0.1, 0.95], {value: 0.5, step: 0.05, label: "Power of the study"})
viewof seed = Inputs.range([1, 500], {value: 50, step: 1, label: "Random seed"})
dance = {
const r = rng(seed);
const delta = qnorm(0.975) + qnorm(power);
return range(200).map(i => { const z = r.normal(delta, 1); return {i, p: 2 * (1 - pnorm(Math.abs(z)))}; });
}
Plot.plot({
ariaLabel: "Salad Tongs: simulation chart",
ariaDescription: "Horizontal axis: Replication. Vertical axis: p-value (log scale). The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 300,
x: {label: "Replication"},
y: {type: "log", label: "p-value (log scale)", domain: [1e-6, 1], grid: true},
marks: [
Plot.dot(dance, {x: "i", y: "p", fill: d => d.p < 0.05 ? "#2166ac" : "#d6604d", r: 2.5}),
Plot.ruleY([0.05], {stroke: "currentColor", strokeDasharray: "4 3"})
]
})# Salad Tongs: the p-value from a replication of a study with given power.
1power <- 0.5 # power of the study
2set.seed(50)
3delta <- qnorm(0.975) + qnorm(power) # true effect, in standard errors
z <- rnorm(200, delta, 1) # 200 replications
4p <- 2 * (1 - pnorm(abs(z)))
cat("Share significant: ", round(100 * mean(p < 0.05)), "%\n",
"Middle 80% of p-values: ", signif(quantile(p, 0.1), 2), " to ",
signif(quantile(p, 0.9), 2), "\n",
sep = ""
)
5plot(1:200, p,
log = "y", pch = 19, cex = 0.6,
col = ifelse(p < 0.05, "#2166ac", "#d6604d"),
xlab = "Replication", ylab = "p-value (log scale)"
)
abline(h = 0.05, lty = 2)- 1
- The page’s control: the power of the study.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- The true effect, in standard errors, that gives the study that power.
- 4
- The p-value of each of 200 exact replications of the same study.
- 5
- The p-values on a log scale. Identical studies, identical truth, and p-values spread over several orders of magnitude: salad tongs.
# Salad Tongs: the p-value from a replication of a study with given power.
from statistics import NormalDist
import numpy as np
import matplotlib.pyplot as plt
power = 0.5 # power of the study
rng = np.random.default_rng(50)
N = NormalDist()
delta = N.inv_cdf(0.975) + N.inv_cdf(power) # true effect, in se units
z = rng.normal(delta, 1, 200) # 200 replications
p = np.array([2 * (1 - N.cdf(abs(v))) for v in z])
print(f"Share significant: {100 * np.mean(p < 0.05):.0f}%")
print(f"Middle 80% of p-values: {np.quantile(p, 0.1):.2g} to "
f"{np.quantile(p, 0.9):.2g}")
plt.scatter(np.arange(1, 201), p, s=10,
c=np.where(p < 0.05, "#2166ac", "#d6604d"))
plt.yscale("log")
plt.axhline(0.05, color="black", linestyle="--")
plt.xlabel("Replication")
plt.ylabel("p-value (log scale)")
plt.show()Key takeaways
- p-values are highly variable across replications. Don’t use them for fine-grained comparisons.
- “Significant here, not there” is weak evidence that two studies differ.
- Use estimates and uncertainty intervals, and compare studies directly.
Source
- Andrew Gelman, Uri Simonsohn warns us not to be falsely reassured (2015).
- Gelman and Stern, “The difference between ‘significant’ and ‘not significant’ is not itself statistically significant”, The American Statistician (2006).