Skip to main content

Default, the greatest trick it ever pulled

Thinking about statistics
Law or aphorism
Intermediate
Convincing the world it didn’t exist.
Published

November 9, 2026

Modified

November 13, 2026

Entry #38 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: How feminism has made me a better scientist.

Filed under Thinking about statistics · Law or aphorism · Intermediate.

Related terms: missing data, complete-case analysis, listwise deletion, imputation.

Source check: ✓ The explanation was checked against the source.

What it is

A paraphrase of the line from The Usual Suspects (“the greatest trick the Devil ever pulled was convincing the world he didn’t exist”). Defaults are choices, but because nobody actively makes them, they feel like the absence of a choice. The post where this entry appears is about how noticing unstated defaults in society, such as assumptions about who the “typical” person is, carries over to noticing unstated defaults in science.

Why it matters

Analyses are full of defaults that silently shape results. Software drops rows with missing values. A reference category is chosen alphabetically. Outcomes are assumed to be on a linear scale. Interactions are excluded. A sample is assumed to represent “people in general.” Because these choices are invisible, they are rarely defended, rarely varied in robustness checks, and rarely mentioned when results are reported, even when they drive the conclusion.

How it works

Take one common invisible default: complete-case analysis. Most regression software silently drops any row with a missing value. That is harmless only if the data are missing completely at random. If missingness depends on the outcome, for example if people with low incomes skip the income question, the complete-case estimate is biased. The analyst never “chose” this. The software did, and the choice doesn’t appear anywhere in the write-up.

Simulated example

We estimate average income from a survey. Low-income respondents are more likely to skip the question. The default just drop missing rows gives one answer, and imputation using a related covariate gives another.

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, lm, fmt} from "../js/stats.js"

viewof missStrength = Inputs.range([0, 3], {value: 1.5, step: 0.1, label: "How strongly low income predicts skipping"})
viewof seed = Inputs.range([1, 500], {value: 38, step: 1, label: "Random seed"})

survey = {
  const r = rng(seed);
  return range(2000).map(() => {
    const educ = r.normal(0, 1);
    const income = 50 + 12 * educ + r.normal(0, 10);
    const pMiss = 1 / (1 + Math.exp(-(-1.5 - missStrength * (income - 50) / 12)));
    return {educ, income, missing: r() < pMiss};
  });
}
est = {
  const obs = survey.filter(d => !d.missing);
  const f = lm(obs.map(d => d.educ), obs.map(d => d.income));
  const imputed = survey.map(d => d.missing ? f.predict(d.educ) : d.income);
  return {truth: mean(survey.map(d => d.income)), dropped: mean(obs.map(d => d.income)), imputed: mean(imputed), share: 1 - obs.length / survey.length};
}

Plot.plot({
  ariaLabel: "Default, the greatest trick it ever pulled: simulation chart",
  ariaDescription: "Horizontal axis: Estimated mean income ($1000s). The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 200,
  marginLeft: 190,
  x: {label: "Estimated mean income ($1000s)", domain: [40, 60], grid: true},
  y: {label: null},
  marks: [
    Plot.dot([
      {m: "Truth", v: est.truth}, {m: "Default: drop missing rows", v: est.dropped}, {m: "Model-based imputation", v: est.imputed}
    ], {y: "m", x: "v", r: 7, fill: d => d.m === "Truth" ? "currentColor" : d.m.startsWith("Default") ? "#d6604d" : "#2166ac"}),
    Plot.ruleX([est.truth], {strokeDasharray: "4 3"})
  ]
})
# Default, the greatest trick it ever pulled: silently dropping missing data.
1miss_strength <- 1.5 # how strongly low income predicts skipping the question
2set.seed(38)

educ <- rnorm(2000)
income <- 50 + 12 * educ + rnorm(2000, 0, 10)
3missing <- runif(2000) < plogis(-1.5 - miss_strength * (income - 50) / 12)

4fit <- lm(income ~ educ, subset = !missing) # impute from education
imputed <- ifelse(missing, predict(fit, data.frame(educ = educ)), income)

cat("Skipped the question: ", round(100 * mean(missing)), "%\n", sep = "")
cat(
  "Truth:", round(mean(income), 1), "| drop missing rows (the default):",
5  round(mean(income[!missing]), 1), "| impute from education:",
  round(mean(imputed), 1), "\n"
)

est <- c(
  Truth = mean(income), "Drop missing rows" = mean(income[!missing]),
  "Impute" = mean(imputed)
)
6dotchart(est,
  pch = 19, col = c("black", "#d6604d", "#2166ac"),
  xlab = "Estimated average income"
)
1
The page’s control: how strongly a low income predicts skipping the income question.
2
Fixes the random numbers so the run is reproducible.
3
Who skips the question: the poorer, the likelier. Missingness depends on the outcome itself.
4
An imputation model: predict the missing incomes from education, which everyone answered.
5
Three answers: the truth, the software’s silent default of dropping incomplete rows, and the imputed average.
6
The default’s answer is biased upward, and nothing in the output says a choice was made.
# Default, the greatest trick it ever pulled: silently dropping missing data.
import numpy as np
import matplotlib.pyplot as plt

miss_strength = 1.5  # how strongly low income predicts skipping the question
rng = np.random.default_rng(38)

educ = rng.normal(size=2000)
income = 50 + 12 * educ + rng.normal(0, 10, 2000)
p_miss = 1 / (1 + np.exp(1.5 + miss_strength * (income - 50) / 12))
missing = rng.uniform(size=2000) < p_miss

slope, intercept = np.polyfit(educ[~missing], income[~missing], 1)
imputed = np.where(missing, intercept + slope * educ, income)

print(f"Skipped the question: {100 * missing.mean():.0f}%")
print(f"Truth: {income.mean():.1f} | drop missing rows (the default): "
      f"{income[~missing].mean():.1f} | impute from education: "
      f"{imputed.mean():.1f}")

est = {"Truth": income.mean(), "Drop missing rows": income[~missing].mean(),
       "Impute": imputed.mean()}
plt.scatter(list(est.values()), list(est), s=80,
            color=["black", "#d6604d", "#2166ac"])
plt.xlabel("Estimated average income")
plt.tight_layout()
plt.show()

Key takeaways

  • Defaults are choices that hide in plain sight.
  • List the defaults in your analysis, such as missing-data handling, reference categories, scales and sample frame, and ask which ones matter.
  • A choice nobody made can still be wrong, and nobody will defend it.

Source

Back to top