Agreement is not validity: auditing exact tests in statistical libraries by their rejection regions

The error rate that an exact test promises should be checkable from the values the software returns. A comparison with reference values shows whether an output matches a definition, not whether the rejection region they define keeps its level. The answers part in both directions: the squared-ranks test of the R package coin makes the decisions of its specification at a nominal 10 % yet rejects at least 300 of 1,024 equally likely data sets, while two 2×2 libraries keep the level in each of the 306 reversals of the reference decision confirmed by an initial comparison. The audit rebuilds the rejection region from the p-values one software version returns on every input of a design, and bounds its maximum null probability from both sides. For group sizes 7 and 16 at a nominal 5 %, a proof assistant's kernel checks that the region's largest null probability with equal success probabilities in the two groups lies between 0.05002403999390 and 0.05002403999391. For four 2×2 functions on the 400 designs with up to 20 per group (300 for SciPy's boschloo_exact), the returned p-values fail validity at some attained value in 7,999 of 8,900 combinations, yet the six conventional levels are exceeded in 12 of 53,400 cases. Classes of inputs extend the audit: for a tie-free Mann–Whitney test with 50 per group, 2,501 calls, one per class, cover about 1029 allocations. Whether a formal distribution is that of sampled data is argued per procedure.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24554163
Primary Topic
Probability and Statistical Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Agreement is not validity: auditing exact tests in statistical libraries by their rejection regions

Tasuku Kobayashi
Zenodo (CERN European Organization for Nuclear Research)
Probability and Statistical Research
preprint

Agreement is not validity: auditing exact tests in statistical libraries by their rejection regions

Tasuku Kobayashi
preprint en

Abstract

The error rate that an exact test promises should be checkable from the values the software returns. A comparison with reference values shows whether an output matches a definition, not whether the rejection region they define keeps its level. The answers part in both directions: the squared-ranks test of the R package coin makes the decisions of its specification at a nominal 10 % yet rejects at least 300 of 1,024 equally likely data sets, while two 2×2 libraries keep the level in each of the 306 reversals of the reference decision confirmed by an initial comparison. The audit rebuilds the rejection region from the p-values one software version returns on every input of a design, and bounds its maximum null probability from both sides. For group sizes 7 and 16 at a nominal 5 %, a proof assistant's kernel checks that the region's largest null probability with equal success probabilities in the two groups lies between 0.05002403999390 and 0.05002403999391. For four 2×2 functions on the 400 designs with up to 20 per group (300 for SciPy's boschloo_exact), the returned p-values fail validity at some attained value in 7,999 of 8,900 combinations, yet the six conventional levels are exceeded in 12 of 53,400 cases. Classes of inputs extend the audit: for a tie-free Mann–Whitney test with 50 per group, 2,501 calls, one per class, cover about 1029 allocations. Whether a formal distribution is that of sampled data is argued per procedure.

Zenodo (CERN European Organization for Nuclear Research)
Probability and Statistical Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon