PAIRS: A Rank-Calibrated Test of Structural Departures from Randomness and Independence in Paired Binary Streams
Many systems produce bits in pairs of streams that should behave like two independent fair coins, such as dual-channel random number generators and the random event generators of experimental research. A departure may be a bias, a coupling, a memory or a drift, may last for the whole record or a short episode, and records differ in length. We present PAIRS, a rank-calibrated test that turns a pair of binary streams into a single p-value. It measures six structural features in overlapping windows of 1,000 bits and combines a burden, which counts unusual windows, with a peak, which records the most extreme one. Each feature tests the balance of a few parities and is, to second order, a classical information statistic, so its blind spots can be stated precisely. Monte Carlo rank calibration controls the false-positive rate in finite samples for 3,600 to 720,000 bits per stream, as preregistered checks confirm from 12,000 bits upwards. Detection follows three regimes set by the episode length. Multiscale scans of signed indicators are more efficient against the departures they are built for (16 against 25–125 nats of accumulated divergence); for departures that cancel in signed sums, PAIRS needs 3 to 10 times less. PAIRS is open and fully reproducible.
Authors
- Vasileios Basios (ORCID: https://orcid.org/0000-0002-1199-4552)
- Roger D. Nelson
- Javier F. Urchueguía (ORCID: https://orcid.org/0000-0002-3054-3431)
- Enrique Monzó
- Jeff Dunne
- Mel Larrosa
- Vicente Arráez Jarque
- Pier Francesco Moretti
- Annette Grathoff
- Wolfhardt Janu
Publication Details
- Journal
- Preprints.org
- Published
- 2026-11-24
- DOI
- https://doi.org/10.20944/preprints202611.2443.v1
- Primary Topic
- Probability and Statistical Research
- Type
- preprint