Skip to main content

Seeds of its own destruction

Showing and telling
Advice
Introductory
Any graph should contain these.
Published

November 9, 2026

Modified

November 13, 2026

Entry #112 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: Any graph should contain the seeds of its own destruction.

Filed under Showing and telling · Advice · Introductory.

Related terms: histogram bin width, showing uncertainty in graphs.

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

What it is

A good graph should show enough detail to reveal the limits of its own resolution. Gelman illustrates with four histograms of the same sample. The first averages away too much detail, the second (the default bins) is fine, and the fourth has so many bins that the pattern disappears. He prefers the third, with narrow enough bins that “we don’t need confidence bands or anything else to get a sense of the uncertainty in the bar heights; we see that uncertainty in the visible noise of the graph itself.” In his words: “My preferred graph here is not the smoothest or even the one that most closely approximates the underlying distribution … rather, I like the graph that shows the data while at the same time giving a visual cue about its uncertainty.”

Why it matters

Smooth, polished displays invite readers to over-read them: every bump looks like a real feature. A graph whose own noise is visible tells the reader how seriously to take small wiggles, without a separate uncertainty display. That’s what the graph’s “seeds of its own destruction” are: built-in evidence of how far it can be trusted. The same idea applies beyond histograms. Show the raw points behind a fitted curve, and show replicated data beside model output.

How it works

For a histogram with bin width \(h\) and \(n\) observations, each bar’s height is a count with sampling noise of roughly \(\sqrt{\text{count}}\). Wide bins average the noise away, and with it the detail. Very narrow bins let the noise swamp the shape. In between there’s a width where the shape is clear and the bar-to-bar jitter shows the reader how big the noise is. That jitter is the seed.

Simulated example

A sample of 1,000 draws from a standard normal, as in Gelman’s post. Move the bin width and look for the histogram that shows the shape while still showing its own noise.

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 bins = Inputs.range([5, 200], {value: 40, step: 1, label: "Number of bins between −4 and 4"})
viewof n = Inputs.range([100, 10000], {value: 1000, step: 100, label: "Sample size"})
viewof seed = Inputs.range([1, 500], {value: 112, step: 1, label: "Random seed"})

sample = rng(seed).normals(n)

html`<div style="display:flex; gap:0.75rem; flex-wrap:wrap">
${[["Too coarse", 8], ["Default-ish", 20], ["Your choice", bins], ["Too fine", 160]].map(([label, k]) =>
  Plot.plot({
  ariaLabel: `Seeds of its own destruction: ${label} histogram (${k} bins)`,
  ariaDescription: "Horizontal axis: the sampled value, from -4 to 4. Vertical axis: count per bin. The chart updates with the controls above it, and the summary below the charts states the result in words.",width: 240, height: 180, title: `${label} (${k} bins)`, x: {domain: [-4, 4], label: null}, y: {label: null, ticks: 3},
    marks: [Plot.rectY(sample, Plot.binX({y: "count"}, {x: d => d, thresholds: range(k + 1).map(i => -4 + 8 * i / k), fill: label === "Your choice" ? "#2166ac" : "#8a8a8a"})), Plot.ruleY([0])]}))}
</div>`
# Seeds of its own destruction: a histogram that shows its own noise.
1bins <- 40 # number of bins between -4 and 4
n <- 1000 # sample size
2set.seed(112)

x <- rnorm(n)
3per_bin <- n * (8 / bins) * dnorm(0) # count in a central bin
cat("With ", bins, " bins, central bars hold about ", round(per_bin),
  " points each,\nso their heights wobble by about +/-",
  round(sqrt(per_bin)), " (", round(100 / sqrt(per_bin)), "%)\n",
  sep = ""
)

4par(mfrow = c(2, 2), mar = c(3, 3, 2, 1))
for (k in c(
  "Too coarse" = 8, "Default-ish" = 20, "Your choice" = bins,
  "Too fine" = 160
)) {
  hist(x[abs(x) < 4],
    breaks = seq(-4, 4, length = k + 1),
    col = "#2166ac", border = "white", main = paste(k, "bins"),
    xlab = "", ylab = ""
  )
}
1
The page’s controls: the number of bins and the sample size.
2
Fixes the random numbers so the run is reproducible.
3
The expected count in a central bin, whose square root is the wobble in the bar heights: the noise the graph should let you see.
4
The same sample binned four ways. Too coarse hides the noise, too fine drowns the shape; in between, the bar-to-bar jitter is the seed of its own destruction.
# Seeds of its own destruction: a histogram that shows its own noise.
from statistics import NormalDist
import numpy as np
import matplotlib.pyplot as plt

bins = 40  # number of bins between -4 and 4
n = 1000   # sample size
rng = np.random.default_rng(112)

x = rng.normal(size=n)
per_bin = n * (8 / bins) * NormalDist().pdf(0)  # count in a central bin
print(f"With {bins} bins, central bars hold about {per_bin:.0f} points "
      f"each,\nso their heights wobble by about +/-{np.sqrt(per_bin):.0f} "
      f"({100 / np.sqrt(per_bin):.0f}%)")

fig, axes = plt.subplots(2, 2, figsize=(8, 6))
choices = [("Too coarse", 8), ("Default-ish", 20), ("Your choice", bins),
           ("Too fine", 160)]
for ax, (label, k) in zip(axes.flat, choices):
    ax.hist(x, bins=np.linspace(-4, 4, k + 1), color="#2166ac")
    ax.set_title(f"{label}: {k} bins")
plt.tight_layout()
plt.show()

Key takeaways

  • A good graph shows its own uncertainty through the visible noise in the data it displays.
  • Don’t oversmooth. The smoothest display isn’t the most honest one.
  • Show raw data alongside summaries so readers can see how far to trust them.

Source

Back to top