# A Sample Is Not the Whole Truth: Minimal Statistics

> Source: <https://pub.towardsai.net/a-sample-is-not-the-whole-truth-minimal-statistics-a6359400f777?source=rss----98111c9905da---4>
> Published: 2026-12-04 04:39:52+00:00

**Recommendation:** Size your eval sets by standard error, not gut feel: quadrupling samples from 30 to 120 halved SE from 0.183 to 0.091, so report confidence around any model score.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

*Note: Although this article can be read independently, it is part of a comprehensive interactive course — the table of contents for which can be found at* *https://jarroba.com/en/ai-course/**—where the entire course is available for free.*

What we know about an AI system usually comes from trying it on a few examples: a sample. And the number a sample gives is not the true value, because another sample, drawn from the same place, would give a different number. For the same reason, a series of random results can look like a trend.

Open [**the CLT simulator in the Statistics tool**](https://jarroba.com/tools/en/stats?tab=sim&sim=clt&pop=exponential&n=30&samples=3000&seed=1) (CLT is the central limit theorem, explained below), with the **Exponencial** population (exponential; the menu keeps the Spanish spelling), sample size **30**, **3000** samples and seed **1**. When it opens, [the tool](https://jarroba.com/tools/en/stats?tab=sim&sim=clt&pop=exponential&n=30&samples=3000&seed=1) runs the experiment by itself. The population is an invented list of values that follow an **exponential** distribution: many small values and a few very large ones, like the minutes between one customer and the next in a shop or the time a server takes to answer. On the left, **Starting population**: how those values are spread. On the right, **Sample means**: the result of the experiment.

The tool’s exponential population has a mean of 1: it is the true value, the one we would like to find out. The tool writes it at the top as “Population: 1 · σ 1”: the population mean is 1 and its standard deviation, σ (the Greek letter sigma), is also 1; the dot only separates the two figures. The standard deviation is how far a value usually strays from the mean, as explained in [Chance and distributions](https://jarroba.com/en/chance-and-distributions/). The true mean is also marked by a red line on the chart on the right.

The tool acts as if it did not know it: it draws 30 values at random and computes the mean of those 30, which is all you would have in a real case. And it repeats that 3000 times. If a sample always told the truth, the 3000 means would all come out as 1. They don’t: the chart on the right shows how they are spread, some above and some below. Above the charts are the numbers that summarize it: **mean of means, 0.995**, and **SE observed, 0.184** (the standard error: how far those means usually stray from their center, which is almost at the true 1; it is explained below, with a worked example).

Now press **Compare with n×4**: the tool repeats the experiment with samples of **120** and writes underneath “Before: n=30, SE 0.183 → Now: n=120, SE 0.091” (there the tool gives the theoretical SE, explained below; the observed one was 0.184). The SE drops to about half ( [the same simulator with 120, already run](https://jarroba.com/tools/en/stats?tab=sim&sim=clt&pop=exponential&n=120&samples=3000&seed=1)). With , to **0.057**.

Finally, open [**the random walk**](https://jarroba.com/tools/en/stats?tab=sim&sim=walk&steps=200&p=0.5&seed=1), with 200 steps and seed 1. The green line goes up, goes down, goes up again and ends high, at +10. It looks like the chart of a stock on the market, with its good and bad streaks. Behind it, in gray, other walks with the same coin: each one ends somewhere different, some high and some low. Each of its 200 steps is a coin flip: +1 if it lands heads, −1 if it lands tails.

The **population** is everything you are interested in (all the customers, all the questions that will be asked of a model, and so on) and the **sample** is the part of the total that you study. The mean of a sample resembles that of the population, but it is not the same, and it changes from one sample to another.

In AI this happens every time a model is evaluated. Its true score would be the one it would get on all the possible questions; the one you see comes from the few on which you test it.

How much it changes is measured with the **standard error** (SE): how far the mean of a sample usually strays from the true mean. It has a short formula, the one the tool calls “SE theoretical”: the spread of the population (σ, sigma) divided by the square root of the sample size (n).

In this population σ is 1, so with 30 values we get 1 / √30 ≈ 0.183; with 120, 1 / √120 ≈ 0.091; with 300, 0.058, within a thousandth of the 0.057 you saw. And note what the root says: to cut the error in half you need **four times as much data**, not twice.

The shape of the chart has its own story too. The exponential population is very skewed (many small values and a few very large ones), and yet the means are spread in the shape of a bell. This is the **central limit theorem** (CLT): the means of many samples tend toward that shape whatever the starting population (as long as its spread is finite). Its first version is the de Moivre-Laplace theorem, according to which the binomial can be approximated by a bell, and the modern form was not stated precisely until the 1920s ([*Central limit theorem*, on Wikipedia](https://en.wikipedia.org/wiki/Central_limit_theorem)).

That leaves the **seed**. A computer does not toss coins: it generates numbers that look random with a formula that starts from an initial value, the seed. With the same seed the same sequence always comes out ([*Pseudorandom number generator*, on Wikipedia](https://en.wikipedia.org/wiki/Pseudorandom_number_generator)). That is why the “random” values the tool computes on your computer match the ones you see in this article, and why seeds are used when training models: they make it possible to repeat an experiment exactly. Try putting [seed 2 in the CLT](https://jarroba.com/tools/en/stats?tab=sim&sim=clt&pop=exponential&n=30&samples=3000&seed=2): the summaries come out the same up to the third decimal place, because with 3000 samples the differences cancel out. Each single sample varies a lot; the summary of 3000, very little.

You might think that if a line rises and falls in streaks, something must be pushing it. The random walk has nothing behind it: each step is a coin flip, and it still draws “trends”. The tendency to see meaningful streaks in what is chance has a name, the **clustering illusion**, and famous examples: during the Second World War, Londoners built theories about where the German flying bombs were aimed, and an analysis from 1946 by R. D. Clarke found that the impacts fitted a random distribution and gave no support to the idea of clusters ( [“An application of the Poisson distribution”](https://doi.org/10.1017/S0020268100035435), *Journal of the Institute of Actuaries*, 1946).

In AI the same thing happens, in two ways. A model trained on little data can learn the noise as if it were a pattern (explained in Fitting a curve). And when comparing two models on a small sample of tests, a difference of a few points can be just chance (it has its own article: [Is my improvement real?](https://jarroba.com/?p=51499)).

*Originally published at* *https://jarroba.com* *on November 30, 2026.*

[A Sample Is Not the Whole Truth: Minimal Statistics](https://pub.towardsai.net/a-sample-is-not-the-whole-truth-minimal-statistics-a6359400f777) was originally published in [Towards AI](https://pub.towardsai.net) on Medium, where people are continuing the conversation by highlighting and responding to this story.
