Premature collapsing of the wave function
Noise and evidence
Advice
Intermediate
Avoid it. But do collapse the wave function when the decision finally comes.
What it is
The quantum-mechanics metaphor: until it’s observed, a system is in a superposition of states, and measurement “collapses” it to one. In statistics, uncertainty is the superposition. Premature collapse means turning uncertain evidence into a yes/no verdict, such as significant, so the effect is real or not significant, so there’s no effect, too early in the analysis. You should carry the full uncertainty forward, and collapse to a single action only when a decision actually has to be made, using the costs and benefits of that decision.
Why it matters
Dichotomizing early throws away information. An effect estimated at 0.4 ± 0.3 becomes “no effect” and is then treated as exactly zero downstream, or an estimate of 2.1 ± 1 becomes “real” and is treated as exactly 2.1. Decisions based on these collapsed summaries are worse than decisions that use the whole distribution. At decision time, though, you do have to choose an action, and refusing to is also a choice.
How it works
Suppose an intervention with uncertain effect \(\theta\) costs \(c\), and each unit of \(\theta\) is worth 1. The optimal decision is to act if \(\mathrm{E}[\theta \mid \text{data}] > c\), which uses the whole posterior. Premature collapse first replaces the evidence with effect = estimate if p < 0.05, else 0, then decides. That rule skips good interventions whose evidence fell short of the threshold, and adopts others on the strength of exaggerated significant estimates.
Simulated example
There are 5,000 candidate interventions with uncertain effects. Compare decisions made by collapsing early (significance first, then decide) with decisions made from the full posterior.
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, normalPosterior, fmt} from "../js/stats.js"
viewof cost = Inputs.range([0, 1], {value: 0.2, step: 0.05, label: "Cost of implementing an intervention"})
viewof se = Inputs.range([0.1, 1], {value: 0.4, step: 0.05, label: "Standard error of each study"})
viewof seed = Inputs.range([1, 500], {value: 152, step: 1, label: "Random seed"})
collapse = {
const r = rng(seed);
const tau = 0.4;
let vCollapse = 0, vPosterior = 0, vOracle = 0;
for (let i = 0; i < 5000; i++) {
const theta = r.normal(0.1, tau), y = r.normal(theta, se);
const collapsed = Math.abs(y / se) > 1.96 ? y : 0;
const post = normalPosterior(0.1, tau, y, se).mean;
if (collapsed > cost) vCollapse += theta - cost;
if (post > cost) vPosterior += theta - cost;
if (theta > cost) vOracle += theta - cost;
}
return [
{rule: "Collapse early (significance, then decide)", value: vCollapse / 5000},
{rule: "Carry uncertainty to the decision", value: vPosterior / 5000},
{rule: "Oracle (knows the true effects)", value: vOracle / 5000}
];
}
Plot.plot({
ariaLabel: "Premature collapsing of the wave function: simulation chart",
ariaDescription: "Horizontal axis: Average net benefit per candidate intervention. The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 180,
marginLeft: 260,
x: {label: "Average net benefit per candidate intervention", grid: true},
y: {label: null},
marks: [Plot.barX(collapse, {y: "rule", x: "value", fill: (d, i) => ["#d6604d", "#2166ac", "#8a8a8a"][i]}), Plot.ruleX([0])]
})# Premature collapsing of the wave function: decide with the uncertainty.
1cost <- 0.2 # cost of implementing an intervention
se <- 0.4 # standard error of each study
2set.seed(152)
tau <- 0.4
theta <- rnorm(5000, 0.1, tau) # true effects of 5000 interventions
y <- rnorm(5000, theta, se) # one study of each
3collapsed <- ifelse(abs(y / se) > 1.96, y, 0) # significant, else zero
4post <- (0.1 / tau^2 + y / se^2) / (1 / tau^2 + 1 / se^2) # posterior mean
5value <- c(
"Collapse early (significance, then decide)" =
sum((theta - cost)[collapsed > cost]),
"Carry uncertainty to the decision" =
sum((theta - cost)[post > cost]),
"Oracle (knows the true effects)" =
sum((theta - cost)[theta > cost])
) / 5000
print(round(value, 3)) # average net value per intervention
par(mar = c(4, 17, 1, 1))
6barplot(value,
horiz = TRUE, las = 1, cex.names = 0.7,
col = c("#d6604d", "#2166ac", "grey70"),
xlab = "Average net value per intervention"
)- 1
- The page’s controls: the cost of implementing an intervention and the standard error of each study.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- Premature collapse: each study’s estimate is reduced to significant-or-not, and the non-significant ones become exactly zero.
- 4
- Carrying the uncertainty: the posterior mean, which keeps every estimate and shrinks it.
- 5
- The net value of implementing whatever each rule recommends, with an oracle for comparison.
- 6
- Average value per intervention under the three rules. Collapsing early throws away value that the posterior keeps.
# Premature collapsing of the wave function: decide with the uncertainty.
import numpy as np
import matplotlib.pyplot as plt
cost = 0.2 # cost of implementing an intervention
se = 0.4 # standard error of each study
rng = np.random.default_rng(152)
tau = 0.4
theta = rng.normal(0.1, tau, 5000) # true effects of 5000 interventions
y = rng.normal(theta, se) # one study of each
collapsed = np.where(np.abs(y / se) > 1.96, y, 0) # significant, else 0
post = (0.1 / tau ** 2 + y / se ** 2) / (1 / tau ** 2 + 1 / se ** 2)
value = {"Collapse early (significance, then decide)": collapsed > cost,
"Carry uncertainty to the decision": post > cost,
"Oracle (knows the true effects)": theta > cost}
value = {k: np.sum((theta - cost)[act]) / 5000 for k, act in value.items()}
for k, v in value.items():
print(f"{k}: {v:.3f}")
plt.barh(list(value), list(value.values()),
color=["#d6604d", "#2166ac", "0.7"])
plt.xlabel("Average net value per intervention")
plt.tight_layout()
plt.show()Key takeaways
- Don’t turn evidence into yes/no verdicts before you need to.
- Carry the full uncertainty into the decision, and make the decision with explicit costs and benefits.
- When the decision comes, do decide. Refusing to is a choice too.
Source
- Andrew Gelman, Deterministic thinking (dichotomania) (2019).
- Andrew Gelman, Decision analysis (2005).