A classical test fixes the sample size in advance. Look at the result early, or keep measuring until it turns significant, and its error rate is no longer what it claims. Benchmarks, A/B tests and model evaluations are run exactly like that.
evalues implements tests built for looking. Each one is a betting game against the hypothesis it tests, and its capital, the e-value, can be checked after every observation: stop whenever you like and the error rate stays below the level you set. A test also says when it is done, so you measure until the data decide instead of for a fixed time. Every method is published; docs/statistics.md cites the source of each.
Quickstart
pip install evalues # needs only numpy
Is the new build slower than the old one, by more than 2 %?
from evalues import Comparison
comparison = Comparison(min_change=0.02) # a change below 2 % does not matter
for new_ms, old_ms in paired_measurements: # run time after and before a change
comparison.update(new=new_ms, old=old_ms)
if comparison.done:
break
print(comparison.summary())
Decided after 226 pairs: averaged over pairs, new is more than 2 % larger than old
(error rate at most 5 %). Average change so far +5.98 % (an estimate).
comparison.verdict is "increase", "decrease", "no_change" or "undecided". "no_change" is a result too: the change is below min_change, so you can stop measuring. uv run python examples/quickstart.py runs every object on simulated data.
Pick by the question you have
| Question | Use | Feed it |
|---|---|---|
| Is new larger or smaller than old, by enough to matter? | Comparison |
pairs of positive numbers |
| Is the average above or below a fixed value? | MeanTest |
numbers within known bounds |
| Where is the average? | MeanInterval |
numbers within known bounds |
| Is the average difference larger than X, or safely smaller? | DifferenceTest |
differences within known bounds |
| Is the median or the p99 above or below a fixed limit? | QuantileTest |
any numbers |
| Is new larger than old more often than it is smaller? | SignTest |
pairs of any numbers |
| Is new higher anywhere in the distribution, such as the tail? | DominanceTest |
pairs of any numbers |
| Tell me when the average of a stream moves | ChangeDetector |
numbers within known bounds |
| Many benchmarks: which ones changed? | flag, flag_strict |
the tests above |
| Several machines, one question | combine |
the tests above |
Every object has update(...), .done, .summary(), .result() and to_dict(), and all but MeanInterval (which gives a range) have .verdict; evalues.load() continues a saved test where it stopped. Examples for each row, deadlines, and what to watch out for are in docs/guide.md.
Two things to know
- Nothing may drift while you measure. Take each new/old pair close together and alternate which goes first; then drift cancels within the pair.
- "undecided" is not "no change". Only
Comparison,DifferenceTestand a narrowMeanIntervalcan tell you that a change is below your threshold.
Repository layout
src/evalues/ the library; the betting engine is _games.py (about 250 lines)
tests/ unit tests and simulation checks of every guarantee (uv run pytest, a few minutes)
examples/ quickstart.py
docs/ guide.md (usage), statistics.md (methods and references), README figures
scripts/figures/ make.py regenerates the README figures
Citation
If you use evalues, please cite it as software, together with the papers of the methods you use (docs/statistics.md):
@software{koch2026evalues,
author = {Koch, Sebastian},
title = {{evalues}: Statistical Tests You Can Check after Every Observation},
year = {2026},
url = {https://github.com/s3bastiankoch/evalues},
note = {Version 0.1.0}
}
License
MIT.
Metadata
Release files for evalues 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evalues-0.1.0.tar.gz | 32.1 kB | With provenance | Details for evalues-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evalues-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for evalues-0.1.0-py3-none-any.whl |
Total release size: 71.9 kB
Release files / evalues-0.1.0.tar.gz
| Download URL | evalues-0.1.0.tar.gz |
|---|---|
| Size | 32.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dc5e25dd639ef99fcb641d0f9566dd686bec4b7956db199119c3b40f867f7f8
|
|
BLAKE2b-256 checksum How to use checksums |
4a57f647b0beaf1597a83d94edaf977723300aee505e3c0ce939f8c4d5360534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / evalues-0.1.0-py3-none-any.whl
| Download URL | evalues-0.1.0-py3-none-any.whl |
|---|---|
| Size | 39.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a06c0c281fbb10063cc03ea94aa0adfd145938e799e1fd3d0ec736791d8cf7f
|
|
BLAKE2b-256 checksum How to use checksums |
d21b47b88aa8e38b922b4f6e5611f379ce2c0bd9ed4b671ce4207cdb7517faf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for evalues 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for evalues-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.