About the Lexicon Explorer
What is this?
The Andrew Gelman Statistical Lexicon Explorer is a study aid built around Andrew Gelman’s Handy Statistical Lexicon, created by Nelson Amaya D with Claude Fable 5.1, Codex and Gemini.
This is an independent project. It is not affiliated with, endorsed by or reviewed by Andrew Gelman. The entry names and definitions are his; the explanations and simulations are ours, and so are any mistakes in them.
Where the entries come from
Since May 2009, Gelman has kept a running list of names for “important methods and concepts related to statistics that are not as well known as they should be” on his blog, Statistical Modeling, Causal Inference, and Social Science. This site covers the 155 entries on the list as of November 2026 (last checked 11 November 2026; Gelman last updated the list in August 2026). The first 153 follow the version of the list archived in March 2026. The two newest, The paradox of storytelling and The transitive property of money, were added later; no archived copy of the updated list exists, so their one-line definitions were taken from the live list itself. Gelman keeps adding entries, so newer ones may be missing here.
On every page, the title and the short definition under it are Gelman’s own words, with one exception: the title of #74, The Piranha Principle, corrects a typo in his list (“Pinciple”). Each page links to the blog post or paper the entry points to. The entry numbers are ours: they follow the order of Gelman’s list, which isn’t numbered.
What is added here
The explanations and simulations were written for this site and are not Gelman’s. Each entry has a Source check line under its definition. A ✓ means the explanation was checked against the post or paper the entry links to, usually an archived copy, and quotes from it. Otherwise the line says the entry hasn’t been checked yet, and why. Many entries are aphorisms about research culture, for example the Javert Paradox and Arrow’s Other Theorem. For these, the simulation is a deliberately simple toy model of the mechanism behind the joke, and the page says so. Always read the linked source post for Gelman’s own argument.
Quotation marks on these pages are kept for words someone actually said or wrote: Gelman, the other people named on each page, and well-known lines such as proverbs and film taglines. Hypothetical lines that illustrate a point, such as what a researcher might say in defense of a study, are set in italics instead.
How to browse
- Start here is a twelve-stop tour of the ideas the rest of the lexicon builds on. Three shorter tours follow paths through it for reviewers and editors, for survey researchers and for Bayesian beginners.
- Levels. Every entry is tagged Introductory (no statistics needed), Intermediate (p-values, power, regression) or Advanced (Bayesian computation, multilevel models). Click a level tag to see all entries at that level.
- Browse by theme puts every entry in one of six themes, from Noise and evidence to How science behaves.
- Browse by kind groups the same entries by what sort of idea they are: methods, principles, fallacies, laws and aphorisms, or advice.
- Every entry is a searchable, sortable table in Gelman’s order.
- On any entry page, the sidebar lists all 155 entries grouped by theme, and the previous/next links step through a theme in Gelman’s order. Each entry’s Filed under line links to its theme and kind.
- Random entry takes you somewhere unexpected.
How the simulations work
Every simulation runs in your browser with Observable JS. There is no server: everything is computed in your browser. Under each simulation, Reset to defaults puts the controls back where the page started, and Download settings and result (CSV) saves the current settings with the text under the chart. All pages share the helper functions in js/stats.js: a seeded random number generator, common distributions and regression routines. That means a given random seed always reproduces the same draws. Click Show simulation code under a simulation to see all of its code.
The code comes in three languages, on tabs: the Observable JS that runs on the page, and the same simulation written in R and in Python, so you can copy it and run it on your own computer, or run it right there with the Run in your browser button, which loads R (webR) or Python (Pyodide) only when you click it. The R versions use only base R. The Python versions use NumPy and Matplotlib. Each one prints the result in words and draws the chart. Where a simulation draws random numbers, each language uses its own random number generator, so the exact numbers differ a little from the page’s, but they show the same pattern. The tab you pick is remembered on every page.
A few entries also have hands-on R simulation labs on separate Try it in R pages. These run R itself in your browser with webR, with step-by-step experiments and coding exercises that you can edit and check on the spot. webR is a large download, so it loads only on those pages.
Corrections
If a page gets something wrong, or claims more than Gelman’s post supports, please say so. Every entry page has Report an issue and Edit this page links. They open the page’s source in the project’s GitHub repository, where you can describe the problem or propose a fix directly. GitHub Issues is the one place for corrections and questions; you can also browse the ones already reported there. Every proposed change is checked automatically before it can go live.
License
- The code (the simulations,
js/stats.jsand the build scripts) is released under the MIT License. - The explanations written for this site are released under Creative Commons Attribution 4.0 (CC BY 4.0).
- The entry names, the one-line definitions and the quotations are Andrew Gelman’s, or those of the other authors named on each page. They are quoted for commentary and teaching, and they remain theirs.
We have not asked Andrew Gelman or the other quoted authors for permission to reproduce their words. They are quoted, with links to the originals, for commentary and teaching. If you hold the rights to any quoted material and want it changed or removed, please open an issue and we will act on it.
Privacy
The site uses Google Analytics to count visits and see which entries people read. It loads only if you accept analytics cookies in the banner shown on your first visit, and you can change your choice at any time with the Cookie preferences link in the footer. The site collects no other personal data and has no accounts or forms.
Like any web page, these pages are fetched from third-party servers that see your IP address: the site’s host (Netlify), Google Fonts, public code libraries (jsDelivr) and, on the Try it in R pages only, webR’s own servers.
How this site was built
The site was built in November 2026 by Nelson Amaya D working alongside three AI models and their coding environments: Claude Fable 5.1 (in Anthropic’s Claude Code), Codex (in OpenAI Codex), and Gemini (in Google Antigravity). Nelson chose what to build and how it should be organized, set the editorial rules, and reviewed the results; the three models drafted, audited, and refined the prose, simulations, and tooling in a rotating loop.
check_entries.py (structure, quotes, palette)
·
check_code.py (R, Python & webR labs)
·
stats.test.mjs (math vs. R)
·
check_pages.py (headless Chrome)
The work went in seven stages:
- A template, then a page for every entry. Starting from Gelman’s lexicon post, we wrote a template that every page follows: Gelman’s definition, what the idea is, why it matters, how it works, a simulation, key takeaways, related entries and the source. Then came a page for each of the 153 entries on the list at the time, each with its own simulation.
- Checking against the sources. Gelman’s blog blocks automated access, so each explanation was compared with an archived copy of its source post from the Internet Archive’s Wayback Machine. Several entries turned out not to mean what their names suggest, and those pages were rewritten. Each page’s Source check line records the result.
- Grouping and navigation. Every entry was given a theme and a kind. A script generates the theme and kind pages, the cards on the home page, the sidebar and the Related entries lists, and it makes every related-entry link go both ways.
- Cross-model reviews. Full reviews of the site (see the callout below) found real problems: explanations that misread their source, two simulations with coding errors, missing attributions, and illustrative lines set in quotation marks as if someone had said them. All of these were fixed. The second review also prompted a line-by-line audit of every simulation’s code, which found and fixed several more bugs, and it pointed out two entries Gelman had added to his list since March 2026, which now have pages too. Subsequent passes checked every page against the site’s own conventions, darkened chart colors for light and dark mode contrast, and audited the build and interactive tooling.
- Try it in R. Four core simulations rewritten as interactive R labs that run in your browser with webR, complete with guided experiments, coding exercises, hints and solutions.
- R and Python versions. Every simulation was translated into base R and into Python, and each entry’s code now has a tab for each language. Every translation was run to check that it works and shows the entry’s point. Where a language’s own random draws happened not to show it, that version’s default seed was changed.
- Toward version 1.0. Every entry is now checked against its source; the last one was a scanned magazine column, read page by page. Each simulation got Reset to defaults, a CSV download and buttons that let you edit and run its R and Python versions in the browser. The site gained three more guided tours, a reading level on every entry, other names for each idea in the site search, entry numbers in the sidebar, preview cards for sharing, unit tests for the shared simulation code, and stricter automatic checks.
No model grades its own work. One AI model reviews the whole site and writes a report: every entry against its source, every simulation’s code and default settings, the links, the accessibility of the charts, and the live deployment. Another model, working with Nelson, fixes what the report found, extends the automated checks so the same class of mistake cannot return, and records what changed. The reports are in the repository’s reviews/ folder, so anyone can see what was found and how it was handled. Nothing is corrected silently.
What the site is made of:
- Quarto builds the static site. Its look comes from a single
_brand.ymlfile with the colors, fonts, logo and light and dark themes. - The simulations are written in Observable JS and drawn with Observable Plot. They share one small library,
js/stats.js, with seeded random numbers, common distributions and regression routines. - The Try it in R pages use webR through the quarto-live extension.
- The R and Python versions are plain scripts, one per entry and language, that the build copies into each page’s code tabs.
- Short Python scripts generate the theme and kind pages and check the site. One checks every page’s structure, chart descriptions for screen readers, random seeds and links. Another loads every page in a headless browser and fails if any simulation shows an error. A third runs every R and Python version.
- On every proposed change, GitHub Actions runs all three checks. The site is hosted on Netlify.
All of the source is in the project’s GitHub repository. To build the site yourself, install Quarto, Python and Google Chrome, then run:
quarto preview # live-reloading local server
quarto render # build the static site into _site/
python scripts/check_entries.py # check every entry's structure and links
python scripts/check_code.py # run every R and Python version
python scripts/check_pages.py # load every page in a browser