PAIRS: A Rank-Calibrated Test of Structural Departures from Randomness and Independence in Paired Binary Streams
Authors:
- Javier F. UrchueguíaJavier F. Urchueguía
- Vasileios BasiosVasileios Basios
- Wolfhardt JanuWJWolfhardt Janu
- Pier Francesco MorettiPier Francesco Moretti
- Vicente Arráez JarqueVJVicente Arráez Jarque
- Enrique MonzóEMEnrique Monzó
- Jeff DunneJDJeff Dunne
- Annette GrathoffAGAnnette Grathoff
- Mel LarrosaMLMel Larrosa
- Roger D. NelsonRNRoger D. Nelson
Preprint
- 24 November 2026
- preprint
- Published by MDPI AG in Preprints.org
Abstract
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.Keywords
All Related Versions
This publication has 47 references indexed in Scilit:
- Random numbers for parallel computers: Requirements and methods, with emphasis on GPUsMathematics and Computers in Simulation, 2017
- Analysis of Boolean Functions2014
- Effects of Mass Consciousness: Changes in Random Data during Global EventsEXPLORE, 2011
- Monte Carlo tests with nuisance parameters: A general approach to finite-sample inference and nonstandard asymptoticsJournal of Econometrics, 2006
- Examining psychokinesis: The interaction of human intention with random number generators--A meta-analysis.Psychological Bulletin, 2006
- Elements of Information Theory2005
- Scan Statistics2001
- Comparative analysis of two ratesStatistics in Medicine, 1985
- Spurious regressions in econometricsJournal of Econometrics, 1974
- Rundungsfehleranalyse einiger Verfahren zur Summation endlicher SummenZAMM - Journal of Applied Mathematics and Mechanics / Zeitschrift für Angewandte Mathematik und Mechanik, 1974