Scientific revolutions
Thinking about statistics
Law or aphorism
Introductory
They’re fractal.
What it is
Thomas Kuhn described science as long periods of “normal science” broken by rare paradigm-shifting revolutions. Thinking about his own research, Gelman characterizes scientific progress as “self-similar (that is, fractal). Each level of abstraction, from local problem solving to big-picture science, features progress of the ‘normal science’ type, punctuated by occasional revolutions.” The revolutions “have a fractal time scale, with small revolutions occurring fairly frequently (every few minutes for an exam-type problem, up to every few years or decades for a major scientific consensus).”
His examples run from the very large (from a magical to a scientific paradigm, or from behaviorism to cognitive psychology) to the very small. On a consulting problem, he writes, “I typically will start in a certain direction, then suddenly realize I was thinking about it wrong, then move forward,” and that reevaluation “can happen several times in a couple of hours.” His summary: “Scientific progress is fractal in size of problem and in time scale.”
Why it matters
The fractal view softens the sharp Kuhnian split between normal science and revolution. Your own work has revolutions: realizing you were thinking about a problem wrong is the same kind of event as a field changing its paradigm, only smaller and faster. Gelman ties this to his view of Bayesian data analysis: “deductive Bayesian inference as normal science and model checking as potentially revolutionary.”
How it works
Gelman’s claim is qualitative: the same pattern of normal science punctuated by revolutions appears at every scale. He doesn’t propose a particular statistical distribution for the sizes of revolutions.
The simulation is our toy illustration, not part of his argument. One standard way to make “self-similar across scales” concrete is a power law, \(\Pr(\text{size} > s) \propto s^{-\alpha}\). On log-log axes its survival curve is a straight line, and the line keeps the same slope when you zoom into a smaller range and rescale. Whether real scientific change follows a power law is an open empirical question. The simulation only shows what scale-free self-similarity looks like.
Simulated example
A toy model: hypothetical sizes of conceptual changes are drawn from a power law, one simple scale-free distribution. Plot the survival curve on log-log axes for all changes, and then for a “zoomed-in” view that only sees changes below some size, rescaled. The point is the shape (the same at every scale), not the specific distribution.
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} from "../js/stats.js"
viewof alpha = Inputs.range([0.5, 2.5], {value: 1.2, step: 0.1, label: "Power-law exponent α"})
viewof seed = Inputs.range([1, 500], {value: 145, step: 1, label: "Random seed"})
rev = {
const r = rng(seed);
const sizes = range(5000).map(() => Math.pow(1 - r(), -1 / alpha)).sort((a, b) => b - a);
const ccdf = arr => arr.map((s, i) => ({s, p: (i + 1) / arr.length}));
const sub = sizes.filter(s => s < 20);
return [...ccdf(sizes).map(d => ({...d, view: "All of science"})), ...ccdf(sub.map(s => s * 5)).map(d => ({...d, view: "Zoomed into a subfield (rescaled)"}))];
}
Plot.plot({
ariaLabel: "Scientific revolutions: simulation chart",
ariaDescription: "Horizontal axis: Size of the conceptual change (log scale). Vertical axis: Share of changes at least this big (log scale). The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 300,
x: {type: "log", label: "Size of the conceptual change (log scale)", grid: true},
y: {type: "log", label: "Share of changes at least this big (log scale)", grid: true},
color: {legend: true, range: ["#2166ac", "#d6604d"]},
marks: [Plot.line(rev, {x: "s", y: "p", stroke: "view", strokeWidth: 2})]
})# Scientific revolutions are fractal: power-law sizes look the same at
# every scale (a toy model).
1alpha <- 1.2 # power-law exponent
2set.seed(145)
3sizes <- sort((1 - runif(5000))^(-1 / alpha), decreasing = TRUE)
4sub <- sizes[sizes < 20] * 5 # zoom into a subfield, rescaled
ccdf <- function(s) (seq_along(s)) / length(s) # share at least this big
cat(
sum(sizes > 100), "of 5000 changes are more than 100 times the",
"minimum size\n"
)
5plot(sizes, ccdf(sizes),
log = "xy", type = "l", lwd = 2, col = "#2166ac",
xlab = "Size of the change", ylab = "Share at least this big"
)
lines(sub, ccdf(sub), lwd = 2, col = "#d6604d", lty = 2)
legend("bottomleft", c("All of science", "Zoomed into a subfield"),
col = c("#2166ac", "#d6604d"), lwd = 2, lty = 1:2, bty = "n"
)- 1
- The page’s control: the exponent of the power law. This is the site’s toy model, not evidence about how science changes.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- Five thousand scientific changes with power-law sizes.
- 4
- Zoom into a subfield (the small changes) and rescale it.
- 5
- The size distribution of all changes and of the zoomed subfield, on log scales. They look the same: that is what fractal means here.
# Scientific revolutions are fractal: power-law sizes look the same at
# every scale (a toy model).
import numpy as np
import matplotlib.pyplot as plt
alpha = 1.2 # power-law exponent
rng = np.random.default_rng(145)
sizes = np.sort((1 - rng.uniform(size=5000)) ** (-1 / alpha))[::-1]
sub = sizes[sizes < 20] * 5 # zoom into a subfield, rescaled
def ccdf(s): # share at least this big
return np.arange(1, len(s) + 1) / len(s)
print(f"{np.sum(sizes > 100)} of 5000 changes are more than 100 times "
"the minimum size")
plt.loglog(sizes, ccdf(sizes), color="#2166ac", linewidth=2,
label="All of science")
plt.loglog(sub, ccdf(sub), "--", color="#d6604d", linewidth=2,
label="Zoomed into a subfield")
plt.xlabel("Size of the change")
plt.ylabel("Share at least this big")
plt.legend()
plt.show()Key takeaways
- Gelman sees the normal-science-and-revolution pattern at every scale, from minutes on a consulting problem to decades in a field.
- Realizing you were thinking about a problem wrong is a small revolution of the same kind as the famous ones.
- In his Bayesian view, inference within a model is normal science and model checking is potentially revolutionary.
Source
- Andrew Gelman, The fractal nature of scientific revolutions (2005).