Skip to main content

When researchers say “guarantee”

Thinking about statistics
Law or aphorism
Intermediate
They’re really talking about an assumption.
Published

November 9, 2026

Modified

November 13, 2026

Entry #115 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: “Guarantee” is another word for “assumption”.

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

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

What it is

Statistical methods are often sold with guarantees: this interval is guaranteed to have 95% coverage, randomization guarantees unbiasedness, this procedure controls the false discovery rate. Each guarantee is a theorem, and theorems have hypotheses. When you hear “guarantee,” Gelman says, translate it as “assumption,” and then ask whether the assumption holds.

Why it matters

The word “guarantee” makes conditional results sound unconditional. Users then rely on methods in settings where the guarantee doesn’t apply: small samples, skewed data, dependence, model misspecification. Those are exactly the settings where you’d most want protection, and the guarantee doesn’t give it.

How it works

The classic \(t\)-interval \(\bar{y} \pm t_{n-1}\,s/\sqrt{n}\) “guarantees” 95% coverage of the mean when the data are normal. For moderately skewed data with large \(n\), the central limit theorem approximately rescues it. For heavily skewed data, such as log-normal incomes or response times, with small \(n\), coverage can fall well below 95%. The guarantee was the normality assumption all along.

Simulated example

Simulate the coverage of the “guaranteed” 95% t-interval for a mean when the data are log-normal. Vary the skewness and the sample size.

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

viewof skew = Inputs.range([0.01, 2], {value: 1.2, step: 0.01, label: "Skewness (log-normal sigma)"})
viewof n = Inputs.range([5, 200], {value: 15, step: 5, label: "Sample size"})
viewof seed = Inputs.range([1, 500], {value: 115, step: 1, label: "Random seed"})

tq = ({5: 2.776, 10: 2.262, 15: 2.145, 20: 2.093, 25: 2.064, 30: 2.045})
guarantee = {
  const r = rng(seed);
  const trueMean = Math.exp(skew * skew / 2);
  const tcrit = tq[n] || 1.96 + 2.4 / n;
  const reps = range(3000).map(() => {
    const y = range(n).map(() => r.lognormal(0, skew));
    const m = mean(y), half = tcrit * sd(y) / Math.sqrt(n);
    return {miss: m + half < trueMean ? "Interval too low" : m - half > trueMean ? "Interval too high" : "Covers"};
  });
  return {reps, trueMean};
}

Plot.plot({
  ariaLabel: "When researchers say \"guarantee\": simulation chart",
  ariaDescription: "Horizontal axis: Share of 3,000 replications. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 180,
  marginLeft: 120,
  x: {label: "Share of 3,000 replications", tickFormat: "%", domain: [0, 1], grid: true},
  y: {label: null},
  marks: [Plot.barX(guarantee.reps, Plot.groupY({x: "proportion"}, {y: "miss", fill: d => d.miss === "Covers" ? "#2166ac" : "#d6604d"})), Plot.ruleX([0.95], {stroke: "currentColor", strokeDasharray: "4 3"})]
})
# When researchers say "guarantee", they mean an assumption.
1skew <- 1.2 # skewness: sigma of the log-normal distribution
n <- 15 # sample size
2set.seed(115)

true_mean <- exp(skew^2 / 2)
tcrit <- qt(0.975, n - 1)
miss <- replicate(3000, {
3  y <- rlnorm(n, 0, skew)
4  half <- tcrit * sd(y) / sqrt(n)
  if (mean(y) + half < true_mean) {
    "too low"
  } else if (mean(y) - half > true_mean) "too high" else "covers"
})

cat("Coverage of the 'guaranteed' 95% t-interval: ",
  round(100 * mean(miss == "covers"), 1), "%\n",
  sep = ""
)
cat("Intervals entirely below the true mean: ",
  round(100 * mean(miss == "too low"), 1), "%\n",
  sep = ""
)

5barplot(table(factor(miss, c("too low", "covers", "too high"))) / 3000,
  col = c("#d6604d", "#2166ac", "#b8860b"),
  ylab = "Share of intervals"
)
abline(h = 0.95, lty = 2)
1
The page’s controls: how skewed the data are and the sample size.
2
Fixes the random numbers so the run is reproducible.
3
Log-normal data: incomes, response times, anything with a long right tail.
4
The textbook t-interval, whose 95% guarantee assumes normal data.
5
How often the interval covers, falls entirely below, or entirely above the true mean. The dashed line is the guaranteed 95%.
# When researchers say "guarantee", they mean an assumption.
from statistics import NormalDist
import numpy as np
import matplotlib.pyplot as plt

skew = 1.2  # skewness: sigma of the log-normal distribution
n = 15      # sample size
rng = np.random.default_rng(115)

# 97.5% quantile of the t distribution, from a series in 1/df
z = NormalDist().inv_cdf(0.975)
df = n - 1
tcrit = (z + (z ** 3 + z) / (4 * df)
         + (5 * z ** 5 + 16 * z ** 3 + 3 * z) / (96 * df ** 2))

true_mean = np.exp(skew ** 2 / 2)
y = rng.lognormal(0, skew, (3000, n))
m, half = y.mean(axis=1), tcrit * y.std(axis=1, ddof=1) / np.sqrt(n)
too_low, too_high = m + half < true_mean, m - half > true_mean
covers = ~too_low & ~too_high

print(f"Coverage of the 'guaranteed' 95% t-interval: "
      f"{100 * covers.mean():.1f}%")
print(f"Intervals entirely below the true mean: {100 * too_low.mean():.1f}%")

plt.bar(["too low", "covers", "too high"],
        [too_low.mean(), covers.mean(), too_high.mean()],
        color=["#d6604d", "#2166ac", "#b8860b"])
plt.axhline(0.95, color="black", linestyle="--")
plt.ylabel("Share of intervals")
plt.show()

Key takeaways

  • A statistical guarantee is a theorem, and theorems have assumptions.
  • When you hear “guaranteed,” ask: under what conditions?
  • Check by simulation whether the guarantee holds for data like yours.

Source

Back to top