Central Limit Theorem
The central limit theorem explains why averages of many independent random variables often look approximately normal, even when the original variables are not normal.
Let be independent samples with mean and variance . The sample mean is:
The normalized mean converges in distribution:
where denotes convergence in distribution.
Standard Error
The variance of the sample mean decreases with :
The standard error is:
This is why larger evaluation sets can reduce metric noise, though they do not fix leakage or dataset shift.
Confidence Interval Heuristic
When the CLT approximation is reasonable and is estimated by sample standard deviation , an approximate interval for the mean is:
This is a finite-sample uncertainty statement about the mean of the sampled population. It is not evidence that the sampled population matches deployment.
When It Breaks
| Issue | Why CLT intuition can mislead |
|---|---|
| correlated examples | effective sample size is smaller than |
| grouped data | molecules, scaffolds, proteins, prompts, or users are not independent rows |
| heavy tails | rare extreme errors dominate finite samples |
| selected metrics | repeated selection invalidates a naive interval |
| non-average metric | AUROC, top-k enrichment, max score, or filtered generation may need bootstrap or paired methods |
For grouped evaluation, the unit of independence is often the group, not the row:
If a test set contains many near-duplicates, the apparent standard error can be much too small.
Why It Matters
- It justifies many approximate confidence intervals for averages.
- It explains why repeated noisy measurements can become stable when averaged.
- It connects metric uncertainty to sample size.
- It does not guarantee that biased samples represent the deployment distribution.
Checks
- Are examples independent enough for the approximation to be meaningful?
- Is the sample size large relative to skew, heavy tails, or correlation?
- Is the reported uncertainty about finite-sample noise, not dataset bias?
- Is the metric an average, or a nonlinear statistic requiring another method such as bootstrap?
- Are rows independent, or should uncertainty be grouped by scaffold, protein family, source, prompt, or user?
- Was the interval computed before or after model selection?