Skip to main content

Mistakes

How science behaves
Law or aphorism
Introductory
We all make them; what’s important is to learn from them.
Published

November 9, 2026

Modified

November 13, 2026

What it is

Every researcher makes mistakes: coding errors, wrong assumptions, overconfident interpretations. The question isn’t whether you make them but what happens next. Gelman praised authors who simply admitted an error and stated plainly that their original conclusions were not supported, with no hedging and no the main point still stands. That response turns a mistake into learning, for the authors and for the field.

Why it matters

Admitting errors costs something in the short term and pays off in the long term. Researchers and fields that hide or minimize mistakes repeat them. Those that acknowledge mistakes find the systematic causes, such as weak workflows, missing checks or bad defaults, and fix them. Admitting errors also gives the work that follows more credibility (see McBroom’s Law).

How it works

A toy model of a research career. Each project has some chance of containing an error. When an error is found, a researcher who learns from it fixes the underlying cause, for example by adding a check to their workflow, which lowers their future error rate. A researcher who denies the error keeps the same error rate. Over many projects, the gap in total errors grows steadily.

Simulated example

Researchers start with the same error rate and work on 50 projects. Some learn from each discovered error and some don’t. The curves average over 200 simulated careers of each kind.

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

viewof baseRate = Inputs.range([0.05, 0.5], {value: 0.25, step: 0.01, label: "Initial chance a project has an error"})
viewof learning = Inputs.range([0, 0.5], {value: 0.2, step: 0.01, label: "Error-rate reduction per lesson learned"})
viewof seed = Inputs.range([1, 500], {value: 96, step: 1, label: "Random seed"})

career = {
  const r = rng(seed);
  // Average cumulative mistakes over 200 simulated careers of 50 projects each.
  const run = (learns, who) => {
    const totals = new Array(50).fill(0), rates = new Array(50).fill(0);
    for (let c = 0; c < 200; c++) {
      let rate = baseRate, total = 0;
      for (let t = 0; t < 50; t++) {
        if (r() < rate) { total++; if (learns && r() < 0.8) rate *= (1 - learning); }
        totals[t] += total / 200; rates[t] += rate / 200;
      }
    }
    return totals.map((total, t) => ({t: t + 1, who, total, rate: rates[t]}));
  };
  return [...run(true, "Admits and learns"), ...run(false, "Denies and repeats")];
}

Plot.plot({
  ariaLabel: "Mistakes: simulation chart",
  ariaDescription: "Horizontal axis: Project number. Vertical axis: Average cumulative mistakes (200 careers). The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 280,
  x: {label: "Project number"},
  y: {label: "Average cumulative mistakes (200 careers)", grid: true},
  color: {legend: true, range: ["#2166ac", "#d6604d"]},
  marks: [Plot.line(career, {x: "t", y: "total", stroke: "who", strokeWidth: 2})]
})
# Mistakes: admitting and learning from them lowers the error rate.
1base_rate <- 0.25 # initial chance a project has an error
learning <- 0.2 # error-rate reduction per lesson learned
2set.seed(96)

# Average cumulative mistakes over 200 careers of 50 projects each
3run <- function(learns) {
  totals <- matrix(0, 200, 50)
  for (c in 1:200) {
    rate <- base_rate
    total <- 0
    for (t in 1:50) {
      if (runif(1) < rate) {
        total <- total + 1
4        if (learns && runif(1) < 0.8) rate <- rate * (1 - learning)
      }
      totals[c, t] <- total
    }
  }
  colMeans(totals)
}
learns <- run(TRUE)
denies <- run(FALSE)
cat("Mistakes after 50 projects: admits and learns ", round(learns[50], 1),
  ", denies and repeats ", round(denies[50], 1), "\n",
  sep = ""
)

5matplot(1:50, cbind(learns, denies),
  type = "l", lty = 1, lwd = 2,
  col = c("#2166ac", "#d6604d"), xlab = "Project",
  ylab = "Cumulative mistakes (average career)"
)
legend("topleft", c("Admits and learns", "Denies and repeats"),
  col = c("#2166ac", "#d6604d"), lwd = 2, bty = "n"
)
1
The page’s controls: the initial chance that a project has an error, and how much each admitted mistake lowers it.
2
Fixes the random numbers so the run is reproducible.
3
Two hundred careers of 50 projects each, for a researcher who admits mistakes or one who denies them.
4
Admitting a mistake usually turns it into a lesson that lowers the error rate. Denying it leaves the rate where it was.
5
Cumulative mistakes over a career under the two habits.
# Mistakes: admitting and learning from them lowers the error rate.
import numpy as np
import matplotlib.pyplot as plt

base_rate = 0.25  # initial chance a project has an error
learning = 0.2    # error-rate reduction per lesson learned
rng = np.random.default_rng(96)


def run(learns):  # average cumulative mistakes, 200 careers of 50 projects
    totals = np.zeros((200, 50))
    for c in range(200):
        rate, total = base_rate, 0
        for t in range(50):
            if rng.uniform() < rate:
                total += 1
                if learns and rng.uniform() < 0.8:
                    rate *= 1 - learning
            totals[c, t] = total
    return totals.mean(axis=0)


learns, denies = run(True), run(False)
print(f"Mistakes after 50 projects: admits and learns {learns[-1]:.1f}, "
      f"denies and repeats {denies[-1]:.1f}")

t = np.arange(1, 51)
plt.plot(t, learns, color="#2166ac", linewidth=2, label="Admits and learns")
plt.plot(t, denies, color="#d6604d", linewidth=2, label="Denies and repeats")
plt.xlabel("Project")
plt.ylabel("Cumulative mistakes (average career)")
plt.legend()
plt.show()

Key takeaways

  • Everyone makes mistakes. The response is what matters.
  • Admit errors plainly, find their causes and change your workflow.
  • A culture that punishes admitting errors makes sure they are repeated.

Source

Back to top