The Pluralist’s Dilemma
Thinking about statistics
Principle or heuristic
Intermediate
How to recognize that my philosophy is just one among many, that my own embrace of this philosophy is contingent on many things beyond my control, while still expressing the reasons why I prefer my philosophy to the alternatives (at least for the problems I work on).
What it is
A statistician’s preferred approach, whether Bayesian, frequentist or machine learning, partly reflects where they trained, what problems they met and whom they worked with. An honest pluralist admits this contingency. Yet they still have reasons for their preference and want to state them. The dilemma is holding both views at once: my approach is one of several reasonable ones and here is why I think mine is better, for the problems I work on.
Why it matters
Statistical debates often fail in one of two ways. People assert universal superiority, or they retreat into it’s all a matter of taste. The pluralist’s way out is to make claims conditional on the problem domain. Methods have different strengths. A method that excels with sparse hierarchical data may be overkill with large clean datasets, and the reverse also happens. Making the domain explicit turns a fight over identity into an empirical question.
How it works
Characterize problems by features, such as how much the true effects vary relative to the measurement noise. Then compare methods across that space. Typically each method wins in some region. Your “philosophy” amounts to a bet about which region your problems fall in, and that bet can be checked.
Simulated example
Two estimators compete across many problem types. An unbiased “separate estimates” method and a “partial pooling” method are applied to groups of effects. The x-axis is the ratio of true between-group variation to measurement noise. Where do your problems lie?
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, fmt} from "../js/stats.js"
viewof myRatio = Inputs.range([0.1, 5], {value: 0.7, step: 0.1, label: "Typical signal/noise in MY problems"})
viewof J = Inputs.range([3, 50], {value: 8, step: 1, label: "Groups per problem"})
viewof seed = Inputs.range([1, 500], {value: 46, step: 1, label: "Random seed"})
landscape = {
const r = rng(seed);
const ratios = [0.1, 0.2, 0.3, 0.5, 0.7, 1, 1.5, 2, 3, 5];
return ratios.flatMap(ratio => {
let eSep = 0, ePool = 0;
for (let rep = 0; rep < 300; rep++) {
const th = r.normals(J, 0, ratio), y = th.map(t => r.normal(t, 1));
const m = mean(y), t2 = Math.max(0, mean(y.map(v => (v - m) ** 2)) - 1);
const B = t2 / (t2 + 1);
eSep += mean(y.map((v, j) => (v - th[j]) ** 2));
ePool += mean(y.map((v, j) => (m + B * (v - m) - th[j]) ** 2));
}
return [{ratio, method: "Separate estimates", rmse: Math.sqrt(eSep / 300)}, {ratio, method: "Partial pooling", rmse: Math.sqrt(ePool / 300)}];
});
}
Plot.plot({
ariaLabel: "The Pluralist's Dilemma: simulation chart",
ariaDescription: "Horizontal axis: Between-group sd / measurement sd. Vertical axis: RMSE. The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 280,
x: {type: "log", label: "Between-group sd / measurement sd", grid: true},
y: {label: "RMSE", grid: true},
color: {legend: true, range: ["#2166ac", "#d6604d"]},
marks: [
Plot.line(landscape, {x: "ratio", y: "rmse", stroke: "method", strokeWidth: 2}),
Plot.ruleX([myRatio], {stroke: "currentColor", strokeDasharray: "4 3"}),
Plot.text([0], {x: myRatio, y: 1.05, text: () => "my problems", dx: 4, textAnchor: "start"})
]
})# The Pluralist's Dilemma: which method is best depends on your problems.
1my_ratio <- 0.7 # typical signal/noise in my problems
J <- 8 # groups per problem
2set.seed(46)
3ratios <- c(0.1, 0.2, 0.3, 0.5, 0.7, 1, 1.5, 2, 3, 5)
rmse <- t(sapply(ratios, function(ratio) {
err <- replicate(300, {
th <- rnorm(J, 0, ratio)
y <- rnorm(J, th, 1)
m <- mean(y)
B <- max(0, mean((y - m)^2) - 1)
B <- B / (B + 1)
4 c(separate = mean((y - th)^2), pooled = mean((m + B * (y - m) - th)^2))
})
sqrt(rowMeans(err))
}))
5near <- which.min(abs(log(ratios / my_ratio)))
cat("At signal/noise ", ratios[near], ": separate estimates RMSE ",
round(rmse[near, 1], 2), ", partial pooling ", round(rmse[near, 2], 2),
"\n",
sep = ""
)
6matplot(ratios, rmse,
type = "b", pch = 19, lty = 1, log = "x",
col = c("#d6604d", "#2166ac"), xlab = "Signal/noise ratio",
ylab = "Root mean squared error"
)
abline(v = my_ratio, lty = 2)
legend("bottomright", c("Separate estimates", "Partial pooling"),
col = c("#d6604d", "#2166ac"), pch = 19, bty = "n"
)- 1
- The page’s controls: the typical signal-to-noise ratio in your problems, and the number of groups per problem.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- A range of problem types, from nearly pure noise to strong signal.
- 4
- For each problem, the error of separate estimates and of partial pooling.
- 5
- The problem type closest to yours.
- 6
- Error against signal-to-noise. Which method is best depends on where your problems fall, and that is a bet you can check.
# The Pluralist's Dilemma: which method is best depends on your problems.
import numpy as np
import matplotlib.pyplot as plt
my_ratio = 0.7 # typical signal/noise in my problems
J = 8 # groups per problem
rng = np.random.default_rng(46)
ratios = np.array([0.1, 0.2, 0.3, 0.5, 0.7, 1, 1.5, 2, 3, 5])
sep, pool = [], []
for ratio in ratios:
th = rng.normal(0, ratio, (300, J)) # 300 problems
y = rng.normal(th, 1)
m = y.mean(axis=1, keepdims=True)
t2 = np.maximum(0, np.mean((y - m) ** 2, axis=1, keepdims=True) - 1)
B = t2 / (t2 + 1)
sep.append(np.sqrt(np.mean((y - th) ** 2)))
pool.append(np.sqrt(np.mean((m + B * (y - m) - th) ** 2)))
near = np.argmin(np.abs(np.log(ratios / my_ratio)))
print(f"At signal/noise {ratios[near]}: separate estimates RMSE "
f"{sep[near]:.2f}, partial pooling {pool[near]:.2f}")
plt.semilogx(ratios, sep, "o-", color="#d6604d", label="Separate estimates")
plt.semilogx(ratios, pool, "o-", color="#2166ac", label="Partial pooling")
plt.axvline(my_ratio, color="black", linestyle="--")
plt.xlabel("Signal/noise ratio")
plt.ylabel("Root mean squared error")
plt.legend()
plt.show()Key takeaways
- Admit that your methodological preferences are partly a product of history and circumstance.
- State your reasons conditionally: better for which problems, and why.
- Mapping methods’ performance across problem types turns philosophical disputes into empirical ones.
Source
- Andrew Gelman, “How do we choose our default methods?”, in Past, Present, and Future of Statistical Science (COPSS 50th anniversary volume, 2014).