The Causal Identification Kool-Aid
Causes, samples and populations
Fallacy
Advanced
The attitude by which any statistically significant difference is considered to represent some true population effect, as long as it is associated with a randomized treatment assignment, instrumental variable analysis, or regression discontinuity.
What it is
Methods like randomized experiments, instrumental variables and regression discontinuity (RDD) solve one problem, bias from confounding. They do nothing about noise, and nothing about the flexibility of the analysis. The Kool-Aid is the belief that because a design is “identified,” any significant estimate it produces must be real. An RDD with a noisy outcome and several reasonable ways to fit it can produce significant “effects” from pure noise as easily as any other analysis.
Why it matters
Identification strategies carry great prestige in economics and political science, and that prestige can switch off skepticism. Gelman and Imbens showed that RDD analyses using high-order global polynomials, a once-common practice, give noisy estimates that are sensitive to the polynomial degree. Add the freedom to choose among bandwidths and polynomial orders, and spurious discontinuities become routine. “Identified” doesn’t mean “well estimated.”
How it works
In an RDD, the effect is the jump in \(\mathrm{E}(y \mid x)\) at a cutoff. Each reasonable specification, such as local linear fits with different bandwidths or global polynomials of different orders, has a roughly 5% false-positive rate on its own when there is no jump. But the specifications give different estimates on the same data. An analyst who reports whichever specification “works” walks the garden of forking paths, and the significant estimates that result are large exaggerations of a true effect of zero.
Simulated example
The true discontinuity is zero: the outcome is a smooth curve plus noise. Each simulated analyst tries six standard RDD specifications. Compare the false-positive rate of each specification alone with the rate when any one of them can be reported.
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, mean, ols, fmt, pct, debounce} from "../js/stats.js"
viewof n = debounce(Inputs.range([100, 1000], {value: 200, step: 50, label: "Observations"}))
viewof noiseSd = debounce(Inputs.range([0.2, 2], {value: 1, step: 0.1, label: "Outcome noise (sd)"}))
viewof seed = debounce(Inputs.range([1, 500], {value: 83, step: 1, label: "Random seed"}))
rdd = {
const r = rng(seed);
const specs = [
{name: "Local linear, h = 0.25", h: 0.25, order: 1}, {name: "Local linear, h = 0.5", h: 0.5, order: 1},
{name: "Global linear", h: 1, order: 1}, {name: "Global quadratic", h: 1, order: 2},
{name: "Global cubic", h: 1, order: 3}, {name: "Global quartic", h: 1, order: 4}
];
const hits = specs.map(() => 0), sigSizes = [];
let any = 0;
for (let rep = 0; rep < 300; rep++) {
const pts = range(n).map(() => { const x = r.uniform(-1, 1); return {x, d: x >= 0 ? 1 : 0, y: 0.5 * x * x + 0.3 * x + r.normal(0, noiseSd)}; });
let reported = null;
specs.forEach((s, i) => {
const sub = pts.filter(p => Math.abs(p.x) <= s.h);
const X = sub.map(p => { const row = [p.d]; for (let k = 1; k <= s.order; k++) row.push(p.x ** k, p.d * p.x ** k); return row; });
const f = ols(X, sub.map(p => p.y));
if (Math.abs(f.coef[1] / f.se[1]) > 1.96) { hits[i]++; if (reported === null) reported = f.coef[1]; }
});
if (reported !== null) { any++; sigSizes.push(Math.abs(reported)); }
}
return {
rows: [...specs.map((s, i) => ({spec: s.name, fpr: hits[i] / 300})), {spec: "Any of the six (forking paths)", fpr: any / 300}],
sigSize: sigSizes.length ? mean(sigSizes) : NaN
};
}
Plot.plot({
ariaLabel: "The Causal Identification Kool-Aid: simulation chart",
ariaDescription: "Horizontal axis: False-positive rate (true jump = 0). The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 250,
marginLeft: 200,
x: {label: "False-positive rate (true jump = 0)", tickFormat: "%", grid: true},
y: {label: null, domain: rdd.rows.map(d => d.spec)},
marks: [
Plot.barX(rdd.rows, {y: "spec", x: "fpr", fill: d => d.spec.startsWith("Any") ? "#d6604d" : "#2166ac"}),
Plot.ruleX([0.05], {stroke: "currentColor", strokeDasharray: "4 3"})
]
})# The Causal Identification Kool-Aid: forking paths in a discontinuity design.
1n <- 200 # observations
noise_sd <- 1 # outcome noise (sd)
2set.seed(83)
3specs <- data.frame(
name = c(
"Local linear, h = 0.25", "Local linear, h = 0.5", "Global linear",
"Global quadratic", "Global cubic", "Global quartic"
),
h = c(0.25, 0.5, 1, 1, 1, 1), order = c(1, 1, 1, 2, 3, 4)
)
4z_jump <- function(d, h, order) { # z statistic of the jump at x = 0
d <- d[abs(d$x) <= h, ]
f <- lm(y ~ cut * poly(x, order, raw = TRUE), data = d)
coef(summary(f))["cut", "t value"]
}
sig <- t(replicate(300, {
5 x <- runif(n, -1, 1) # the true discontinuity is zero
d <- data.frame(x,
cut = as.numeric(x >= 0),
y = 0.5 * x^2 + 0.3 * x + rnorm(n, 0, noise_sd)
)
mapply(function(h, o) abs(z_jump(d, h, o)) > 1.96, specs$h, specs$order)
}))
6rates <- c(colMeans(sig), "Any of the six" = mean(apply(sig, 1, any)))
names(rates)[1:6] <- specs$name
print(round(100 * rates)) # false-positive rates (%)
par(mar = c(4, 12, 1, 1))
7barplot(rev(rates),
horiz = TRUE, las = 1, cex.names = 0.8,
col = c("#d6604d", rep("#2166ac", 6)), xlim = c(0, 0.5),
xlab = "False-positive rate (true jump is zero)"
)
abline(v = 0.05, lty = 2)- 1
- The page’s controls: the number of observations and the noise in the outcome.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- Six reasonable specifications of the same regression-discontinuity analysis: two bandwidths and four polynomial orders.
- 4
- The z statistic of the estimated jump at the cutoff under one specification.
- 5
- Three hundred datasets in which the true jump is exactly zero. The outcome curves gently, which is all a flexible fit needs to find a jump.
- 6
- The false-positive rate of each specification, and of a researcher who reports any one that comes out significant.
- 7
- The design is identified and the result is still wrong one time in several: identification does nothing about noise or forking paths.
# The Causal Identification Kool-Aid: forking paths in a discontinuity design.
import numpy as np
import matplotlib.pyplot as plt
n = 200 # observations
noise_sd = 1 # outcome noise (sd)
rng = np.random.default_rng(83)
specs = [("Local linear, h = 0.25", 0.25, 1),
("Local linear, h = 0.5", 0.5, 1),
("Global linear", 1, 1), ("Global quadratic", 1, 2),
("Global cubic", 1, 3), ("Global quartic", 1, 4)]
def z_jump(x, y, h, order):
"""z statistic of the jump at x = 0, separate polynomials each side."""
keep = np.abs(x) <= h
x, y = x[keep], y[keep]
cut = (x >= 0).astype(float)
cols = [np.ones_like(x), cut]
for k in range(1, order + 1):
cols += [x ** k, cut * x ** k]
X = np.column_stack(cols)
beta, *_ = np.linalg.lstsq(X, y, rcond=None)
resid = y - X @ beta
s2 = resid @ resid / (len(y) - X.shape[1])
se = np.sqrt(s2 * np.linalg.inv(X.T @ X)[1, 1])
return beta[1] / se
sig = np.zeros((300, len(specs)), dtype=bool)
for rep in range(300):
x = rng.uniform(-1, 1, n) # the true discontinuity is zero
y = 0.5 * x ** 2 + 0.3 * x + rng.normal(0, noise_sd, n)
sig[rep] = [abs(z_jump(x, y, h, o)) > 1.96 for _, h, o in specs]
rates = list(sig.mean(axis=0)) + [sig.any(axis=1).mean()]
labels = [s[0] for s in specs] + ["Any of the six"]
for label, rate in zip(labels, rates):
print(f"{label}: {100 * rate:.0f}% false positives")
plt.barh(labels[::-1], rates[::-1], color=["#d6604d"] + ["#2166ac"] * 6)
plt.axvline(0.05, color="black", linestyle="--")
plt.xlabel("False-positive rate (true jump is zero)")
plt.tight_layout()
plt.show()Key takeaways
- Identification addresses bias, not variance. Noisy identified estimates are still noisy.
- Flexible specification choices such as bandwidth and polynomial order create forking paths inside “clean” designs.
- Apply the same skepticism to significant results from RCTs, IVs and RDDs as to any others.
Source
- Andrew Gelman, The 2019 project (2021).
- Gelman and Imbens, “Why high-order polynomials should not be used in regression discontinuity designs”, Journal of Business & Economic Statistics (2019).