Skip to main content

Your closest collaborator

Building and checking models
Law or aphorism
Introductory
You, six months ago—and she doesn’t respond to emails. (from Karl Broman via Erin Jonaitis)
Published

November 9, 2026

Modified

November 13, 2026

Entry #104 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: Your closest collaborator . . . and she can’t talk.

Filed under Building and checking models · Law or aphorism · Introductory.

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

What it is

A saying from Karl Broman, passed along by Erin Jonaitis in a blog comment that Gelman called “especially memorable”: “Your closest collaborator is you six months ago but you don’t reply to email.” The person you’ll most often need to explain your analysis to is yourself, months later. Past-you knew why that observation was dropped, what that variable recode meant and which version of the data file was final. Present-you has forgotten, and past-you won’t answer questions. Documentation, scripts and version control are messages to that collaborator.

Why it matters

Reproducibility is usually framed as being for others: reviewers, replicators, the public. Its first beneficiary is the analyst. Projects get revised, reviewers ask for changes, and errors need tracing, often long after the analysis was done. Undocumented decisions then have to be rediscovered or guessed, and guesses introduce new errors.

How it works

A toy forgetting model. An analysis involves \(D\) decisions. A documented decision can always be recovered. For an undocumented one, the chance you still remember it after \(t\) months decays roughly like \(e^{-t/\tau}\). The expected number of decisions you can reconstruct is

\[ D\big[f + (1 - f)\,e^{-t/\tau}\big], \]

where \(f\) is the fraction documented. Every decision you can’t reconstruct has to be guessed or redone.

Simulated example

An analysis has 40 decisions. Choose how many you document, and see how much of your own analysis you can recover months later.

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 docFrac = Inputs.range([0, 1], {value: 0.3, step: 0.05, label: "Fraction of decisions documented"})
viewof tau = Inputs.range([1, 24], {value: 4, step: 1, label: "Memory half-life (months)"})
viewof seed = Inputs.range([1, 500], {value: 104, step: 1, label: "Random seed"})

memory = {
  const r = rng(seed);
  const D = 40, lam = Math.log(2) / tau;
  return range(25).map(t => {
    let recovered = 0;
    for (let d = 0; d < D; d++) recovered += (d < docFrac * D) || r() < Math.exp(-lam * t) ? 1 : 0;
    return {t, recovered, expected: D * (docFrac + (1 - docFrac) * Math.exp(-lam * t))};
  });
}

Plot.plot({
  ariaLabel: "Your closest collaborator: simulation chart",
  ariaDescription: "Horizontal axis: Months since the analysis. Vertical axis: Decisions you can reconstruct (of 40). The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 280,
  x: {label: "Months since the analysis"},
  y: {label: "Decisions you can reconstruct (of 40)", domain: [0, 40], grid: true},
  marks: [
    Plot.line(memory, {x: "t", y: "expected", stroke: "#2166ac", strokeWidth: 2}),
    Plot.dot(memory, {x: "t", y: "recovered", fill: "#2166ac", r: 3}),
    Plot.ruleY([docFrac * 40], {stroke: "#d6604d", strokeDasharray: "4 3"})
  ]
})
# Your closest collaborator: you, six months ago.
1doc_frac <- 0.3 # fraction of decisions documented
tau <- 4 # memory half-life (months)
2set.seed(104)

D <- 40
lambda <- log(2) / tau
months <- 0:24
3expected <- D * (doc_frac + (1 - doc_frac) * exp(-lambda * months))
4recovered <- sapply(months, function(t) {
  sum(seq_len(D) <= doc_frac * D | runif(D) < exp(-lambda * t))
})

cat(
  "Decisions you can reconstruct after 6 months: about",
  round(expected[months == 6]), "of 40\n"
)
cat("After two years: about", round(expected[months == 24]), "of 40\n")

5plot(months, recovered,
  pch = 19, col = "#2166ac", ylim = c(0, D),
  xlab = "Months later", ylab = "Decisions you can reconstruct"
)
lines(months, expected, col = "#2166ac")
abline(h = doc_frac * D, col = "#d6604d", lty = 2) # documentation's floor
1
The page’s controls: the fraction of decisions you wrote down, and how fast memory of the rest fades (its half-life in months).
2
Fixes the random numbers so the run is reproducible.
3
The expected number of the 40 decisions you can reconstruct: the documented ones, plus the undocumented ones you still remember.
4
One simulated you at each delay: documented decisions survive, undocumented ones are remembered with decaying probability.
5
Reconstructable decisions over two years. The dashed line is the floor set by documentation.
# Your closest collaborator: you, six months ago.
import numpy as np
import matplotlib.pyplot as plt

doc_frac = 0.3  # fraction of decisions documented
tau = 4         # memory half-life (months)
rng = np.random.default_rng(104)

D, lam = 40, np.log(2) / tau
months = np.arange(25)
expected = D * (doc_frac + (1 - doc_frac) * np.exp(-lam * months))
documented = np.arange(D) < doc_frac * D
recovered = [np.sum(documented | (rng.uniform(size=D) < np.exp(-lam * t)))
             for t in months]

print(f"Decisions you can reconstruct after 6 months: about "
      f"{expected[6]:.0f} of 40")
print(f"After two years: about {expected[24]:.0f} of 40")

plt.plot(months, recovered, "o", color="#2166ac")
plt.plot(months, expected, color="#2166ac")
plt.axhline(doc_frac * D, color="#d6604d", linestyle="--")
plt.ylim(0, D)
plt.xlabel("Months later")
plt.ylabel("Decisions you can reconstruct")
plt.show()

Key takeaways

  • The first audience for reproducibility is your future self.
  • Document decisions at the time you make them. Memory decays faster than you expect.
  • Scripts, comments and version control are messages to a collaborator who can’t be reached.

Source

Back to top