Preprint
Article

This version is not peer-reviewed.

PAIRS: A Rank-Calibrated Test of Structural Departures from Randomness and Independence in Paired Binary Streams

Submitted:

23 November 2026

Posted:

24 November 2026

You are already at the latest version

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: 
;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Random bits are used in many fields. Cryptographic keys, secure communication and multiplexing in sensor networks, Monte Carlo simulations, randomized trials and lotteries all rely on sources whose bits are balanced, independent of one another and unpredictable [1]. For this reason physical generators are monitored in operation, and pseudorandom generators are checked with large batteries of statistical tests [2,3,4,5]. These tools answer a question about a single stream: does this sequence look like a series of fair coin flips?
In a number of situations, however, two streams are produced side by side, and each is expected to be random and independent of the other. Many physical and quantum generators derive their output from two detectors or two raw channels [5,6], and a defect that couples the channels matters as much as a defect in either of them. Parallel simulations need pseudorandom streams that are independent of each other, not merely individually random [7]; further examples, from neuroscience and cryptanalysis, are given in Section 2. Random event generators (REGs) are hardware noise sources whose output has been studied in relation to human intention and collective events. Research with them has mostly analysed the output of single devices [8,9,10]; in the network of the Global Consciousness Project (GCP), the reported effect appears as small correlations between pairs of separate devices [11]. Devices and methods that analyse two time series of random numbers jointly, in order to identify ranges in which they are synchronous, have also been proposed [12]; the present work originated in this setting. In all these cases the hypothesis of interest concerns the pair: two fair coins, tossed independently.
Testing a pair is harder than testing a single stream, for three reasons. The first is that a pair can fail in many ways. A departure can be a bias in one stream, an excess or a deficit of coincidences between the streams, a short memory within a stream, a delayed coupling from one stream to the other, a drift, or a memory over longer distances, and no single statistic is sensitive to all of them. The second is that the same departure may occur at very different scales: it may extend over the whole record or be confined to a short episode. A statistic tuned to whole-record effects dilutes a short episode, while one tuned to short episodes wastes the information carried by a long, weak effect. The third is that records vary in length. A 20-minute event recorded at 10 bits per second gives 12,000 bits per stream, and a one-hour event at 200 bits per second gives 720,000. A usable test must be calibrated at every length, not only at a few reference lengths.
Applying a battery of separate tests to each stream and to their combination does not solve these problems. It produces dozens of dependent verdicts whose joint false-positive rate is unknown, and it does not provide one quantity that can be compared across records or pooled over a set of them. Generality has a price, however: a test designed for one known departure is always more powerful against that departure than a test that must watch for all of them. We quantify this price explicitly (Section 9).
In this paper we present pairs (Paired-stream Anomaly Index with Rank-calibrated Scores), a rank-calibrated test that summarizes a pair of binary streams of any length within a practical range as a single p-value. It measures six structural features (balance, agreement, persistence, lagged coupling, drift and longer memory) in overlapping windows, compares every window value with a fixed set of simulated random pairs, and summarizes the outcome in two complementary ways: a burden, which counts how many windows look unusual, and a peak, which records the most extreme window. Both summaries are calibrated by ranking them among the same summaries computed on independent random pairs. The resulting p-value controls the false-positive rate in finite samples without any distributional approximation, under the single condition that the record and the calibration pairs are exchangeable under the null hypothesis.
After a review of the methods and concepts that frame the analysis of such data (Section 2), the paper makes four groups of contributions:
  • Construction of the method: a precise statement of the paired-stream null hypothesis and of the requirements that a practical test should meet (Section 3), and the pairs test itself, with its six structural features measured in windows, its two endpoints and their combination into one p-value (Section 4).
  • Statistical and informational foundation: an exact decomposition of a record’s divergence from the null into marginal, memory and coupling parts; a reading of the features as tests of parity balance, each equivalent to second order to a classical information quantity, which states precisely what the test can and cannot see (Section 3.2 and Section 4.8); and a rank calibration whose single campaign covers all lengths from 3,600 to 720,000 bits per stream, with a scaling law for the null spread of the burden and a local equivalence between the power of each feature and the information it captures (Section 5).
  • Evaluation: preregistered validations under the null hypothesis with fresh simulated pairs, including three cohorts produced with different generators and implementations (Section 7); a sensitivity study of six perturbation mechanisms, which identifies three detection regimes and gives a rule for choosing the window length (Section 8); and a comparison with reference detectors on identical records, which measures in nats of accumulated divergence what the generality of pairs costs and what it buys (Section 9).
  • Reproducibility: an open Python implementation with a deterministic, published generator, so that every result in this paper can be regenerated and validated (Section 6).
pairs was developed within DeepREG, a research programme that studies paired REG recordings made during preselected events. That application motivated several design choices, but the test makes no assumption about the origin of the bits, and its use on real REG recordings will be reported separately. Section 10 discusses scope and limitations, and Section 11 summarizes the main findings for readers who do not need the mathematical detail.

3. Problem Statement

3.1. The Paired-Stream Null

Let X = ( X 1 , … , X N ) and Y = ( Y 1 , … , Y N ) be two binary streams of common length N. The reference model, denoted H 0 throughout, is
X i ∼ iid Bernoulli ( 1 / 2 ) , Y i ∼ iid Bernoulli ( 1 / 2 ) , X ⊥ Y .
That is, the two streams behave like two fair coins, each tossed independently of its own past and of the other coin. Here N always denotes the number of bits per stream; a record of 720,000 bits contains 720,000 bit pairs.
Among all processes on pairs of bits, H 0 is the one whose blocks have maximal entropy: a block of n consecutive bit pairs carries 2 n bits of entropy under H 0 and less under any other law. For a record generated by a law P, the natural measure of how far it lies from H 0 is therefore the Kullback–Leibler divergence of P from H 0 over the N bit pairs of the record [16], which equals the entropy deficit of the record because H 0 is uniform. This deficit splits exactly into five parts. Writing TC ( X ) = ∑ i H ( X i ) − H ( X ) for the total correlation (multi-information) of a stream [36], the sum of the single-bit entropies minus the joint entropy, we have, in bits,
D ( P ∥ H 0 ) = 2 N − H ( X , Y ) = ∑ i = 1 N 1 − H ( X i ) + ∑ i = 1 N 1 − H ( Y i ) ︸ marginal deficits + TC ( X ) + TC ( Y ) ︸ memory + I ( X ; Y ) ︸ coupling .
The identity follows from the definitions of mutual information and total correlation (Appendix A). Every term is non-negative and every term vanishes under H 0 , so a departure from H 0 is a deficit in at least one of the three parts, and departures of different kinds differ in where the deficit appears. Two refinements locate the remaining kinds. The coupling term splits exactly into the information flowing from the past of X to Y, the information flowing from the past of Y to X, and an instantaneous exchange between X i and Y i given both pasts [37,38]; transfer entropy [17] is the stationary, finite-memory form of the two lagged parts. A drift is a marginal deficit that varies along the record: if J is a position drawn at random in a stretch of the record and H indicates which half of the stretch contains it, then I ( X J ; H ) is the Jensen–Shannon divergence between the bit laws of the two halves [39]. The asymptotic entropy rate is not the right quantity for localized departures: a departure confined to a finite episode leaves the rate unchanged, but its deficit in the record is finite and can be detected.

3.2. Parities and the Walsh–Fourier View

A second exact description says which part of the deficit a statistic can see. Write the bits as signs, s i = ( − 1 ) X i and t i = ( − 1 ) Y i , so that the exclusive or of bits (⊕) becomes a product of signs. For a set S of bit positions the parity χ S is the product of the signs in S, and its bias under P is c S = E P [ χ S ] . For a block of n bits the 2 n parities form an orthonormal basis of the functions of the block under the uniform law U, and Parseval’s identity for Boolean functions [40] gives
χ 2 ( P ∥ U ) = ∑ S ≠ ∅ c S 2 , D ( P ∥ U ) = 1 2 ∑ S ≠ ∅ c S 2 + R , | R | ≤ γ 6 ( 1 − γ ) 2 χ 2 ( P ∥ U ) nats ,
where γ = max x | P ( x ) / U ( x ) − 1 | < 1 (Appendix A). A law is uniform if and only if every parity is unbiased, and near uniformity its divergence is half the sum of the squared parity biases. The approximation holds when χ 2 ( P ∥ U ) ≪ 1 , that is, for weak departures on short blocks; in general D ( P ∥ U ) ≤ ln { 1 + χ 2 ( P ∥ U ) } [41]. Each feature of pairs (Section 4.2) is built from normalized sums of a few parities of order one or two: in a window, D1 uses { X i } and { Y i } ; D2 uses { X i , Y i } ; D3 and D6 use { X i − l , X i } and { Y i − l , Y i } ; D4 uses { X i − l , Y i } and { Y i − l , X i } ; and D5 contrasts { X i } and { Y i } between the two halves of the window. In total the test measures 4 order-one contrasts and 13 order-two parities (Table 1). The mean of every component depends only on the bias of its own parity, so departures carried by parities of order three or more, or by order-two parities at other lags, cannot change the mean of any component; they can change its variance and its correlation with other components, through products of parities, but only as second-order effects (Equation (14) gives an example). A dependence can therefore be strong and still invisible to the first- and second-order parities that pairs examines: Section 10.3 gives an exact example, in which one stream is a deterministic function of the other.

3.3. What Departures Look like

We group departures from Equation (1) into six classes according to the part of the joint structure of the pair that they affect. The classes are examples rather than a complete list: the space of alternatives to Equation (1) is infinite-dimensional, and no statistic built from a finite number of quantities can be uniformly powerful against all of it. Our aim is a test that responds to a broad and explicitly documented set of structural departures, and whose response to each of them can be measured. Table 1 lists the classes, the feature of pairs that targets each, the part of Equation (2) in which the corresponding deficit appears, and the parities that the feature measures. To first order, the information available to detect a weak departure is this deficit accumulated over the affected bits (Section 5.4).

3.4. Requirements

A practical test for paired streams should meet six requirements.
R1 
One calibrated number. The output is a single p-value whose false-positive rate under H 0 is controlled in finite samples, without asymptotic approximations.
R2 
Structural diversity. The test responds to all the classes of Figure 1, and reports which feature drove a detection.
R3 
Multiple scales. It detects both weak departures that span the whole record and stronger departures confined to a short episode.
R4 
Any length. It is calibrated for every record length in a practical range, so that records of different durations and bit rates can be scored and pooled.
R5 
Reproducibility. Its calibration can be regenerated from a public specification, and independent implementations agree exactly.
R6 
Documented power. Its sensitivity to specified departures is measured, so that users know what it can and cannot detect.

3.5. Terminology

Table 2 defines the terms used in the rest of the paper. The preregistration files and the code in the repository use shorter internal labels; Appendix D lists the correspondence.

4. The PAIRS Test

pairs combines two complementary summaries of local structure. The burden endpoint measures how often the windows of a record fall in unusual regions of their null distributions; the peak endpoint measures the most extreme feature value observed anywhere in the record. The two are designed for different patterns: a weak departure that affects many windows, and a strong departure confined to a few. Each endpoint is calibrated against simulated null records, and the two endpoint p-values are combined into a single record-level p-value. The rest of this section formalizes these steps. Figure 2 summarizes the construction, and Table 3 lists the four sets of null realizations that it uses, each with its own role. Every step is fixed in advance, and the final result is calibrated as a whole.

4.1. Windows

A record of length N is divided into windows of W = 1000 consecutive bit pairs starting at positions 1 , 1 + S , 1 + 2 S , … with stride S = 200 . Only complete windows are used, so the number of windows is
w = 1 + N − W S .
The bits after the last complete window (fewer than 200) are discarded. The test depends on N only through w, and this is what allows a single calibration campaign to cover all supported lengths (Section 4.7).

4.2. Six Structural Features

Within a window, write a i = 2 X i − 1 and b i = 2 Y i − 1 (values ± 1 ), X ¯ and Y ¯ for the window means, X ¯ 1 , X ¯ 2 for the means of its first and second halves, and define the normalized lagged product sum
Γ ( u , v , l ) = 1 W − l ∑ i = l + 1 W u i − l v i .
Under H 0 , Γ has mean zero and variance one for every lag l ≥ 1 (and for l = 0 when u ≠ v ). The six features are
D 1 = 2 W ( X ¯ − 1 2 ) 2 + ( Y ¯ − 1 2 ) 2 1 / 2 balance D 2 = 2 W 1 [ X = Y ] ¯ − 1 2 agreement D 3 = Γ ( a , a , 1 ) 2 + Γ ( b , b , 1 ) 2 1 / 2 persistence D 4 = ∑ l ∈ { 1 , 4 } Γ ( a , b , l ) 2 + Γ ( b , a , l ) 2 1 / 2 coupling D 5 = W ( X ¯ 2 − X ¯ 1 ) 2 + ( Y ¯ 2 − Y ¯ 1 ) 2 1 / 2 drift D 6 = ∑ u ∈ { a , b } ∑ l ∈ { 2 , 4 , 125 } Γ ( u , u , l ) 2 1 / 2 long memory
Each feature is a non-negative magnitude of order one under H 0 that grows with the corresponding departure in either direction: a bias towards ones or towards zeros, an excess or a deficit of coincidences, a positive or a negative correlation. Table 4 states what each feature measures and what it cannot see. The lagged features use uncentred products, so a strong bias also raises D3, D4 and D6. The feature that dominates a detection therefore suggests the class of departure, but does not diagnose its cause.
The lags were chosen to probe memory at a few well-separated distances rather than to cover all of them. D3 looks at the nearest neighbour (lag 1). D6 extends this to lags 2 and 4, the next powers of two, where short-range artefacts of physical sources (for example, patterns introduced when bits are assembled into words, or a slow recovery of the detector after each event) would be expected to appear first. The third lag of D6 is defined relative to the window, l = W / 8 = 125 : it probes structure at an intermediate scale, long enough to respond to slow oscillations or regime changes within a window and short enough that each window still contains W − l = 875 products. D4 uses lags 1 and 4 for the same reasons, applied to the coupling between streams. Under H 0 the products at different lags are uncorrelated, so each squared feature built from m lagged terms is approximately a χ m 2 variable, whichever lags are used. The choice of lags therefore affects only which departures are detected, not the validity of the p-value, which is guaranteed by the calibration of Section 5. Departures at other lags are a documented blind spot (Table 4); their effect on the test can be measured with the sensitivity study of Section 8, which includes a lag-125 family.
The window length, the stride, the lags and the thresholds below were set during an exploratory stage of the work (Appendix C) and frozen before any of the validations reported here. They are design parameters, not quantities estimated from data. Section 8.4 discusses how the window length should be chosen for a new application.

4.3. Placement Within a Null Reference

The features have different null distributions, which are not Gaussian and are dependent on one another. Instead of modelling them, we locate each window value within a fixed reference support: the same feature, in the same window position, computed on U = 110 independent null realizations. If n < reference values lie strictly below the observed value and n = are equal to it, the placement is
q = n < + 1 2 n = + 1 2 U + 1 ∈ ( 0 , 1 ) .
Under H 0 , q is approximately uniformly distributed. A value of q near one means that the window is unusual for that feature; a value near zero means that it is unusually regular.

4.4. Burden Endpoint

For each feature d, threshold h ∈ { 0.75 , 0.90 } and direction (upper or lower tail), the burden is the fraction of windows whose placement falls in that tail:
B d , h ↑ = 1 w # { j : q d j ≥ h } , B d , h ↓ = 1 w # { j : q d j ≤ 1 − h } .
This gives a burden vector of 6 × 2 × 2 = 24 components B 1 , … , B 24 . Under H 0 their means are close to 0.25 (for h = 0.75 ) and 0.10 (for h = 0.90 ); a departure that persists over many windows shifts them.
The 24 components have different null means and spreads, so before they are compared they are brought to a common scale. For this purpose the burden vector is computed on a second, independent set of 110 null realizations, with the same window count w as the record being scored. For each component k this gives 110 null values B k ( 1 ) , … , B k ( 110 ) , from which we take two robust summaries [34,35]: the median, m k = median r B k ( r ) , as the centre, and the median absolute deviation, MAD k = median r | B k ( r ) − m k | , as the spread. For normally distributed data the MAD equals 0.6745 standard deviations, so the scale
s k = 1.4826 MAD k
is an estimate of the standard deviation ( 1.4826 = 1 / 0.6745 ) that, unlike the sample standard deviation, is hardly affected by a few extreme values. The standardized component ( B k − m k ) / s k then expresses how many null standard deviations the record lies above the typical null value, and the burden statistic is the largest of the 24:
T B = max k = 1 , … , 24 B k − m k s k .
The constants m k and s k depend on w and are stored for every window count. Taking the maximum avoids cancellation between components and indicates which component drove the detection. The maximum over dependent components has no simple null distribution, and this is why it is calibrated by simulation (Section 4.6). The standardization only puts the components on a common footing; an imprecise m k or s k costs some power but does not affect the validity of the p-value.

4.5. Peak Endpoint

The burden is designed for departures that affect many windows. A short, strong episode changes only a few windows and is diluted. The peak endpoint records, for each feature, the largest value over all windows, P d = max j D d j , standardizes it in the same way with the median m d P and the scale s d P = 1.4826 MAD d P of the same quantity in the 110 standardization realizations, and takes
T P = max d = 1 , … , 6 P d − m d P s d P .
This is a scan statistic in the sense of [21], applied to six features at once.

4.6. Reference Calibration and the PAIRS p-Value

A further set of C = 9 , 999 null realizations, independent of those above, is scored in exactly the same way. The p-value of an observed statistic T is its inclusive upper-tail rank among the reference values,
p = 1 + # { i : T i ≥ T } C + 1 ,
computed separately for T B (giving p B ) and T P (giving p P ) [29,32]. The pairs p-value combines the two endpoints with a Bonferroni bound,
p p a i r s = min { 1 , 2 min ( p B , p P ) } .
Under H 0 the two endpoints are only weakly dependent. Their Spearman correlation was 0.02 at N = 288 , 000 in campaign C2; an exploratory check with 400 null pairs per length gave 0.19 at 3,600 bits and 0.11 at 36,000 bits, so the dependence fades as the record grows. The Bonferroni bound guarantees Pr { p p a i r s ≤ α } ≤ α whatever this dependence, and it is conservative: if the two endpoint p-values were independent and uniform, the rate would be 1 − ( 1 − α / 2 ) 2 = α − α 2 / 4 , that is 4.94% at α = 0.05 , and the discreteness of p B lowers it further. The realized rate in validation was 4.76% on average (Section 7.3). Consequently p p a i r s is not uniformly distributed under H 0 , even if the ties of Equation (12) were broken at random; making it uniform would require calibrating the combined statistic itself.
pairs reports p p a i r s , both endpoint p-values, and the feature and the component that achieved each maximum. The last two are descriptive: they indicate where the evidence came from, but they are not separately calibrated.

4.7. A Single Calibration Campaign for All Supported Lengths

The null realizations are generated as long masters of 720,000 bits per stream, and a null record of length N is simply the first N bits of a master. Window j then contains the same bits in every length that includes it, so the placements q d j do not depend on N. The burden for every window count w = 1 , … , 3596 is obtained from cumulative counts, and the peak from cumulative maxima, in one pass over each master. A single campaign of null realizations therefore calibrates every length up to 720,000 bits at once, and a record of any length is scored with the references of its own window count, without interpolation. Lengths below 3,600 bits ( w < 14 ) cannot be calibrated with this robust standardization, because the MAD of some burden components over 110 null realizations is zero there. This is a limitation of the standardization, not of rank calibration as such: a larger standardization set or a different scale estimator would extend the range.

4.8. The Features as Information Statistics

The construction above is purely operational. This subsection explains what the features measure in terms of information; it is not needed to compute the test, but it states precisely what the test can and cannot see.
Every component of a feature is a normalized sum of one parity (Section 3.2) over the window: if z 1 , … , z m ∈ { ± 1 } are the values of the parity, the component is C = m − 1 / 2 ∑ k z k . The D1 components are W − 1 / 2 ∑ i a i and W − 1 / 2 ∑ i b i ; D2 is | Γ ( a , b , 0 ) | ; the D5 components are W − 1 / 2 ∑ i h i a i and W − 1 / 2 ∑ i h i b i , with h i = − 1 in the first half of the window and + 1 in the second; and D3, D4 and D6 are made of the lagged sums of Equation (5). Under H 0 each component has mean zero and variance one, and the components of one feature are uncorrelated (Appendix A), so D 1 2 , … , D 6 2 are approximately χ 2 variables with 2, 1, 2, 4, 2 and 6 degrees of freedom.
Three exact identities connect the components with information quantities (Appendix A). First, C 2 is Pearson’s χ 2 statistic for the hypothesis that the parity is balanced. Second, the likelihood-ratio statistic of the same hypothesis is G 2 = 2 m D ( p ^ ∥ 1 2 ) , where p ^ = 1 2 + ε is the fraction of terms equal to + 1 , and G 2 − C 2 = 8 3 m ε 4 + O ( m ε 6 ) , which is O p ( m − 1 ) under H 0 . Third, when the empirical margins of two bits are exactly balanced in a window, their plug-in mutual information equals D ( p ^ ∥ 1 2 ) with p ^ their rate of agreement; more generally, the G statistic of a contingency table with n observations is 2 n times its plug-in mutual information. Each squared feature is therefore, to second order, twice the number of terms in the window times a plug-in information quantity (Table 5). As a check, the plug-in mutual information of a 2 × 2 table has a null bias of about 1 / ( 2 W ) nats [42], so that E [ 2 W I ^ ] ≈ 1 , in agreement with E [ Γ 2 ] = 1 .
The features are therefore classical. Per stream, D 1 2 + D 3 2 ≈ 2 W [ ln 2 − H ^ ( X i ∣ X i − 1 ) ] , which is the statistic of the approximate-entropy test of SP 800-22 with block length one, because ApEn ( 1 ) = H ^ ( X i ∣ X i − 1 ) [2,44]. What pairs adds is not the features but their joint rank calibration, indexed by the window count, and the design of the endpoints. Two caveats follow from the dictionary. The lagged features use uncentred products, so under a bias the mutual-information readings no longer hold, although the features still measure the biases of their parities (Section 4.2). And D4 measures pairwise, not conditional, dependence. If X and Y are independent but each has autocorrelations ρ X ( k ) and ρ Y ( k ) , then E [ Γ ( a , b , l ) ] = 0 but
Var Γ ( a , b , l ) = 1 + 2 ∑ k ≥ 1 1 − k W − l ρ X ( k ) ρ Y ( k ) ,
the classical source of spurious correlation between independent autocorrelated series [46]. For two binary Markov chains with Pr ( s i = s i − 1 ) = 1 2 + δ , ρ ( k ) = ( 2 δ ) k and the excess variance is 8 δ 2 / ( 1 − 4 δ 2 ) , which is 0.0032 at δ = 0.02 . This does not affect validity, since such streams already depart from H 0 , but a detection driven by D4 can then come from memory in both streams and not from coupling. Transfer entropy, which conditions on the past of the target, does not have this problem. In the sensitivity study of Section 8 only one stream is perturbed, so the situation does not arise there.

5. Calibration Theory

Two calibration questions must be kept apart. The first concerns the procedure, averaged over the random construction of the reference: exchangeability gives it a finite-sample guarantee. The second concerns the particular reference that is generated once and kept for practical use: its conditional false-positive rate can differ slightly from the nominal level. pairs answers the first question by rank calibration (Section 5.1) and measures the second with fresh null records (Section 5.2 and Section 7).

5.1. Validity of the Rank p-Value

The p-value of Equation (12) is a Monte Carlo test in the classical sense [29,32]. Its validity rests on a simple counting argument, which we state here because the rest of the paper depends on it.
Proposition 
(Rank calibration). Let T 1 , … , T C be the values of a statistic on C null realizations and T its value on the record being scored. If the C + 1 values are exchangeable and almost surely distinct, then for every level α ∈ ( 0 , 1 ) , with ⌊ x ⌋ the largest integer not exceeding x,
Pr { p ≤ α } = ⌊ ( C + 1 ) α ⌋ C + 1 ≤ α ,
with p given by Equation (12).
Proof. 
Sort the C + 1 values from largest to smallest. Exchangeability means that the record is equally likely to occupy any of the C + 1 positions, so its position has probability 1 / ( C + 1 ) of being each of 1 , 2 , … , C + 1 . If the record is in position r, exactly r − 1 reference values are larger, and Equation (12) gives p = r / ( C + 1 ) . Hence p ≤ α exactly when r ≤ ( C + 1 ) α , that is, for the ⌊ ( C + 1 ) α ⌋ highest positions, and the probability of this event is ⌊ ( C + 1 ) α ⌋ / ( C + 1 ) .    □
The proposition states that the false-positive rate is known and does not depend on the distribution of T, which in our case is unknown. With C = 9 , 999 and α = 0.05 the rate is 500 / 10 , 000 = 0.05 ; with C = 110 it would be ⌊ 5.55 ⌋ / 111 = 5 / 111 = 0.045 . Three properties must be kept apart, however.
(i)
Marginal validity. The probability in Equation (15) is taken over the record and the reference: it describes the procedure of drawing a fresh reference for every record. It is a finite-sample guarantee that requires no approximation.
(ii)
Conditional rate. In practice one reference is drawn once and frozen. For that reference the false-positive rate is a random quantity θ α whose distribution is given in Section 5.2; its mean is the value of Equation (15), but a particular reference can lie slightly above or below it.
(iii)
Exact level. Equality with the nominal level holds only for continuous T, a single endpoint and α ( C + 1 ) an integer. Ties (below) and the Bonferroni combination of the two endpoints (Equation (13)) both make pairs conservative.
What pairs guarantees is therefore control of the type I error in finite samples, Pr { p p a i r s ≤ α } ≤ α , marginally over the reference, together with a measured conditional rate for the references actually frozen (Section 7).
The condition of the proposition holds by construction. Under H 0 the record and the reference realizations are independent draws from the same model, scored by the same fixed procedure: the window features, the reference support and the standardization constants are set in advance and shared by all of them. The C + 1 values are therefore exchangeable, whatever the distribution of T. When T can take tied values, as happens because the burden components are discrete, Equation (12) counts the ties against the record and p becomes conservative, Pr { p ≤ α } ≤ α ; randomizing the ties would restore equality for a single endpoint, but not for the combined p-value. With C = 9 , 999 the attainable p-values are multiples of 10 − 4 .

5.2. Why the Reference Must Be Large

The proposition concerns an average over all possible reference sets. In practice a single reference set is generated and then kept fixed, and for that particular set the realized false-positive rate θ α = Pr { p ≤ α ∣ reference } is not exactly α . For continuous T it follows a beta distribution,
θ α ∼ Beta m α , C + 1 − m α , m α = ⌊ ( C + 1 ) α ⌋ ,
whose standard deviation at α = 0.05 is 0.020 for C = 110 , 0.0069 for C = 999 and 0.0022 for C = 9 , 999 . A small reference can therefore be valid on average and still, for the particular set that was kept, have a false-positive rate well above the nominal one.
This affects how a reference is accepted. In this work every fixed reference had to pass an admission check before it was used: a preregistered number n of fresh null pairs, not used to build the reference, is scored, and the number of pairs with p ≤ α must be small enough to show that the conditional rate θ α of this reference is below a tolerance τ (7% for α = 0.05 and 4% for α = 0.025 ; Section 7 gives the exact rule). A passed check is evidence that θ α < τ ; it does not show that θ α equals α . Given the reference, the number of alerts is binomial with parameter θ α , so over references it follows the beta-binomial law obtained from Equation (16); this gives the probability that a correctly built reference passes a check (Table 6; the script is in the repository). With C = 999 and several lengths checked at once, a correct reference fails at least one check with appreciable probability. With C = 9 , 999 and 19,000 validation pairs it passes with probability essentially one, while the tolerances remain strict. This is why pairs uses C = 9 , 999 .

5.3. A Window-Count Scaling Law

Each burden component is an average of window indicators, B k = w − 1 ∑ j = 1 w I j . Window j uses bits 200 ( j − 1 ) + 1 to 200 ( j − 1 ) + 1000 , so windows five or more strides apart share no bits. We condition on the frozen reference support. Given the support, each indicator I j is a function of the bits of window j only, so under H 0 the indicator sequence is 4-dependent. It is not stationary, because the support, and with it the exceedance probability π k j = Pr { I j = 1 ∣ support } and the covariances γ l , j = Cov ( I j , I j + l ∣ support ) , varies from one window position to the next. Because the support itself is built from null realizations, these position-dependent quantities form a stationary, finitely dependent sequence along the record, so their averages over j converge as w grows. With γ ¯ l the average of γ l , j over the window positions,
Var ( B k ) = 1 w γ ¯ 0 + 2 ∑ l = 1 4 1 − l w γ ¯ l , SD ( B k ) = c k w − 1 / 2 1 + o ( 1 ) , c k 2 = γ ¯ 0 + 2 ∑ l = 1 4 γ ¯ l .
where the first expression is exact given the support and the second states the leading behaviour; the size of the correction depends on how fast the position averages converge and is measured below rather than derived. A central limit theorem for m-dependent sequences [47], in a version that allows non-identically distributed terms with bounded moments, then makes w ( B k − π ¯ k ) asymptotically normal, jointly for the 24 components. We present the law as a heuristic result, supported by this dependence argument and verified by simulation, rather than as a theorem with explicit error bounds. The ratio VIF k = c k 2 / { π k ( 1 − π k ) } = 1 + 2 ∑ l ≤ 4 ρ l is the variance inflation caused by overlap; w / VIF k is the effective number of independent windows, and VIF k ≤ 9 .
An exploratory study with 4,000 further null masters measured all 24 components at 90 window counts between 14 and 3,596 (Figure 3). Fitted exponents of log SD on log w lie between − 0.491 and − 0.512 (mean − 0.502 ; bootstrap standard error about 0.004, obtained by resampling whole masters, so that the dependence between the lengths derived from one master is preserved). The one-constant law reproduces the empirical standard deviations with a median relative error of 0.7% for w ≥ 50 . The overlap inflation factors range from 1.09 (drift, lower tail) to 2.61 (lag-1 coupling, upper tail) (Table 7).
The law has three consequences.
  • The burden statistic has a limit that does not depend on N. With law-based scales, the standardized burden vector converges to a correlated Gaussian vector, and T B to the maximum of 24 correlated standard normals. Its 0.95 quantile decreases smoothly from about 3.45 at w = 14 to about 2.9 for w ≳ 700 , approaching 2.82, the 0.95 quantile of the maximum of 24 Gaussian variables with the null correlation matrix of the burden components, estimated from the 4,000 masters and evaluated by simulation of that Gaussian vector (Figure 4). With the 110-member robust scales actually used, the quantile fluctuates between 3.05 and 3.57; most of the apparent dependence of the reference on N is due to estimation noise in the robust scales. This noise costs some power but does not affect validity, which is guaranteed by the rank calibration.
  • Sensitivity grows with length for persistent departures. A departure that shifts a component’s per-window exceedance probability by Δ over the whole record moves the standardized component by about Δ w / c k .
  • Sensitivity is diluted for short episodes. If only L / S windows are affected, the shift is about Δ ( L / S ) / ( c k w ) , which decreases as N grows. Section 8 confirms both predictions.

5.4. Information and Power

The identities of Section 4.8 have a counterpart under the alternative. If the m terms of a component share a parity bias c, the component has mean E [ C ] = m c exactly, while the parity carries m D ( 1 + c 2 ∥ 1 2 ) = m ( c 2 / 2 + c 4 / 12 + … ) nats of divergence from H 0 in the window. The squared mean of the component, its noncentrality, is therefore twice the information that its parity carries, to leading order.
Proposition 
(Local information equivalence). Let feature f have components C j = m j − 1 / 2 ∑ k = 1 m j z j k , j = 1 , … , m f , where the z j k ∈ { ± 1 } are the values in a window of a parity of order one or two, and let c ¯ j = m j − 1 ∑ k E [ z j k ] be its average bias. As W → ∞ , assume that (A1) m j c ¯ j → h j and max k | E [ z j k ] | = O ( W − 1 / 2 ) ; (A2) the bits of the window are r-dependent for a fixed r, or are obtained from independent bits by sequential copying at a fixed lag g ( Y i : = Y i − g with probability 2 δ , δ = O ( W − 1 / 2 ) ), as in the persistence and long-memory mechanisms; (A3) the covariance matrix of ( C 1 , … , C m f ) tends to the identity. Then D f 2 converges in distribution to a noncentral χ 2 variable with m f degrees of freedom and noncentrality λ f = ∑ j h j 2 , and
λ f ≤ 2 I f + o ( 1 ) , I f = ∑ j = 1 m f ∑ k = 1 m j D ( 1 + E [ z j k ] 2 ∥ 1 2 ) ,
with equality when E [ z j k ] does not depend on k. Here I f is the divergence from H 0 carried in the window by the parities of f.
The proof (Appendix A) combines a central limit theorem for m-dependent triangular arrays [48] with a coupling that makes sequential copying finitely dependent, and bounds the information by Jensen’s inequality. The inequality also shows why a signed sum loses a structure such as the alternating regime, whose average bias vanishes while its divergence does not. Under H 0 the conditions hold with h j = 0 , and the proposition reduces to the χ m f 2 approximation of Section 4.8. Condition (A3) holds exactly under H 0 (Appendix A); under the mechanisms of the atlas we checked it by simulation: with 2 × 10 4 windows ( W = 1000 , δ = 0.05 ), the off-diagonal covariances of the components of D3 under persistence, D4 under lagged coupling and D6 under long memory were at most 0.021 in absolute value, and the variances within 0.023 of their limits, both within Monte Carlo error. For the mechanism that targets f, I f is, up to boundary terms, the divergence of the window given by the chain rule (Section 9.3): for example, W D ( 1 2 + δ ∥ 1 2 ) for bias and D1, and ( W − 1 ) D ( 1 2 + δ ∥ 1 2 ) for persistence and D3. Because W = 1000 is fixed in pairs, the limit W → ∞ serves as a local approximation. The proposition concerns the window features. The endpoints transform them further, by placement, thresholds and maxima, so the information that an endpoint needs is not given by Equation (18); it is measured in Section 8 and Section 9. What the proposition does explain is why the per-window signal of a weak departure is quadratic in its size.
A bias δ in a window shifts 2 W ( X ¯ − 1 2 ) by s = 2 δ W , so that s 2 = 4 W δ 2 is twice the 2 W δ 2 nats that the window carries, and the exceedance probability of D1 changes by Δ ≈ κ s 2 for small s. Combining this with the scaling law, we find that the burden statistic responds to an episode of L ≥ W bits as
Z ≈ κ 4 W δ 2 ( L / S ) c w ∝ δ 2 L N .
The divergence of Bernoulli ( 1 2 + δ ) from Bernoulli ( 1 2 ) is 2 δ 2 + 4 3 δ 4 + O ( δ 6 ) nats per bit [16]. Equation (19) therefore states that the burden endpoint detects a departure when the divergence accumulated over the episode, ≈ 2 δ 2 L nats, exceeds a multiple of N . A test that knew the location, the length and the form of the departure would use the signed sum of the targeted indicator over the episode. Its noncentrality is 4 δ 2 L , again twice the accumulated divergence, so it reaches 80% power at the two-sided level 0.05 when
2 δ 2 L = 1 2 z 0.975 + z 0.8 2 ≈ 3.9 nats ,
whatever the length of the record. The factor N is the cost of this particular design, which turns each window into a magnitude and then counts exceedances; it is not a lower bound for every method that searches all positions and classes. Other designs, such as scans over several window lengths with scale-dependent calibration [24], behave differently, and Section 9 measures the divergence that pairs and such alternatives need on identical records (Table 16). Section 8 measures the constant: 50% power is reached at δ 2 L / N ≈ 0.04 – 0.08 .

6. Implementation and Reproducibility

6.1. Deterministic Null Generator

All null realizations are produced by a published generator specification based on the SHAKE256 extendable-output function of the Federal Information Processing Standard (FIPS) 202 [49]. For a 32-byte root, a campaign identifier and an ordinal, one SHAKE256 call over the byte string
" DeepREGSys / H 0 H 0 / PY / SHAKE 256 / V 1 " ∥ 0 x 00 ∥ root ∥ len ( id ) ∥ id ∥ ordinal ( u 64 , big - endian )
yields 180,000 bytes, whose two halves are the X and Y masters of 720,000 bits each (most significant bit first). Every calibration campaign fixes its root as the SHA-256 of a public phrase written in a preregistration, so that anyone can regenerate every null realization. Separate campaign identifiers give independent families for the reference support, the robust standardization, the reference calibration and validation. Determinism makes the results reproducible; it does not by itself make the generated bits behave like independent fair coins. The calibration rests on the assumption that SHAKE256 output, used in this way, is indistinguishable from H 0 for the statistics computed here. This is a standard assumption for an extendable-output function from the SHA-3 family, and Section 7 checks it against an unrelated generator.

6.2. Software

pairs is a Python package with NumPy as its only dependency. Every window quantity is an integer sum over a bit range and is computed exactly from 64-bit prefix sums in O ( N ) operations per lag; there is no loop over windows. Records are independent once the references are fixed, so campaigns run on a pool of processes and their results are aggregated deterministically. The package contains the scoring kernel, the generator, the calibration campaigns, the sensitivity atlas and the statistical tools used for admission (exact binomial bounds [50] and the Miettinen–Nurminen interval [51]). For users who do not want to program, it also provides a local web interface for scoring single pairs or batches of pairs from files, and a command-line batch mode; both export the results, with a description of the source, in a documented format that can be pooled across contributors.

6.3. Agreement Between Implementations

The burden endpoint was first prototyped in the Wolfram Language during the exploratory stage of DeepREG. The open Python implementation reproduces that prototype exactly: the two give identical floating-point values for every quantity compared (window features, burden vectors, standardization constants and calibration ranks), on Linux and on Windows. The comparison of generators (Section 7) was made with this prototype of the burden endpoint; for the combined p-value, independence from the generator rests on the agreement of the two SHAKE256 campaigns and is not separately tested. A second, independently written implementation agrees with both on 1,900 null pairs. Appendix C lists the comparisons and the few numerical details that exact agreement requires.

6.4. Performance

Table 8 summarizes the computing costs. Because every window quantity is obtained from prefix sums, scoring is fast enough that a full calibration campaign runs in minutes on a workstation and the whole sensitivity study in less than two hours on a two-core cloud machine.

7. Null Validation

Main finding. The frozen references passed all 24 confirmatory admission checks, at lengths from 12,000 to 720,000 bits, with realized false-positive rates of 4.30–5.14% at the 5% level; cohorts produced with two generators and scored by two independent implementations gave equivalent rates. The design of the checks and the detailed results follow.
Every validation below was specified in a preregistration whose SHA-256 hash was recorded before execution [52]; the full hashes and the preregistration files are listed in Appendix D and archived with the code (Data Availability Statement). A preregistration fixes the generator roots, the numbers of realizations, the lengths, the thresholds and the admission rule. The admission checks introduced in Section 5 are one-sided exact binomial tests. With n validation pairs and a tolerance τ (7% for p ≤ 0.05 , 4% for p ≤ 0.025 ), a check passes if the number of alerts does not exceed the largest k such that Pr { Bin ( n , τ ) ≤ k } ≤ ϵ , where ϵ is 0.05 divided by the number of checks made at the same time. In other words, a reference is admitted only if its alert count is significantly lower than would be expected at a rate equal to the tolerance, that is, if the data show that its conditional rate is below τ . A passed check therefore bounds the rate from above; it does not show that the rate equals the nominal level. The nominal level itself is guaranteed marginally by the rank argument of Section 5, and the realized rates are reported in the tables below.

7.1. Does the Calibration Depend on the Generator?

A calibration built by simulation should depend on the null model, not on the particular pseudorandom generator used to simulate it. We checked this with the exploratory prototype of the burden endpoint, whose reference ( C = 999 ) had been built with Mersenne-Twister null realizations [53]. Three cohorts of 1,900 null pairs each were scored at N = 288 , 000 against this unchanged reference: one generated with the Mersenne Twister and two with the SHAKE256 generator, the latter scored by two independently written implementations (Table 9). All three passed admission. The SHAKE256 cohorts were equivalent to the Mersenne-Twister cohort by a two one-sided tests (TOST) procedure based on the Miettinen–Nurminen interval [51], and an exploratory homogeneity test found no significant difference among the three ( χ 2 2 = 1.41 , p = 0.49 at p ≤ 0.05 ; χ 2 2 = 1.68 , p = 0.43 at p ≤ 0.025 ).

7.2. Campaign C1: Burden Endpoint at Every Length

Campaign C1 regenerated all references with SHAKE256: 110 masters for the reference support, 110 for the robust standardization, 9,999 for the reference calibration and 19,000 fresh masters for validation. Window counts w ≤ 13 could not be calibrated (Section 4.7). The preregistered confirmatory admission concerned the burden p-value at the nested lengths 36k, 72k, 144k, 288k and 576k, with ten simultaneous checks (maxima 1,239 and 690 alerts). All ten passed (Table 10), and every 99.5% upper bound lies well below its tolerance.

7.3. Campaign C2: The Combined PAIRS p-Value

Campaign C2 added the peak endpoint. It reused the admitted C1 references unchanged, regenerated the C1 standardization and calibration masters from their public root (each checked against its recorded hash), built the peak standardization and calibration references, and validated the combined p-value of Equation (13) on 19,000 new masters. The admission covered seven lengths from 12k to 720k with fourteen simultaneous checks (maxima 1,235 and 687). All fourteen passed (Table 11). Over the two campaigns, the 24 confirmatory checks are therefore ten for the burden endpoint (C1) and fourteen for the combined pairs p-value (C2). The confirmatory admission covered the listed lengths from 12,000 to 720,000 bits; the calibration itself covers every length from 3,600 bits, and the rates between and below the admitted lengths are descriptive. Over a descriptive grid of 106 window counts from 14 to 3,596, the combined alert rate averaged 4.76% (range 4.0–5.3%) at p ≤ 0.05 and 2.38% at p ≤ 0.025 (Figure 5).
Below about 18,000 bits the burden endpoint alone is conservative, because its components take few distinct values and ties are counted against the record. The combined p-value does not show this effect, because the peak endpoint is nearly continuous.

7.4. Reproducibility

An independent rerun of C1 on another operating system regenerated the reference support (identical SHA-256), the standardization models for all 3,596 window counts, the calibration quantiles and the first 500 validation records, all bit-identical. C2 checked each of its 10,109 regenerated C1 masters against the recorded hash before use.

8. Sensitivity Atlas

A calibrated test is useful only if one knows what it can detect. We therefore measured the power of pairs against a structured set of departures from H 0 in a preregistered, purely descriptive study, which we call the sensitivity atlas.
Main finding. Detection follows three regimes, set by the length of the episode relative to the window and to the record: short episodes need δ L above a constant, intermediate ones a fixed intensity per window, and long ones δ 2 L / N above a constant. For a departure covering the whole record, 80% power is reached at δ ≈ 0.009 – 0.017 when N = 288 , 000 . Appendix B gives the detailed results.

8.1. Design

Alternatives. The study uses six generative mechanisms, one aimed at each structural class (Table 12). Inside an episode E of L consecutive bits each mechanism raises its target quantity, for example Pr ( Y i = X i ) − 1 2 for agreement, to δ (the targets are defined in Equation (21)); outside the episode the record follows H 0 . The alternating regime sets the bias of Y to + δ and − δ on alternate half-periods of 500 bits, so that its average bias over a period is zero while each window sees a change of regime. The mechanisms are not independent directions in a common parameter space: each changes its target at order δ but can also change other quantities, so the atlas measures the response of the whole test to each mechanism. In practice the cross-effects are small: the component that attains T B belongs to the targeted feature in 98–100% of detections, and the peak points to it in 60–87% (Table 17). This attribution is informative about the structural class that is present, but it is not a test of which mechanism produced the data. Combinations of mechanisms were not studied (Section 10). Figure 6 shows the geometry of a perturbed record.
Construction. Each perturbation acts on the Y stream only. Inside the episode, each bit of Y is replaced, with probability 2 δ , by a value that creates the targeted structure (Table 12). The randomness of the perturbation comes from a separate SHAKE256 stream, so the whole study can be regenerated. In the atlas the episode is centred in the record; the comparison of Section 9 places it at random.
Grid. The study covered the record lengths N ∈ { 12 k , 36 k , 144 k , 288 k , 720 k } , the episode lengths L ∈ { 500 , 1000 , 2000 , … , 512 , 000 } ∪ { N } with L ≤ N , and ten values of δ from 0.005 to 0.5, with 100 replicates per cell and common random numbers across cells, for a total of 282,500 scored records. At δ = 0 the empirical false-positive rate was between 1% and 7% (100 replicates per length), consistent with the nominal 5%. With 100 replicates a power of 80% is estimated with a 95% Wilson interval of about 71–87%; the effect sizes for 80% power reported below are interpolated log-linearly between neighbouring grid values of δ , and the coarseness of the grid, rather than the replicate count, dominates their uncertainty (Table 13).

8.2. Three Detection Regimes

Figure 7 shows the power map at N = 288 , 000 ; the effect size needed for 80% power at every length is shown in Figure 11 (Appendix B). All six families show the same three regimes (Figure 6b). They can be understood in terms of the signal that the episode produces in one window, s = 2 δ min ( L , W ) / W , that is, the shift of a window feature in units of its null standard deviation.
  • Sub-window episodes ( L < W ). The episode fills only part of one window, the window signal is proportional to δ L , and detection requires δ L ≈ constant (slope − 1 in Figure 11). The peak endpoint detects these: 80% power needs δ ≈ 0.13 – 0.21 at L = 500 and δ ≈ 0.07 – 0.13 at L = 1000 . The same δ L law had been observed empirically with the exploratory precursor of pairs (Appendix C); this regime applies to any detector based on the most extreme window.
  • Saturated windows ( W ≲ L ≲ 10 –30k). Once a window is completely inside the episode, adding further affected windows helps the maximum only slowly, and the required δ is nearly constant, about 0.045–0.07. The peak endpoint still dominates.
  • Burden regime (long episodes). When many windows are affected, the burden endpoint becomes dominant and the frontier follows δ 2 L / N ≈ constant (slope − 1 2 ), as predicted by Equation (19). For a departure covering the whole record, 80% power is reached at δ ≈ 0.026 – 0.044 for N = 12 , 000 , 0.009 – 0.017 for N = 288 , 000 and 0.008 – 0.016 for N = 720 , 000 , depending on the mechanism (Table 13).
The two endpoints divide the work. The burden endpoint alone is blind to episodes shorter than about 5–10% of the record, whatever their intensity, because it measures how many windows are unusual rather than how unusual they are; the peak endpoint alone is weak against long, faint departures. The combined p-value follows the lower envelope of the two, and the Bonferroni combination costs very little (Figure 12, Appendix B).

8.3. Sets of Records

In many applications the question concerns a set of records rather than one. A natural summary is the number K of records with p p a i r s ≤ 0.05 . Its null distribution needs care, because all records of a given length are scored with the same frozen reference. Given the reference, independent records of equal length give K ∼ Binomial ( n , θ ) , where θ is the conditional false-positive rate of that reference (Section 5.2), not exactly 0.05. Over references, K is beta-binomial, and the records are no longer independent, because they share θ . Marginal validity of each p-value therefore does not by itself justify an exact binomial test of K against 5% [33]. With C = 9 , 999 the spread of θ is small (standard deviation 0.0022 for one endpoint at level 0.05), and its effect on a one-sided binomial test at level 0.05 is negligible for the set sizes of interest: the realized size changes from 0.0444 to 0.0460 for n = 200 . It grows with n, however, to 0.046 instead of 0.038 for n = 1 , 000 and 0.082 instead of 0.044 for n = 5 , 000 (beta-binomial calculation with the law of Equation (16)). For large sets the count should therefore be referred to the beta-binomial law, or the set statistic calibrated by simulation. Records of different lengths use references of different window counts, built from the same calibration masters, so their conditional rates differ and are dependent; a set of mixed lengths should be calibrated by simulation as a whole.
The comparison that matters in practice is usually between two sets scored with the same references, such as records taken during events and records taken during matched control periods with the same device and durations. Conditionally on the references, events and controls of the same length then share the same θ under H 0 , and a two-sample comparison of their alert counts, or of any other statistic of their p-values, is exactly valid conditionally on the references, without any assumption about θ . Such paired designs are preferable to a comparison with the nominal 5%.
Under the binomial approximation, which is accurate for n ≤ 200 , 80% power for a one-sample test of the count requires a per-record power of 26% for n = 20 , 15% for n = 50 , 12% for n = 100 and 10% for n = 200 . Reading the atlas at 15% instead of 80% roughly halves the detectable effect size (Figure 8): with 50 records, whole-record departures of δ ≈ 0.005 – 0.025 become detectable. A comparison of events with controls has less power than this one-sample calculation, because the control rate must be estimated as well; for equal numbers of events and controls the required per-record power is roughly that of a one-sample test with half as many records.
Set-level analyses should rely on such counts of alerts rather than on tests of the uniformity of the p-values: the pairs p-value is calibrated in its lower tail, but for short records it takes few distinct values (23 for the burden endpoint in 400 null pairs of 3,600 bits), so a uniformity test would reject even for ideal sources.

8.4. Choosing the Window Length

The window length W sets the scale at which pairs looks at the data. The per-window signal s = 2 δ min ( L , W ) / W leads to a simple rule, illustrated with an idealized model in Figure 13 (Appendix B).
  • Short episodes (peak endpoint). The peak endpoint acts as a matched filter. The signal s is largest when W ≈ L , so the window should be about as long as the expected episode, measured in bits; in the idealized model the best choice lies between L / 2 and L.
  • Long weak departures (burden endpoint). The burden needs many windows, each with a modest signal. Because the effect on each window grows with the square of s when s is small, windows should be long enough that s ≈ 1 –2, that is W ≈ 0.5 / δ 2 , but no longer than the episode.
A fixed window length in bits corresponds to different time scales for sources with different bit rates. Whether a higher bit rate helps depends on the physics of the departure. If the per-bit probability shift δ does not depend on the rate, s grows as the square root of the rate, and faster sources are better. If the departure is a fixed number of anomalous bits per second, δ falls as the inverse of the rate, s falls as its inverse square root, and slower sources are better. Recording the same events with sources of different rates therefore offers an empirical way to distinguish the two models. The present calibration fixes W = 1000 ; calibrating other window lengths only requires running the same campaigns with another W.
Planned applications. The studies that motivated pairs will not rely on single records. They will compare sets of records, for example records taken during a series of events with records taken during matched control periods of the same duration and with the same devices. In such designs the relevant power is that of the set, and it depends on the number of events and controls as described in Section 8.3: with tens of events, effects about half as large as the per-record values become detectable (Figure 8). Table 14 gives the per-record starting point for the bit rates and durations planned in DeepREG. A window of 1,000 bits lasts 100 s at 10 bits/s but only 5 s at 200 bits/s, so the two kinds of device are examined at very different physical time scales. If the departures sought have a characteristic duration in seconds, the window should be set in seconds for each device, which only requires a new calibration campaign.

9. The Cost of Generality: Comparison with Reference Detectors

Main finding. On identical records, detectors aimed at a known structure are more powerful than pairs against the departures they target: a multiscale scan of signed indicators needs about 16 nats of accumulated divergence, where pairs needs 25–125. Against departures that cancel in signed sums, such as an alternating regime, the order is reversed and pairs needs 3 to 10 times less than the scan. The design and the detailed results follow.
pairs looks for many kinds of departure at every position and scale. A test that knows the kind of departure, or that it covers the whole record, can concentrate its power, and the question is how much pairs gives up in exchange for its generality. To measure this we scored identical records with pairs and with four reference detectors. The study was exploratory and not preregistered; its code and outputs are part of the repository.

9.1. Design

Records. All records had N = 288 , 000 bits per stream. Null pairs came from the SHAKE256 generator of Section 6 with a campaign identifier of their own, and were perturbed with five of the mechanisms of Table 12 (bias, agreement, persistence, alternating regime and long memory) in an episode of L ∈ { 2 , 000 ; 16 , 000 ; 64 , 000 ; N } bits placed at a random position. Fifteen effect sizes from δ = 0.002 to 0.256 on a grid with successive ratios 1.5 and 4/3 ( 0.002 , 0.003 , 0.004 , 0.006 , … ), finer than that of the atlas, were used with 200 replicates per cell and common random numbers across cells: every detector saw exactly the same records.
Detectors. Each detector works on indicator sequences that are Bernoulli(1/2) under H 0 . We used nine: X i = 1 , Y i = 1 , X i = Y i , X i = X i − 1 , Y i = Y i − 1 , Y i = X i − 1 , X i = Y i − 1 , X i = X i − 125 and Y i = Y i − 125 . They are the signed counterparts of features D1–D4 and D6.
  • Oracle z test. Two-sided z test of the indicator that the mechanism targets, over the whole record. It knows the kind of departure and assumes that it covers the record.
  • Global battery. The nine whole-record z tests with a Bonferroni correction ( 0.05 / 9 each). It does not know the kind of departure but assumes that it covers the record, like a conventional battery.
  • Oracle scan. The largest | z | of the targeted indicator over the whole record and over windows of 2 k × 1 , 000 bits ( k = 0 , … , 8 ) starting every quarter of their length. It knows the kind of departure but not its position or length.
  • Scan battery. The same multiscale scan applied to all nine indicators, with a single maximum. Like pairs, it knows neither the kind, the position nor the length of the departure.
The z tests use normal critical values. The thresholds of the two scans are the 0.95 quantiles of their null distributions, estimated from 4,000 further null records. Their size, checked on the half of these records not used to set the threshold, was 4.2% (oracle scans) and 4.6% (scan battery); the size of the oracle z tests was 5.1–5.6%, of the global battery 4.6%, and of pairs 5.5% on the 200 null records of the study.

9.2. Results

Figure 9 and Table 15 give the effect size needed for 80% power.
Four results stand out.
  • Against a known, whole-record departure,pairsis far from optimal. For bias, agreement, persistence and long memory over the whole record, the oracle z test reaches 80% power at δ ≈ 0.0027 , where exact 80% power corresponds to 2 δ N = 2.80 (the observed values, 2.92–2.94, are slightly higher because of interpolation on the grid and Monte Carlo error; Section 9.3), while pairs needs 0.010–0.015, between 3.6 and 5.4 times more. Not knowing the kind of departure costs little in this setting: the global battery needs 0.0035.
  • Global tests fail for localized departures. For an episode of 2,000 bits neither z test reaches 80% power on the grid, and for 16,000 bits they need about 0.05–0.06. Any detector meant for episodes of unknown position and length must search over positions and scales.
  • A multiscale scan of signed indicators is more powerful thanpairsagainst the departures it targets. The scan battery, which, like pairs, knows neither the kind nor the position nor the length of the departure, needs smaller effects than pairs for all four mechanisms whose target is one of its indicators: by a factor of about 1.3–1.4 for episodes of 2,000 bits and about 1.8–2.7 for longer ones. It needs only about 10% more than the oracle scan, so not knowing the kind of departure is cheap for a scan too.
  • pairsis more powerful against departures that cancel in signed sums. The alternating regime raises and lowers the bias on alternate half-periods of 500 bits, so its signed effect averages out over any window that spans whole periods. Here pairs, through its drift feature, needs about half the effect size of the scan battery or less at every episode length (0.32–0.54 times; 0.017 instead of 0.055 for the whole record), and the oracle tests are not even defined.

9.3. The Comparison in Units of Information

The effect sizes of Table 15 can be put on a common scale. Every mechanism of the comparison replaces each bit of Y in the episode, with probability 2 δ , by a value that depends only on X, on the earlier bits of Y and, for the alternating regime, on the position. In the persistence and long-memory mechanisms the copied bit is the already perturbed one (sequential copying). Given everything that precedes it, each such bit therefore equals its target value with probability 1 2 + δ , and by the chain rule for divergence the episode carries exactly L D ( 1 2 + δ ∥ 1 2 ) = 2 δ 2 L { 1 + O ( δ 2 ) } nats of divergence from H 0 , whatever the mechanism. The divergence is taken given the position of the episode; with a random position, the law of the record is a mixture, whose divergence is smaller by convexity. For the alternating regime the bias changes sign between half-periods, but the divergence of each bit does not, because D ( 1 2 − δ ∥ 1 2 ) = D ( 1 2 + δ ∥ 1 2 ) . Converting the effect sizes with this formula puts all detectors and mechanisms on one axis (Table 16 and Figure 10). Because the conversion squares δ , the relative uncertainty of each entry is about twice that of the corresponding effect size.
Table 16. Divergence from H 0 accumulated over the episode, L D ( 1 2 + δ ∥ 1 2 ) in nats, at the effect size that gives 80% power (from the unrounded values behind Table 15). The ideal test of Equation (20) needs 3.9 nats. “—”: not reached on the grid or detector not defined. Persistence gives values within 15% of those for bias and is omitted.
Table 16. Divergence from H 0 accumulated over the episode, L D ( 1 2 + δ ∥ 1 2 ) in nats, at the effect size that gives 80% power (from the unrounded values behind Table 15). The ideal test of Equation (20) needs 3.9 nats. “—”: not reached on the grid or detector not defined. Persistence gives values within 15% of those for bias and is omitted.
Mechanism L oracle z global battery oracle scan scan battery pairs
bias 2k — — 14 16 26
16k 75 123 14 16 70
64k 19 31 13 16 83
N 4.3 7.0 15 16 73
agreement 2k — — 13 16 26
16k 79 124 14 17 62
64k 20 32 14 17 55
N 4.3 7.1 14 16 56
long memory 2k — — 13 16 33
16k 75 122 14 17 117
64k 19 30 14 16 116
N 4.3 7.0 14 17 123
alternating regime 2k — — — 122 35
16k — 1,015 — 409 120
64k — 994 — 924 201
N — 1,059 — 1,725 171
Three results follow.
  • A test that knows everything needs about 4 nats. For whole-record departures the oracle z test is the ideal test of Equation (20), which needs 3.92 nats; the table gives 4.3, and this difference, like the 5–14% excess of the oracle z test at the shorter lengths (exact values 3.92 N / L ), indicates the accuracy of the table: its entries are interpolated on a grid of δ whose steps multiply the divergence by about two, from 200 replicates per cell. The global battery, which does not know the kind, needs 7.
  • Searching costs about ten nats, at every scale. The oracle scans need 13–15 nats and the scan battery 15–17, whatever the length of the episode. A simple argument predicts these values. If a scan examines n windows and detects through the one that best matches the episode, 80% power needs about 1 2 ( t + z 0.8 ) 2 nats, with the Bonferroni threshold t = Φ − 1 ( 1 − 0.025 / n ) . The design of Section 9 has n = 2 , 273 windows, including the whole record, for an oracle scan and 9 n for the battery; this gives t = 4.24 and 4.71 , and predicts 12.9 and 15.4 nats. With the empirical thresholds of the scans (4.17 and 4.68), which are lower than the Bonferroni values because the windows overlap, the prediction becomes 12.4–12.6 and 15.2 nats; the observed values exceed it by 1–15%, which is the cost of imperfect alignment between the episode and the windows. Since t 2 ≈ 2 ln n for large n, the cost of not knowing where the departure is, and of which kind, grows only logarithmically with the number of hypotheses examined.
  • pairsneeds 25–125 nats for the signed mechanisms, between 1.6 and 7.4 times as much as the scan battery. The ratio is smallest for short episodes, where the peak endpoint acts like a scan at a single scale, and largest for long memory. For the alternating regime the order is reversed: pairs needs 35–200 nats and the scan battery 120–1,700, between 3.4 and 10 times as much, because signed indicators average the alternating bias away while the divergence of every half-period remains.

9.4. Where the Cost Comes From

The comparison locates the cost of the present design. Three of its choices give up power against simple departures. First, the features are magnitudes, insensitive to the sign of an effect; this is what lets them respond to departures of either sign and to structures that cancel, but it makes the per-window signal of a weak effect quadratic in δ (Section 5.4), whereas a signed sum responds linearly. Second, the burden turns each window into exceedance indicators at fixed thresholds, which discards part of the information in the window values. Third, the window length is fixed at 1,000 bits, so the peak endpoint is matched to episodes of about that length, and the burden accumulates evidence only through overlapping windows of that length; the scans, by contrast, examine nine dyadic scales. The N law of Equation (19) is a consequence of these choices, not a limit for every detector that searches all positions.
What pairs obtains in exchange is a single calibrated p-value per record that responds to a broad set of structures, including departures that signed statistics miss, and that indicates which structural class drove a detection (Table 17). For the departures that the indicators target directly, however, users who need the highest sensitivity should complement pairs with a multiscale scan of those indicators, and a future version of the test should include such a scan as a further endpoint (Section 10).

10. Discussion

10.1. What Is Established

Three statements are supported by preregistered evidence. First, the pairs p-value controls the false-positive rate under the paired null: the rank argument guarantees Pr { p p a i r s ≤ α } ≤ α marginally at every calibrated length (3,600–720,000 bits per stream); for the references actually frozen, all 24 confirmatory admission checks (10 for the burden endpoint, 14 for the combined p-value, at lengths from 12,000 to 720,000 bits) showed rates below the tolerances, the realized rates were close to nominal (4.30–5.14% at the 5% level), and the descriptive curves stay within binomial noise of the nominal rate down to 3,600 bits. Second, for the burden endpoint the calibration depends on the null model, not on the generator or on the implementation: cohorts produced with two different generators and scored by independent implementations agree. Third, the sensitivity of the test to six perturbation mechanisms has been mapped over two orders of magnitude in record length and three in episode length. The map shows three regimes, each with a simple scaling law that follows from the geometry of the windows. A fourth, exploratory result qualifies the third: on identical records, simpler detectors aimed at the same structures are more powerful than pairs against the departures they target (Section 9).

10.2. Why Two Endpoints

The burden and the peak answer different questions: how many windows are unusual? and how unusual is the most unusual window? Neither is better in general. The burden accumulates evidence and wins for long, faint departures, while the peak wins for short, intense ones. Because the two are only weakly dependent under the null, combining them with a Bonferroni bound costs little. Other combinations, such as a rank-based minimum or a weighted sum, could be calibrated in the same way, but the gain would be small.

10.3. Limitations

  • Selected alternatives. The six features are a deliberately chosen family, not a complete description of all departures. Departures at lags other than those listed, periodic structures not aligned with the window, and dependence carried by parities of order three or more may go undetected. The atlas covers only single centred episodes, perturbations of one stream by one mechanism at a time (no combinations), lags equal to those the features examine, an alternating regime whose half-period (500 bits) is matched to the window, and no departures towards excessive regularity, which would act on the lower tails that account for half of the burden components. Episodes at random positions were examined only in the comparison of Section 9; episodes at the edges of the record, several episodes, effects of opposite signs and unexamined lags remain to be studied. The power estimates rest on 100 replicates per cell and on interpolation between coarse grid values of δ ; the finer grid of Section 9 gives smaller effect sizes for whole-record departures (for example 0.011 instead of 0.015 for bias at N = 288 , 000 ), so the values of Table 13 should mostly be read as upper bounds (agreement is the exception: 0.0099 on the finer grid against 0.009 in the table).
  • A blind spot, stated exactly. The features measure parities of order one and two (Section 3.2), so a dependence carried only by higher-order parities does not shift any of them. The simplest example is Y i = X i ⊕ X i − 1 with X satisfying H 0 , a fault that resembles an error of differential encoding in hardware. Then Y is a deterministic function of X, and I ( X ; Y ) = N − 1 bits, one bit short of the maximum. Yet every parity stream that the features use is a sequence of independent fair bits, so every component has exactly its null distribution, and D2, which uses a single stream, is exactly null (Appendix A). The whole dependence sits in the order-three parity X i ⊕ X i − 1 ⊕ Y i , which is 0 for every i. Features that combine two components are not exactly null, because their components become dependent although they remain uncorrelated, but the effect is small: in 200,000 simulated windows of 1,000 bits, D1 and D3–D6 exceeded their null 0.90 and 0.99 quantiles with frequencies 0.098–0.100 and 0.0094–0.0101. pairs is therefore not designed to detect this departure; its rejection rate against the frozen references remains to be measured.
  • Fixed design parameters. The window length, stride, lags and thresholds were set in the exploratory stage of the work and then frozen; they were not optimized. Section 8.4 indicates how the window length should be chosen for new applications.
  • Range of lengths. Calibration covers 3,600 to 720,000 bits. Longer records require longer null masters, which is a computational rather than a methodological change.
  • Robust scales. The 110-member robust scales add noise of about ± 13 % to the standardized components. This costs some power but not validity. Standardization based on the scaling law would provide a smooth alternative.
  • Null model and interpretation.pairs tests a joint null: balanced marginals, independence in time and independence between the streams. A small p-value shows that this joint model fails; it does not by itself show that the streams are coupled, and it does not identify the origin of the departure. A p-value is not a measure of the size of a departure, and a large one does not certify randomness, let alone cryptographic security [2]. Real devices are not ideal, so in applied studies the comparison should be made between conditions recorded with the same devices, for example events and matched control periods, and not between a device and the ideal null.
  • Choice of length. That any length can be scored does not license choosing, after seeing the data, the length or the segment that gives the smallest p-value. Lengths and windows of analysis must be fixed in advance, or the search must be included in the calibration.
  • Set-level use. The p-value is calibrated in its lower tail, but for short records it is coarse and not uniform above the tail. Analyses of sets of records should count alerts at fixed levels rather than test the uniformity of the p-values, and they must take into account that records scored with the same reference share its conditional false-positive rate (Section 8.3).
  • Internal verification. The verifications reported here were carried out within the development programme. Independent review of the code and of the calibration files is welcome, and the public generator makes it straightforward.

10.4. Outlook

Several extensions suggest themselves. A version with windows defined in seconds, or with a small family of window lengths combined in the same way as the two endpoints, would match the test to the time scale of the departures sought. Standardization based on the scaling law would remove the noise of the robust scales. Calibrating the combined statistic directly would make the p-value uniform under the null, which would allow tests of uniformity on sets of short records: if every member of the pooled set formed by the record and the references is ranked within that set, the minimum of its endpoint p-values is exchangeable across members, and the rank of the record’s minimum is an exact Monte Carlo p-value, uniform on its grid when ties are broken at random (Appendix A). The comparison of Section 9 points to the most promising change: adding a signed multiscale scan of the targeted indicators as a further endpoint, combined with the other two in this exact way. It would recover most of the power that the present design gives up (a search cost of about ten nats instead of 25–125; Section 9.3), while the magnitude-based features would keep their sensitivity to departures that cancel in signed sums. The comparison itself should be extended with information-theoretic baselines, namely a windowed plug-in mutual-information test and the transfer-entropy likelihood-ratio test [45] at the lags of the atlas, calibrated by the same ranks, and with a standard battery applied to X, Y and X ⊕ Y . The atlas should include two independent persistent streams, to measure how often D4 attributes memory to coupling (Equation (14)), and the departure Y i = X i ⊕ X i − 1 as a documented negative result. A version of D4 that conditions on the past of the target, as transfer entropy does, would remove the attribution problem. Finally, because pairs reports which feature drives each result, scoring many sources (pseudorandom generators, physical noise sources, quantum generators, deliberately structured signals) would build a reference collection of structural signatures that relates types of source to their typical departures. The package already exports results in a common format for this purpose, and we invite other groups to contribute pairs from their own generators.

11. Conclusions

pairs turns the problem of testing two streams of bits that should behave like independent fair coins into a single calibrated p-value per record. Its six structural features are classical information statistics: each tests whether a few parities of the bits are balanced, and its square is, to second order, twice the number of terms in a window times an entropy deficit, a mutual information or a Jensen–Shannon divergence. These quantities are terms of an exact decomposition of a record’s divergence from the null, which also states precisely what the test cannot see. Rank calibration controls the false-alarm rate in finite samples: one calibration campaign covers all lengths from 3,600 to 720,000 bits per stream, preregistered checks with fresh null pairs confirmed it from 12,000 bits upwards, and cohorts produced with different generators and implementations gave equivalent rates.
What pairs can detect follows simple laws. Short episodes are detected when their intensity times their length exceeds a threshold, long weak departures when their accumulated information deficit exceeds a threshold that grows as the square root of the record length, and in between a fixed intensity per window is needed. Generality has a price, which can be stated in nats: a test aimed at a single known departure needs about 4 nats of accumulated divergence and a multiscale scan of signed counts about 16, whereas pairs needs 25–125. For departures that cancel in signed counts the order is reversed, and the scan needs 3 to 10 times more information than pairs.
pairs is therefore preferable when the kind of departure is not known in advance, when departures may cancel in signed counts, and when a single calibrated number per record is needed; otherwise it should be complemented by targeted tests. In applications, the window should be about as long as the episodes one expects, the record should not be much longer than the period in which a departure is plausible, and sets of records should be compared with matched controls scored with the same references. pairs is open, fast and fully reproducible. It is intended both as a tool for applied studies, including the analysis of random event generators that motivated it, and as a reference against which other tests for paired binary data can be compared.

Author Contributions

Conceptualization, J.F.U., V.B., W.J., V.A.J. and R.D.N.; methodology, J.F.U.; software, J.F.U.; validation, J.F.U., E.M. and A.G.; formal analysis, J.F.U. and V.B.; investigation, J.F.U.; data curation, J.F.U.; writing—original draft preparation, J.F.U.; writing—review and editing, all authors; visualization, J.F.U.; supervision, R.D.N.; project administration, J.F.U. V.B. contributed the information-theoretic foundation (Section 3.2, Section 4.8, Section 5.4, Section 9.3 and Appendix A). W.J. proposed the use of paired REGs and the emphasis on fully automated analysis. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Metta Hospice Foundation, with additional support from the researchers involved and from individuals, notably a donation from Dr Edi Bilimoria.

Data Availability Statement

The pairs source code at the version evaluated here (0.2.3), the generator specification, the preregistrations with their full SHA-256 hashes (Appendix F), the frozen references, the per-replicate outputs of the calibration campaigns, the sensitivity atlas and the comparison of Section 9, and the scripts that produce every table and figure are archived in Zenodo, https://doi.org/10.5281/zenodo.24141349; until publication they are available to reviewers through a private link. All null realizations can be regenerated from the public roots listed in Appendix F.

Acknowledgments

The authors wish to honour the memory of Brenda Dunne and Peter Fenwick, members and mentors of our research team and founding advisers of the Galileo Commission, and their enduring scientific legacy.

Conflicts of Interest

W.J. is the inventor named in the patent application on identifying synchronicity ranges of two time series of random numbers cited in Section 2 [12], which was filed by Wyrd Experience Ltd. He holds a minority shareholding, received in connection with this patent, in Wyrd Technology, a company majority-owned by Wyrd Experience Ltd, and he works as an independent contractor for Wyrd Research, a non-profit association. These organizations had no role in the design of the study, in the analyses, in the writing of the manuscript or in the decision to publish the results. The other authors declare no conflicts of interest.

Use of Artificial Intelligence

During the preparation of this work the authors used Claude (Anthropic) to draft and edit text and derivations, to write and check code, and to run the verification simulations and exact enumerations reported here. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Abbreviations

    The following abbreviations are used in this manuscript:
ApEn approximate entropy
CUSUM cumulative sum (procedure)
FIPS Federal Information Processing Standard
GCP Global Consciousness Project
JS Jensen–Shannon (divergence)
KL Kullback–Leibler (divergence)
MAD median absolute deviation
MI mutual information
NIST National Institute of Standards and Technology
PAIRS Paired-stream Anomaly Index with Rank-calibrated Scores
REG random event generator
SHAKE256 extendable-output function of the SHA-3 standard
SP Special Publication (NIST)
TC total correlation
TE transfer entropy
TOST two one-sided tests (equivalence procedure)
VIF variance inflation factor

A. Information-Theoretic Derivations

This appendix proves the statements of Section 3.2, Section 4.8, Section 5.4 and Section 10.3. Logarithms are natural (nats) unless bits are stated; h ( p ) = − p ln p − ( 1 − p ) ln ( 1 − p ) . Signs are s i = ( − 1 ) X i and t i = ( − 1 ) Y i ; the paper’s a i = 2 X i − 1 and b i = 2 Y i − 1 satisfy a i = − s i and b i = − t i . Products of two signs are the same in both notations, and every feature is a magnitude, so the sign convention never matters. Exclusive or becomes multiplication: ( − 1 ) A ⊕ B = ( − 1 ) A ( − 1 ) B .

A.1. The Partition

By definition I ( X ; Y ) = H ( X ) + H ( Y ) − H ( X , Y ) , so 2 N − H ( X , Y ) = [ N − H ( X ) ] + [ N − H ( Y ) ] + I ( X ; Y ) . By definition TC ( X ) = ∑ i H ( X i ) − H ( X ) , so N − H ( X ) = ∑ i [ 1 − H ( X i ) ] + TC ( X ) , and likewise for Y; this gives Equation (2). The left side is the divergence from the uniform law on 2 N bits, ∑ x P ( x ) log 2 [ P ( x ) / 2 − 2 N ] = 2 N − H ( P ) . Each term on the right is non-negative: a bit has entropy at most one bit, TC ≥ 0 by subadditivity of entropy, and I ≥ 0 . Under H 0 every bit is fair and all bits are independent, so all terms vanish. By the chain rule, TC ( X ) = ∑ i ≥ 2 I ( X i ; X 1 , … , X i − 1 ) , and I ( X i ; X i − l ) ≤ I ( X i ; X 1 , … , X i − 1 ) because adding variables cannot decrease mutual information; this is the bound quoted for D6 in Table 5. For the drift reading, let J be uniform on the positions of a window, H ∈ { 1 , 2 } the half containing J, and P 1 , P 2 the bit laws of the halves. Then I ( X J ; H ) = H ( 1 2 P 1 + 1 2 P 2 ) − 1 2 H ( P 1 ) − 1 2 H ( P 2 ) , the Jensen–Shannon divergence with equal weights [39].

A.2. Parities and Parseval’s Identity

Lemma 1.
If σ 1 , … , σ n are independent fair signs and σ S = ∏ j ∈ S σ j , then E [ σ S ] = 1 [ S = ∅ ] and E [ σ S σ T ] = 1 [ S = T ] .
Proof. 
For S ≠ ∅ , independence gives E [ σ S ] = ∏ j ∈ S E [ σ j ] = 0 . Since σ j 2 = 1 , σ S σ T = σ S ▵ T , whose mean is 1 exactly when the symmetric difference is empty.    □
Under the uniform law U on { 0 , 1 } n the parities are therefore orthonormal, and the 2 n of them form a basis. For a law P, the function f = P / U has coefficients E U [ f χ S ] = ∑ x P ( x ) χ S ( x ) = c S , with c ∅ = 1 , and Parseval’s identity gives E U [ f 2 ] = ∑ S c S 2 . Hence χ 2 ( P ∥ U ) = E U [ ( f − 1 ) 2 ] = ∑ S ≠ ∅ c S 2 , and P = U if and only if every c S with S ≠ ∅ vanishes. For the divergence, write g = f − 1 , so that E U [ g ] = 0 and E U [ g 2 ] = χ 2 , and φ ( g ) = ( 1 + g ) ln ( 1 + g ) = g + 1 2 g 2 − g 3 / { 6 ( 1 + ξ ) 2 } for some ξ between 0 and g. With γ = max | g | < 1 , | g | 3 ≤ γ g 2 and ( 1 + ξ ) 2 ≥ ( 1 − γ ) 2 , so D ( P ∥ U ) = E U [ φ ( g ) ] differs from 1 2 χ 2 by at most γ χ 2 / { 6 ( 1 − γ ) 2 } , which is Equation (3). By the Cauchy–Schwarz inequality the total-variation distance also satisfies 1 2 E U | g | ≤ 1 2 ( ∑ S ≠ ∅ c S 2 ) 1 / 2 , so a law whose parities are all nearly unbiased is close to uniform.

A.3. One-Parity Statistics

Let m values z k ∈ { ± 1 } of a parity contain k values + 1 , with p ^ = k / m = 1 2 + ε and C = m − 1 / 2 ∑ z k . (i) C 2 = ( 2 k − m ) 2 / m , which is Pearson’s statistic ∑ ( O − E ) 2 / E with expected counts m / 2 . (ii) The log-likelihood ratio of p ^ against 1 2 is k ln ( 2 p ^ ) + ( m − k ) ln ( 2 ( 1 − p ^ ) ) = m D ( p ^ ∥ 1 2 ) , so G 2 = 2 m D ( p ^ ∥ 1 2 ) . (iii) With x = 2 ε , D ( 1 2 + ε ∥ 1 2 ) = 1 2 [ ( 1 + x ) ln ( 1 + x ) + ( 1 − x ) ln ( 1 − x ) ] = 1 2 x 2 + 1 12 x 4 + O ( x 6 ) = 2 ε 2 + 4 3 ε 4 + O ( ε 6 ) ; since C 2 = 4 m ε 2 , G 2 − C 2 = 8 3 m ε 4 + O ( m ε 6 ) , which is O p ( m − 1 ) under H 0 , where ε = O p ( m − 1 / 2 ) . In terms of the bias c = 2 ε , a parity carries c 2 / 2 + c 4 / 12 + O ( c 6 ) nats per term.
For two bits ( U , V ) whose empirical margins in the window are both exactly 1 2 , the margins force P ^ 00 = P ^ 11 = p ^ / 2 and P ^ 01 = P ^ 10 = ( 1 − p ^ ) / 2 , where p ^ is the agreement rate. Then H ^ ( U , V ) = h ( p ^ ) + ln 2 and I ^ ( U ; V ) = ln 2 − h ( p ^ ) = D ( p ^ ∥ 1 2 ) . For any contingency table with n observations, observed counts n P ^ u v and expected counts n P ^ u · P ^ · v , the G statistic is 2 n ∑ P ^ u v ln [ P ^ u v / ( P ^ u · P ^ · v ) ] = 2 n I ^ . Applied to the table (half of the window) × (bit), with n = W , this gives the D5 entry of Table 5; the squared D5 component equals W ( p ^ 2 − p ^ 1 ) 2 , which is the two-sample Pearson statistic multiplied by 4 p ¯ ( 1 − p ¯ ) , where p ¯ is the proportion of ones in the window. Finally, the approximate entropy of order one is Φ 1 − Φ 2 = H ^ 2 − H ^ 1 = H ^ ( X i ∣ X i − 1 ) , and ln 2 − H ^ ( X i ∣ X i − 1 ) = [ ln 2 − H ^ ( X i ) ] + I ^ ( X i ; X i − 1 ) up to boundary terms of order 1 / W ; the corresponding statistic 2 n [ ln 2 − ApEn ( 1 ) ] of SP 800-22 [2] is asymptotically χ 2 2 [44].

A.4. The Components Under the Null

Each term u i − l v i of a lagged sum Γ ( u , v , l ) with l ≥ 1 , or with l = 0 and u ≠ v , is a product of distinct fair signs, so by Lemma 1 it has mean zero, and E [ Γ 2 ] = ( W − l ) − 1 ∑ i , j E [ u i − l v i u j − l v j ] = 1 because a term is non-zero only when the two index sets coincide, that is i = j . The same argument shows that the components within one feature are uncorrelated: Γ ( a , b , l ) and Γ ( b , a , l ) would need i − l = j and i = j − l , hence l = 0 ; two lags l ≠ l ′ would need { i − l , i } = { j − l ′ , j } , which is impossible; and the D1 and D5 components of one stream have covariance W − 1 ∑ i h i = 0 .

A.5. Information and Power

Proof of Proposition 2. Means. E [ C j ] = m j − 1 / 2 ∑ k E [ z j k ] = m j c ¯ j → h j by (A1).
Finitely dependent bits. Fix u ≠ 0 and write S W = ∑ j u j ( C j − E C j ) = ∑ i ξ W , i , where ξ W , i collects the centred terms whose newest bit is i. Each term involves bits at most 125 positions apart, so { ξ W , i } i is an ( r + 125 ) -dependent triangular array, with | ξ W , i | ≤ 2 ∑ j | u j | m j − 1 / 2 = O ( W − 1 / 2 ) and ∑ i Var ξ W , i = O ( 1 ) . By (A3), Var S W → ∥ u ∥ 2 > 0 . Since max i | ξ W , i | → 0 , the Lindeberg condition holds, and Orey’s theorem for m-dependent triangular arrays [48] gives S W ⇒ N ( 0 , ∥ u ∥ 2 ) .
Sequential copying. Write Y i = R i Y i − g + ( 1 − R i ) Y i ∘ , with independent replacement indicators R i ∼ Bernoulli ( 2 δ ) and independent fair original bits Y i ∘ . Define Y ˜ i = Y i unless R i = R i − g = R i − 2 g = 1 , in which case Y ˜ i = Y i ∘ . Then Y ˜ i is a function of ( R , Y ∘ ) at positions i, i − g and i − 2 g only, so Y ˜ is 2 g -dependent, and Pr ( Y ˜ i ≠ Y i ) ≤ ( 2 δ ) 3 . Let C ˜ j be C j computed with Y ˜ . Each z j k involves at most two bits of Y, so d k = z j k − z ˜ j k ∈ { 0 , ± 2 } with Pr ( d k ≠ 0 ) ≤ 2 ( 2 δ ) 3 , and by the Cauchy–Schwarz inequality
E C j − C ˜ j 2 = 1 m j E ∑ k d k 2 ≤ ∑ k E [ d k 2 ] ≤ 8 m j ( 2 δ ) 3 = O ( W − 1 / 2 ) .
Hence S W − S ˜ W → 0 in L 2 ; the means and variances of S W and S ˜ W have the same limits, the previous step applies to S ˜ W , and S W ⇒ N ( 0 , ∥ u ∥ 2 ) .
Limit law. By the Cramér–Wold device, ( C 1 , … , C m f ) converges to a normal vector with mean h and identity covariance, and by continuous mapping D f 2 = ∑ j C j 2 converges to a noncentral χ m f 2 variable with noncentrality ∑ j h j 2 .
Information. The function c ↦ D ( 1 + c 2 ∥ 1 2 ) = 1 2 c 2 + 1 12 c 4 + O ( c 6 ) is convex. By Jensen’s inequality over k, ∑ k D ( 1 + E [ z j k ] 2 ∥ 1 2 ) ≥ m j D ( 1 + c ¯ j 2 ∥ 1 2 ) = 1 2 m j c ¯ j 2 + O ( m j c ¯ j 4 ) = 1 2 h j 2 + o ( 1 ) , with equality when the bias is constant in k. Summing over j gives λ f ≤ 2 I f + o ( 1 ) . □
The ideal test. With Pr ( X i = 1 ) = 1 2 + δ over L bits, z = L − 1 / 2 ∑ i a i has mean 2 δ L and variance 1 − 4 δ 2 ≈ 1 . Neglecting the opposite tail, the power of the two-sided test at level 0.05 is Φ ( 2 δ L − z 0.975 ) , which equals 0.8 when 2 δ L = z 0.975 + z 0.8 = 2.8016 , that is 2 δ 2 L = 3.924 nats (Equation (20)).
Variance of a cross-lag sum. If X ⊥ Y , E [ a i ] = E [ b i ] = 0 and the streams are stationary with autocorrelations ρ X and ρ Y , then E [ a i − l b i a j − l b j ] = ρ X ( i − j ) ρ Y ( i − j ) . With m = W − l there are m ordered pairs with i = j and 2 ( m − k ) with | i − j | = k , which gives Equation (14). For a stationary chain with Pr ( s i = s i − 1 ) = 1 2 + δ , E [ s i ∣ s i − 1 ] = 2 δ s i − 1 , so ρ ( k ) = ( 2 δ ) k , and for two such streams the excess variance tends to 2 ∑ k ≥ 1 ( 4 δ 2 ) k = 8 δ 2 / ( 1 − 4 δ 2 ) .

A.6. The Blind Spot Y i = X i ⊕ X i − 1

Lemma 2.
Let s 0 , s 1 , … be independent fair signs and z k = ∏ j ∈ S k s j , with n k = max S k strictly increasing in k. Then z 1 , z 2 , … are independent fair signs.
Proof. 
Write z k = s n k r k , where r k is the product over S k ∖ { n k } . Every index in z 1 , … , z k − 1 and in r k is smaller than n k , so s n k is independent of them and Pr ( z k = + 1 ∣ z 1 , … , z k − 1 ) = 1 2 .    □
Let X satisfy H 0 , with X 0 the bit before the record, and Y i = X i ⊕ X i − 1 , so that t i = s i s i − 1 . Substituting and using s j 2 = 1 , the parity streams used by the features are (up to sign): s i and s i s i − 1 (D1, D5); s i − 1 (D2); s i − 1 s i and s i s i − 2 (D3); s i and s i − 4 s i − 1 s i for a i − l b i , and s i − l s i − l − 1 s i for b i − l a i (D4); s i − l s i and s i s i − 1 s i − l s i − l − 1 (D6). In each stream the newest index increases by one from term to term, so by Lemma 2 each is a sequence of independent fair signs, and every component, a function of one such stream, has exactly its null distribution at every window length. The departure sits in the order-three parity: a i a i − 1 b i = − s i s i − 1 s i s i − 1 = − 1 for every i. By Lemma 2 applied to t i , Y alone consists of N fair bits, so H ( Y ) = N ; given X 1 , … , X N only Y 1 = X 1 ⊕ X 0 is uncertain, so H ( Y ∣ X ) = 1 and I ( X ; Y ) = N − 1 bits. An exhaustive enumeration of all 2 14 sequences X 0 , … , X 13 confirms that every stream above at lags 1, 2 and 4 takes each of its possible values equally often.
Features that combine two components are not exactly null. For D3, with u i = s i s i − 1 , the two components are Γ X = ( W − 1 ) − 1 / 2 ∑ i u i and Γ Y = ( W − 1 ) − 1 / 2 ∑ i u i u i − 1 . The u i are independent fair signs, and E [ u i u j u k u k − 1 ] = 1 exactly when { i , j } = { k , k − 1 } , so E [ Γ X 2 Γ Y ] = 2 ( W − 2 ) / ( W − 1 ) 3 / 2 ≈ 0.063 at W = 1000 , whereas the same moment is zero under H 0 . This third moment does not, however, affect the law of D3: D 3 2 = Γ X 2 + Γ Y 2 contains only even powers of each component, and, being bounded, its law is determined by its moments, none of which involves an odd power. What does change is the mixed fourth moment. Counting index sets in the same way (beyond the null term, only the terms with | k − l | = 1 and { i , j } = { k , k − 1 } ▵ { l , l − 1 } contribute), E [ Γ X 2 Γ Y 2 ] = 1 + 4 ( W − 3 ) / ( W − 1 ) 2 ≈ 1.0040 , against 1 under H 0 . Since each component has exactly its null law, Var ( D 3 2 ) exceeds its null value by 2 × 0.0040 , about 0.2%: an effect of order 1 / W . Both moment formulas were confirmed by exhaustive enumeration for W = 6 , 8, 10 and 12. The effect on the features is small (Section 10.3): we simulated 2 × 10 5 independent windows of W = 1000 bits under H 0 and under this departure, computed D1–D6 by Equation (6), and found exceedance frequencies of the null 0.90 and 0.99 quantiles of 0.098–0.100 and 0.0094–0.0101 for D1 and D3–D6.

A.7. An Exact Combination of Endpoints

Pool the record Z 0 with the reference realizations Z 1 , … , Z C , exchangeable under H 0 . For each member r and endpoint e, let p e ( r ) = # { q : T e ( Z q ) ≥ T e ( Z r ) } / ( C + 1 ) , computed within the pooled set, and M r = min e p e ( r ) . Each p e ( r ) depends only on Z r and on the unordered pooled set, so permuting the members permutes the M r in the same way, and exchangeability of the Z r implies exchangeability of the M r . Proposition 1 applied to − M shows that p * = # { r : M r ≤ M 0 } / ( C + 1 ) satisfies Pr { p * ≤ α } ≤ α , and with ties broken at random p * is uniform on { 1 / ( C + 1 ) , … , 1 } . Each reference member must be ranked within the full pooled set, including the record; ranking against a fixed set that excludes the record breaks the argument.

B. Sensitivity Atlas: Detailed Results

This appendix collects the detailed results of the sensitivity atlas summarized in Section 8.
Target quantities. For bit position i the mechanisms of Table 12 raise the following quantities, each of which is zero under H 0 :
θ 1 = Pr ( Y i = 1 ) − 1 2 , θ 2 = Pr ( Y i = X i ) − 1 2 , θ 3 = Pr ( Y i = Y i − 1 ) − 1 2 , θ 4 = Pr ( Y i = X i − 1 ) − 1 2 , θ 6 = Pr ( Y i = Y i − 125 ) − 1 2 ,
The alternating-regime mechanism has no single target of this kind. The bias mechanism also raises the uncentred lagged products used by D3, D4 and D6 at order δ 2 , and the alternating regime is a local bias of order δ within each half-period.
Which feature drives a detection. For single mechanisms at the effect sizes that matter in practice, the cross-effects are small: the component that attains T B belongs to the targeted feature in 98–100% of detections, and the peak points to it in 60–87% (Table 17). The attribution is therefore informative about which structural class is present, but it describes the test’s response; it is not a test of which mechanism produced the data, and combined or unexamined mechanisms could share the same signature.
Table 17. Which feature drives a detection. Departure over the whole record, N = 36 , 000 , δ at the 80%-power value of Table 13, 400 records per mechanism (exploratory). Share of the detected records ( p p a i r s ≤ 0.05 ) in which each feature owns the component that attains T B (burden) or T P (peak); shares below 0.03 are omitted.
Table 17. Which feature drives a detection. Departure over the whole record, N = 36 , 000 , δ at the 80%-power value of Table 13, 400 records per mechanism (exploratory). Share of the detected records ( p p a i r s ≤ 0.05 ) in which each feature owns the component that attains T B (burden) or T P (peak); shares below 0.03 are omitted.
Mechanism δ power dominant feature: burden T B / peak T P
bias 0.023 0.93 D1 1.00 / D1 0.74, D4 0.08, D2, D3, D5, D6 0.05 each
agreement 0.017 0.83 D2 0.99 / D2 0.72, D4 0.09, D5 0.07, D6 0.06, D1 0.03
persistence 0.019 0.82 D3 0.99 / D3 0.60, D4 0.12, D5 0.10, D2 0.07, D6 0.06, D1 0.05
lagged coupling 0.022 0.91 D4 1.00 / D4 0.81, D2 0.06, D5 0.05, D6 0.04
alternating regime 0.033 0.91 D5 0.98 / D5 0.87, D4 0.07
long memory 0.027 0.84 D6 0.99 / D6 0.65, D4 0.10, D5 0.10, D1 0.06, D3 0.05, D2 0.04
Figure 11. Effect size needed for 80% power (level 0.05) as a function of episode length, for five record lengths. Dashed guides: slope − 1 ( δ L constant) and slope − 1 2 ( δ 2 L constant). Dotted line: window length W. Values are interpolated between grid points of δ and inherit its resolution.
Figure 11. Effect size needed for 80% power (level 0.05) as a function of episode length, for five record lengths. Dashed guides: slope − 1 ( δ L constant) and slope − 1 2 ( δ 2 L constant). Dotted line: window length W. Values are interpolated between grid points of δ and inherit its resolution.
Preprints 245925 g011
Figure 12. Effect size for 80% power at N = 288 , 000 for the burden endpoint alone (blue), the peak endpoint alone (orange) and the combined pairs p-value (dashed).
Figure 12. Effect size for 80% power at N = 288 , 000 for the burden endpoint alone (blue), the peak endpoint alone (orange) and the combined pairs p-value (dashed).
Preprints 245925 g012
Figure 13. Idealized illustration of the window prescription (non-overlapping windows, Gaussian window statistics, N = 288 , 000 , bias δ in an episode of L bits). (a) The peak statistic is most powerful when W is close to L (dotted lines). (b) The burden statistic prefers windows with a modest per-window signal and loses power when W approaches L, except for whole-record departures.
Figure 13. Idealized illustration of the window prescription (non-overlapping windows, Gaussian window statistics, N = 288 , 000 , bias δ in an episode of L bits). (a) The peak statistic is most powerful when W is close to L (dotted lines). (b) The burden statistic prefers windows with a modest per-window signal and loses power when W approaches L, except for whole-record departures.
Preprints 245925 g013

C. Development History and Cross-Implementation Checks

pairs was developed within the DeepREG programme in several exploratory steps, all written in the Wolfram Language before the open implementation described here.
A first scorer computed three proportions per window (the ones in each stream and the rate of agreement), combined them into a local Mahalanobis-type distance, and applied false-discovery control [25] with rules on runs of flagged windows. Its sensitivity was studied by inserting one altered episode of 100–2,000 bits into a 200,000-bit record, and those studies found that the effect size needed for detection fell roughly as the inverse of the episode length. This is the sub-window regime of Section 8.2. An exploratory rerun of the same scenarios with pairs gave comparable power through the peak endpoint (83% at δ = 0.085 and L = 1 , 200 , level 0.05), whereas the burden endpoint alone had no power there, since the episodes covered less than 2.5% of the record.
A second prototype introduced the six structural features, the placement within a null support, the 24-component burden, the robust standardization and the rank calibration of the maximum, that is, the burden endpoint of pairs. It was calibrated for a few lengths with Mersenne-Twister null realizations, and its reference ( C = 999 ) is the one used for the cohorts of Table 9. An earlier attempt with a final reference of only C = 110 failed one admission check out of four; according to Table 6, this happens with probability of order 0.1 even for a correctly built reference of that size, and it led to the use of larger references.
The open implementation reproduces the burden computation of the second prototype exactly (Table 18). Exact agreement required three numerical details: integer sums are computed exactly before any division; the squares in D4 and D6 are accumulated with compensated (Neumaier) summation [54], as in the reference calculation (and as in the built-in summation of CPython since version 3.12), because naive accumulation differs in the last unit for about a tenth of the D4 values; and D3 and D5 use the hypot function. The open implementation then recalibrated every length with C = 9 , 999 and added the peak endpoint.
Table 18. Cross-implementation checks. “Identical” means equal IEEE-754 binary64 bit patterns for every compared value.
Table 18. Cross-implementation checks. “Identical” means equal IEEE-754 binary64 bit patterns for every compared value.
Comparison Result
D1–D6 window profiles of prototype null masters (three masters, ten lengths 72k–720k) identical
Burden vectors of prototype members (two members, ten lengths) identical
Prototype robust-standardization constants (twenty sets), recomputed identical
1,900 null pairs of an independent second implementation, rescored 1,900/1,900 identical burdens, T B and ranks
SHAKE256 generator against the second implementation identical bytes
All of the above on Linux (CPython 3.13) and Windows (CPython 3.12) identical

D. Correspondence of Names

Table 19. Names used in this paper and the labels used in the preregistrations and code of the repository.
Table 19. Names used in this paper and the labels used in the preregistrations and code of the repository.
This paper Internal label
paired null H 0 H0H0
reference support, placement q RQ (reference quantile), RQ110
burden vector K24
robust standardization RS (RS110)
burden statistic T B SC2, T
reference calibration RC (RC110, RC999, RC9999)
peak endpoint Core V0.2 peak layer (RSP, RCP)
burden endpoint Core V0.1
pairs p-value Core V0.2 combined p
campaign C1 CAL-SL-001
campaign C2 CAL-SL-002
sensitivity atlas SENS-SL-001
cohorts 1–3 (Table 9) H0-1900; H0-1900-PRNG; H0-1900-PRNG-SL-001

E. Parameter Register

Table 20. Frozen parameters of pairs.
Table 20. Frozen parameters of pairs.
Parameter Value
window length, stride W = 1000 , S = 200 bits
features D1–D6, Equation (6); lags 1 (D3), 1 and 4 (D4), 2, 4 and 125 (D6)
reference support U = 110 masters; mid-tie placement, Equation (7)
burden thresholds 0.75 and 0.90, upper and lower tails (24 components)
robust standardization median and 1.482602218505602 × MAD over 110 masters, per window count
reference calibration C = 9 , 999 masters per window count; inclusive add-one rank p-value
combination p = min { 1 , 2 min ( p B , p P ) }
calibrated lengths 3 , 600 ≤ N ≤ 720 , 000 bits ( 14 ≤ w ≤ 3596 )
generator SHAKE256 specification H0H0_PY_SHAKE256_V1, 720,000-bit masters

F. Preregistrations

Table 21 lists the preregistered studies with the full SHA-256 hashes of their preregistration files. A hash proves that a file has not changed since the hash was computed; it does not by itself prove when that happened. The files and their hashes will therefore be deposited with a time-stamped, citable archive (Data Availability Statement). The comparison of Section 9 was exploratory and was not preregistered. Disclosures recorded in the preregistrations: engineering dry runs with test identities preceded C1 and C2; the first launch of the atlas aborted while parsing its input, before any record was scored, and was relaunched under a revised preregistration with unchanged design.
Table 21. Preregistered studies. Roots are the SHA-256 of the public phrases.
Table 21. Preregistered studies. Roots are the SHA-256 of the public phrases.
Study Root phrase and preregistration SHA-256
Cohort 3 DeepREG H0-1900-PRNG | standalone scorer line | campaign 001 | root frozen before execution
7602537cfebc29bb8448224ed2b3f56874e7b7ff7b709c5e9c96c2d46867b32f
C1 DeepREG standalone calibration CAL-SL-001 | SHAKE256 RQ110 RS110 RC9999 VAL19000 | root frozen before execution
286757710c76acb580db37d6225bcd156476d48d1dfd2999bd28947c17c3f244
C2 DeepREG standalone calibration CAL-SL-002 | Core V0.2 peak layer | VAL19000 | root frozen before execution
3ac00d6df269ec5b5dca042a6d67d51044f371e3c76a8c40cd6eee93eeec1d4a
Atlas DeepREG sensitivity atlas SENS-SL-001 | H0H1 SHAKE256 | root frozen before execution
bf71d37448adbec0b733485a3cf17f00206b340a78f5882929ab4b9bfcb8214a

References

  1. Lange, C.; Ahrens, A.; Krishnakumar, Y.K.; Engert, D.; Yin, M. Quantifying Randomness in Stochastic Bit Sequences. Sensors 2026, 26, 4825. [Google Scholar] [CrossRef]
  2. Rukhin, A.; et al. 2010. A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications. Technical Report NIST SP 800-22 Rev. 1a. National Institute of Standards and Technology. [Google Scholar] [CrossRef]
  3. L’Ecuyer, P.; Simard, R. TestU01: A C Library for Empirical Testing of Random Number Generators. ACM Trans. Math. Softw. 2007, 33, 22. [Google Scholar] [CrossRef]
  4. Turan, M.S.; Barker, E.; Kelsey, J.; McKay, K.A.; Baish, M.L.; Boyle, M. Recommendation for the Entropy Sources Used for Random Bit Generation. Technical Report SP 800-90B; National Institute of Standards and Technology, 2018. [CrossRef]
  5. Herrero-Collantes, M.; Garcia-Escartin, J.C. Quantum Random Number Generators. Rev. Mod. Phys. 2017, 89, 015004. [Google Scholar] [CrossRef]
  6. Ma, X.; Yuan, X.; Cao, Z.; Qi, B.; Zhang, Z. Quantum Random Number Generation. npj Quantum Inf. 2016, 2, 16021. [Google Scholar] [CrossRef]
  7. L’Ecuyer, P.; Munger, D.; Oreshkin, B.; Simard, R. Random Numbers for Parallel Computers: Requirements and Methods, with Emphasis on GPUs. Math. Comput. Simul. 2017, 135, 3–17. [Google Scholar] [CrossRef]
  8. Jahn, R.G.; Dunne, B.J.; Nelson, R.D.; Dobyns, Y.H.; Bradish, G.J. Correlations of Random Binary Sequences with Pre-Stated Operator Intention: A Review of a 12-Year Program. J. Sci. Explor. 1997, 11, 345–367. [Google Scholar]
  9. Bösch, H.; Steinkamp, F.; Boller, E. Examining Psychokinesis: The Interaction of Human Intention with Random Number Generators—A Meta-Analysis. Psychol. Bull. 2006, 132, 497–523. [Google Scholar] [CrossRef]
  10. Maier, M.A.; Dechamps, M.C.; Pflitsch, M. Intentional Observer Effects on Quantum Randomness: A Bayesian Analysis Reveals Evidence Against Micro-Psychokinesis. Front. Psychol. 2018, 9, 379. [Google Scholar] [CrossRef]
  11. Nelson, R.D.; Bancel, P.A. Effects of Mass Consciousness: Changes in Random Data during Global Events. Explore 2011, 7, 373–383. [Google Scholar] [CrossRef]
  12. Janu, W. Device and Method for Identifying a Synchronicity Range of Two Time Series of Random Numbers, and Use; applicant Wyrd Experience Ltd.; US Patent Application Publication US 2025/0147729 A1, filed 13 November 2022, published 8 May 2025, 2025. [Google Scholar]
  13. Marsaglia, G. The Marsaglia Random Number CDROM including the Diehard Battery of Tests of Randomness; Florida State University, 1995. [Google Scholar]
  14. Brown, R.G.; Eddelbuettel, D.; Bauer, D. Dieharder: A Random Number Test Suite software; Duke University Physics Department, 2004–2020. [Google Scholar]
  15. Pincus, S.M. Approximate Entropy as a Measure of System Complexity. Proc. Natl. Acad. Sci. USA 1991, 88, 2297–2301. [Google Scholar] [CrossRef]
  16. Cover, T.M.; Thomas, J.A. Elements of Information Theory, 2nd ed.; Wiley: Hoboken, NJ, 2006. [Google Scholar] [CrossRef]
  17. Schreiber, T. Measuring Information Transfer. Phys. Rev. Lett. 2000, 85, 461–464. [Google Scholar] [CrossRef]
  18. Grün, S.; Diesmann, M.; Aertsen, A. Unitary Events in Multiple Single-Neuron Spiking Activity: I. Detection and Significance. Neural Comput. 2002, 14, 43–80. [Google Scholar] [CrossRef]
  19. Siegenthaler, T. Decrypting a Class of Stream Ciphers Using Ciphertext Only. IEEE Trans. Comput. 1985, C-34, 81–85. [Google Scholar] [CrossRef]
  20. Pironio, S.; et al. Random Numbers Certified by Bell’s Theorem. Nature 2010, 464, 1021–1024. [Google Scholar] [CrossRef]
  21. Glaz, J.; Naus, J.; Wallenstein, S. Scan Statistics; Springer: New York, 2001. [Google Scholar] [CrossRef]
  22. Kulldorff, M. A Spatial Scan Statistic. Commun. Stat. – Theory Methods 1997, 26, 1481–1496. [Google Scholar] [CrossRef]
  23. Page, E.S. Continuous Inspection Schemes. Biometrika 1954, 41, 100–115. [Google Scholar] [CrossRef]
  24. Walther, G.; Perry, A. Calibrating the Scan Statistic: Finite Sample Performance Versus Asymptotics. J. R. Stat. Soc. Ser. B 2022, 84, 1608–1639. [Google Scholar] [CrossRef]
  25. Benjamini, Y.; Hochberg, Y. Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. J. R. Stat. Soc. Ser. B 1995, 57, 289–300. [Google Scholar] [CrossRef]
  26. Holm, S. A Simple Sequentially Rejective Multiple Test Procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
  27. Westfall, P.H.; Young, S.S. Resampling-Based Multiple Testing: Examples and Methods for P-value Adjustment; Wiley, 1993. [Google Scholar]
  28. Romano, J.P.; Wolf, M. Stepwise Multiple Testing as Formalized Data Snooping. Econometrica 2005, 73, 1237–1282. [Google Scholar] [CrossRef]
  29. Besag, J.; Clifford, P. Generalized Monte Carlo Significance Tests. Biometrika 1989, 76, 633–642. [Google Scholar] [CrossRef]
  30. Besag, J.; Clifford, P. Sequential Monte Carlo p-values. Biometrika 1991, 78, 301–304. [Google Scholar] [CrossRef]
  31. Dufour, J.M. Monte Carlo tests with nuisance parameters: A general approach to finite-sample inference and nonstandard asymptotics. J. Econom. 2006, 133, 443–477. [Google Scholar] [CrossRef]
  32. Phipson, B.; Smyth, G.K. Permutation P-values Should Never Be Zero: Calculating Exact P-values When Permutations Are Randomly Drawn. Stat. Appl. Genet. Mol. Biol. 2010, 9, 39. [Google Scholar] [CrossRef]
  33. Bates, S.; Candès, E.; Lei, L.; Romano, Y.; Sesia, M. Testing for Outliers with Conformal P-values. Ann. Stat. 2023, 51, 149–178. [Google Scholar] [CrossRef]
  34. Huber, P.J.; Ronchetti, E.M. Robust Statistics, 2nd ed.; Wiley, 2009. [Google Scholar]
  35. Rousseeuw, P.J.; Croux, C. Alternatives to the Median Absolute Deviation. J. Am. Stat. Assoc. 1993, 88, 1273–1283. [Google Scholar] [CrossRef]
  36. Watanabe, S. Information Theoretical Analysis of Multivariate Correlation. IBM J. Res. Dev. 1960, 4, 66–82. [Google Scholar] [CrossRef]
  37. Massey, J.L.; Massey, P.C. Conservation of Mutual and Directed Information. In Proceedings of the Proceedings of the IEEE International Symposium on Information Theory (ISIT), Adelaide, Australia, 2005; pp. 157–158. [Google Scholar] [CrossRef]
  38. Amblard, P.O.; Michel, O.J.J. The Relation between Granger Causality and Directed Information Theory: A Review. Entropy 2013, 15, 113–143. [Google Scholar] [CrossRef]
  39. Lin, J. Divergence Measures Based on the Shannon Entropy. IEEE Trans. Inf. Theory 1991, 37, 145–151. [Google Scholar] [CrossRef]
  40. O’Donnell, R. Analysis of Boolean Functions; Cambridge University Press: Cambridge, 2014. [Google Scholar] [CrossRef]
  41. Gibbs, A.L.; Su, F.E. On Choosing and Bounding Probability Metrics. Int. Stat. Rev. 2002, 70, 419–435. [Google Scholar] [CrossRef]
  42. Paninski, L. Estimation of Entropy and Mutual Information. Neural Comput. 2003, 15, 1191–1253. [Google Scholar] [CrossRef]
  43. Billingsley, P. Statistical Methods in Markov Chains. Ann. Math. Stat. 1961, 32, 12–40. [Google Scholar] [CrossRef]
  44. Rukhin, A.L. Approximate Entropy for Testing Randomness. J. Appl. Probab. 2000, 37, 88–100. [Google Scholar] [CrossRef]
  45. Barnett, L.; Bossomaier, T. Transfer Entropy as a Log-Likelihood Ratio. Phys. Rev. Lett. 2012, 109, 138105. [Google Scholar] [CrossRef]
  46. Granger, C.W.J.; Newbold, P. Spurious Regressions in Econometrics. J. Econom. 1974, 2, 111–120. [Google Scholar] [CrossRef]
  47. Hoeffding, W.; Robbins, H. The Central Limit Theorem for Dependent Random Variables. Duke Math. J. 1948, 15, 773–780. [Google Scholar] [CrossRef]
  48. Orey, S. A Central Limit Theorem for m-Dependent Random Variables. Duke Math. J. 1958, 25, 543–546. [Google Scholar] [CrossRef]
  49. National Institute of Standards and Technology. SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions. U.S. Department of Commerce, 2015. [Google Scholar] [CrossRef]
  50. Clopper, C.J.; Pearson, E.S. The Use of Confidence or Fiducial Limits Illustrated in the Case of the Binomial. Biometrika 1934, 26, 404–413. [Google Scholar] [CrossRef]
  51. Miettinen, O.; Nurminen, M. Comparative analysis of two rates. Stat. Med. 1985, 4, 213–226. [Google Scholar] [CrossRef]
  52. Nosek, B.A.; Ebersole, C.R.; DeHaven, A.C.; Mellor, D.T. The Preregistration Revolution. Proc. Natl. Acad. Sci. USA 2018, 115, 2600–2606. [Google Scholar] [CrossRef]
  53. Matsumoto, M.; Nishimura, T. Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator. ACM Trans. Model. Comput. Simul. 1998, 8, 3–30. [Google Scholar] [CrossRef]
  54. Neumaier, A. Rundungsfehleranalyse einiger Verfahren zur Summation endlicher Summen. ZAMM – Z. Für Angew. Math. Und Mech. 1974, 54, 39–51. [Google Scholar] [CrossRef]
Figure 1. The six classes of Table 1, illustrated with ten bits of each stream. The strings are pedagogical, not data.
Figure 1. The six classes of Table 1, illustrated with ten bits of each stream. The strings are pedagogical, not data.
Preprints 245925 g001
Figure 2. The pairs pipeline. Solid arrows: computation on the record being scored. Dotted arrows: fixed null references, generated once from a public seed.
Figure 2. The pairs pipeline. Solid arrows: computation on the record being scored. Dotted arrows: fixed null references, generated once from a public seed.
Preprints 245925 g002
Figure 3. Window-count scaling law (exploratory, 4,000 null masters). (a) Null standard deviation of the 24 burden components (dots) and the law c k w − 1 / 2 (lines). (b) Ratio of the empirical SD to the law (blue). For one component, the orange curve is the ratio of the 110-member robust scale actually used to the true SD; it fluctuates by about ± 13 % .
Figure 3. Window-count scaling law (exploratory, 4,000 null masters). (a) Null standard deviation of the 24 burden components (dots) and the law c k w − 1 / 2 (lines). (b) Ratio of the empirical SD to the law (blue). For one component, the orange curve is the ratio of the 110-member robust scale actually used to the true SD; it fluctuates by about ± 13 % .
Preprints 245925 g003
Figure 4. Upper quantiles of the burden statistic as a function of N under three standardizations (exploratory, 4,000 null masters). Law-based and oracle scales converge towards the Gaussian-maximum limit; the frozen 110-member robust scales add noise of order ± 0.3 .
Figure 4. Upper quantiles of the burden statistic as a function of N under three standardizations (exploratory, 4,000 null masters). Law-based and oracle scales converge towards the Gaussian-maximum limit; the frozen 110-member robust scales add noise of order ± 0.3 .
Preprints 245925 g004
Figure 5. Alert rates of 19,000 fresh null pairs as a function of record length. Blue: burden endpoint at every calibrated length (campaign C1). Orange: combined pairs p-value on a grid of 106 lengths (campaign C2). Solid line: nominal rate; dashed line: admission tolerance. Rates at different lengths share masters and are dependent.
Figure 5. Alert rates of 19,000 fresh null pairs as a function of record length. Blue: burden endpoint at every calibrated length (campaign C1). Orange: combined pairs p-value on a grid of 106 lengths (campaign C2). Solid line: nominal rate; dashed line: admission tolerance. Rates at different lengths share masters and are dependent.
Preprints 245925 g005
Figure 6. Geometry of the sensitivity study (schematic, not to scale). (a) The target quantity of the mechanism is raised to δ inside a centred episode of L bits and zero elsewhere in a record of N bits. pairs examines overlapping windows of W = 1000 bits that start every S = 200 bits; the windows touched by the episode are highlighted. (b) The three detection regimes of Section 8.2, according to the length of the episode relative to the window and to the record.
Figure 6. Geometry of the sensitivity study (schematic, not to scale). (a) The target quantity of the mechanism is raised to δ inside a centred episode of L bits and zero elsewhere in a record of N bits. pairs examines overlapping windows of W = 1000 bits that start every S = 200 bits; the windows touched by the episode are highlighted. (b) The three detection regimes of Section 8.2, according to the length of the episode relative to the window and to the record.
Preprints 245925 g006
Figure 7. Power of the pairs p-value at level 0.05 for N = 288 , 000 , by family, episode length L (rows; “N” is the whole record) and effect size δ (columns). 100 replicates per cell.
Figure 7. Power of the pairs p-value at level 0.05 for N = 288 , 000 , by family, episode length L (rows; “N” is the whole record) and effect size δ (columns). 100 replicates per cell.
Preprints 245925 g007
Figure 8. Single record (thin lines, 80% power per record) versus a set of 50 records (thick lines, 15% per record, which gives 80% power for the set), for the bias and agreement families. Values at δ = 0.005 are censored at the smallest grid value.
Figure 8. Single record (thin lines, 80% power per record) versus a set of 50 records (thick lines, 15% per record, which gives 80% power for the set), for the bias and agreement families. Values at δ = 0.005 are censored at the smallest grid value.
Preprints 245925 g008
Figure 9. Effect size δ for 80% power at level 0.05 against episode length, for pairs and four reference detectors scored on identical records ( N = 288 , 000 , episode at a random position, 200 replicates per cell). Missing points: 80% power was not reached on the grid ( δ ≤ 0.256 ); the oracle detectors are not defined for the alternating regime.
Figure 9. Effect size δ for 80% power at level 0.05 against episode length, for pairs and four reference detectors scored on identical records ( N = 288 , 000 , episode at a random position, 200 replicates per cell). Missing points: 80% power was not reached on the grid ( δ ≤ 0.256 ); the oracle detectors are not defined for the alternating regime.
Preprints 245925 g009
Figure 10. The data of Figure 9 in units of information: divergence from H 0 accumulated over the episode at the effect size that gives 80% power. Dotted line: the ideal test of Equation (20).
Figure 10. The data of Figure 9 in units of information: divergence from H 0 accumulated over the episode at the effect size that gives 80% power. Dotted line: the ideal test of Equation (20).
Preprints 245925 g010
Table 1. Departure classes, the feature of pairs that targets each, the part of the partition (2) in which the departure produces a deficit, the information quantity that the feature estimates within a window (Section 4.8), and the parities it measures. The mutual-information readings of D2, D3, D4 and D6 assume balanced marginals; without them the features still measure the biases of their parities, which is why two independent streams biased in the same direction also raise D2.
Table 1. Departure classes, the feature of pairs that targets each, the part of the partition (2) in which the departure produces a deficit, the information quantity that the feature estimates within a window (Section 4.8), and the parities it measures. The mutual-information readings of D2, D3, D4 and D6 assume balanced marginals; without them the features still measure the biases of their parities, which is why two independent streams biased in the same direction also raise D2.
Class Feature Part of (2) Quantity estimated in a window Parities (order)
Marginal bias D1 balance marginal entropy deficit 2 ln 2 − H ^ ( X i ) − H ^ ( Y i ) { X i } , { Y i } (1)
Coincidences D2 agreement coupling I ( X i ; Y i ) { X i , Y i } (2)
Short memory D3 persistence memory I ( X i ; X i − 1 ) , I ( Y i ; Y i − 1 ) { X i − 1 , X i } , { Y i − 1 , Y i } (2)
Delayed coupling D4 coupling coupling I ( X i − l ; Y i ) , I ( Y i − l ; X i ) , l = 1 , 4 { X i − l , Y i } , { Y i − l , X i } (2)
Drift D5 drift marginal, varying in time Jensen–Shannon divergence between window halves, I ( X J ; H ) + I ( Y J ; H ) { X i } , { Y i } contrasted (1)
Longer memory D6 long memory memory I ( X i ; X i − l ) , I ( Y i ; Y i − l ) , l = 2 , 4 , 125 { X i − l , X i } , { Y i − l , Y i } (2)
Table 2. Glossary.
Table 2. Glossary.
Term Meaning
record length N number of bits per stream (a record holds N bit pairs)
window a block of W = 1000 consecutive bit pairs; windows start every S = 200 bits, so neighbouring windows overlap
window count w number of complete windows in a record, w = 1 + ⌊ ( N − W ) / S ⌋ (lower-case w, not to be confused with the window length W)
structural feature D1–D6 a number computed in each window that grows when one class of departure is present
null realization a pair of streams generated under H 0 by a published deterministic generator
master a pair of 720,000-bit null streams; null records of every shorter length are taken from it as prefixes
fresh (of null pairs) not used in building any reference
reference support a frozen set of U = 110 null realizations within which window values are located
placement q the position of a window value within the reference support, between 0 and 1 (Equation (7))
burden vector 24 fractions of windows whose placement lies in an upper or lower tail (Equation (8))
peak vector the largest value of each feature over all windows
robust standardization subtracting the median and dividing by 1.4826 × MAD, both computed on a further 110 null realizations (Section 4.4)
burden / peak statistic the largest standardized component, T B or T P
reference calibration the conversion of T B or T P into a p-value by ranking it among the same statistic computed on C = 9 , 999 further null realizations
endpoint one of the two calibrated summaries, burden or peak
pairs p-value p = min { 1 , 2 min ( p B , p P ) }
Table 3. The four sets of null realizations. All are generated from the public generator of Section 6 with distinct campaign identifiers, and none is used for more than one purpose. The same names are used throughout the paper; the internal labels of the repository are listed in Appendix D.
Table 3. The four sets of null realizations. All are generated from the public generator of Section 6 with distinct campaign identifiers, and none is used for more than one purpose. The same names are used throughout the paper; the internal labels of the repository are listed in Appendix D.
Set Size Question it answers Section
reference support 110 null pairs Where does a window value lie with respect to the null? 4.3
robust standardization 110 null pairs How are components with different null scales made comparable? 4.4, 4.5
reference calibration 9,999 null pairs Which p-value corresponds to the burden or peak statistic of a record? 4.6
validation 19,000 fresh null pairs per campaign Does the frozen reference behave as intended on new data? 7
Table 4. The six structural features in plain language.
Table 4. The six structural features in plain language.
Feature Question asked in each window Known blind spot
D1 balance Is either stream displaced from half ones and half zeros? Balanced dependence
D2 agreement Do the two streams agree in more, or fewer, than half of the bit positions of the window? Direction of influence
D3 persistence Does each bit tend to repeat, or alternate with, the previous bit? Only lag 1
D4 coupling Does one stream echo the other one or four bits later? Other lags
D5 drift Do the first and second halves of the window have different proportions of ones? Changes not aligned with the half-split
D6 long memory Is there memory at lags 2, 4 or 125 ( = W / 8 ) within a stream? Other lags; not a spectral analysis
Table 5. The squared features as plug-in information quantities (nats; hats denote estimates within the window) and the classical tests they reproduce. “Balanced”: the mutual-information form requires both empirical margins equal to 1 2 ; otherwise the feature measures the entropy deficit of its parity stream. J is a position drawn uniformly in the window and H the half that contains it.
Table 5. The squared features as plug-in information quantities (nats; hats denote estimates within the window) and the classical tests they reproduce. “Balanced”: the mutual-information form requires both empirical margins equal to 1 2 ; otherwise the feature measures the entropy deficit of its parity stream. J is a position drawn uniformly in the window and H the half that contains it.
Feature Squared feature ≈ Classical counterpart
D1 2 W 2 ln 2 − H ^ ( X i ) − H ^ ( Y i ) frequency (monobit) test [2]
D2 2 W ln 2 − H ^ ( X i ⊕ Y i ) = 2 W I ^ ( X i ; Y i ) if balanced G-test of independence of a 2 × 2 table
D3 2 ( W − 1 ) I ^ ( X i ; X i − 1 ) + I ^ ( Y i ; Y i − 1 ) if balanced likelihood-ratio test of Markov order 0 against 1 [43]; with D1, approximate entropy of order 1 [15,44]
D4 ∑ l = 1 , 4 2 ( W − l ) I ^ ( X i − l ; Y i ) + I ^ ( Y i − l ; X i ) if balanced lagged mutual information; the transfer-entropy likelihood-ratio test [45] when the target has no memory and the coupling acts at one lag
D5 2 W I ^ ( X J ; H ) + I ^ ( Y J ; H ) if balanced two-sample test of proportions; Jensen–Shannon divergence between the halves [39]
D6 ∑ l = 2 , 4 , 125 2 ( W − l ) I ^ ( X i ; X i − l ) + I ^ ( Y i ; Y i − l ) if balanced serial-correlation tests at fixed lags; each term is a lower bound on the term I ( X i ; X 1 , … , X i − 1 ) of the total correlation
Table 6. Probability that a correctly built reference of size C passes one admission check (thresholds p ≤ 0.05 / p ≤ 0.025 ; tolerances 7% / 4%), from the beta-binomial law implied by Equation (16) and the rule of Section 7. One check: ϵ = 0.05 , maxima 114 / 61 alerts. Ten checks: ϵ = 0.005 for each check (Bonferroni), maxima 104 / 54 for n = 1 , 900 and 1,239 / 690 for n = 19 , 000 ; the entry is the probability of passing one of the ten. Last column: probability that the conditional rate of the frozen reference exceeds the tolerance.
Table 6. Probability that a correctly built reference of size C passes one admission check (thresholds p ≤ 0.05 / p ≤ 0.025 ; tolerances 7% / 4%), from the beta-binomial law implied by Equation (16) and the rule of Section 7. One check: ϵ = 0.05 , maxima 114 / 61 alerts. Ten checks: ϵ = 0.005 for each check (Bonferroni), maxima 104 / 54 for n = 1 , 900 and 1,239 / 690 for n = 19 , 000 ; the entry is the probability of passing one of the ten. Last column: probability that the conditional rate of the frozen reference exceeds the tolerance.
C n = 1900 , one check n = 1900 , ten checks n = 19000 , ten checks Pr ( θ > τ )
110 .794 / .870 .725 / .823 .851 / .912 .11 / .063
999 .883 / .883 .731 / .741 .979 / .979 .0041 / .0040
9999 .967 / .966 .821 / .828 > 0.999 / > 0.999 < 10 − 15
Table 7. Law constants by feature (exploratory). Order in each cell: upper 0.75 / lower 0.25 / upper 0.90 / lower 0.10.
Table 7. Law constants by feature (exploratory). Order in each cell: upper 0.75 / lower 0.25 / upper 0.90 / lower 0.10.
Feature c k VIF fitted exponent
D1 .693 / .596 / .463 / .364 2.57 / 1.88 / 2.44 / 1.46 − . 504 / − . 505 / − . 507 / − . 500
D2 .688 / .546 / .479 / .333 2.54 / 1.59 / 2.56 / 1.22 − . 502 / − . 500 / − . 499 / − . 499
D3 .687 / .593 / .462 / .359 2.52 / 1.87 / 2.41 / 1.42 − . 505 / − . 501 / − . 508 / − . 502
D4 .702 / .640 / .471 / .382 2.61 / 2.18 / 2.46 / 1.66 − . 505 / − . 492 / − . 504 / − . 491
D5 .536 / .478 / .360 / .314 1.53 / 1.22 / 1.46 / 1.09 − . 497 / − . 497 / − . 496 / − . 501
D6 .681 / .633 / .453 / .391 2.44 / 2.13 / 2.24 / 1.71 − . 502 / − . 506 / − . 507 / − . 512
Table 8. Measured computing costs. Workstation: 24 logical cores (Windows). Cloud: 2 virtual cores (Linux).
Table 8. Measured computing costs. Workstation: 24 logical cores (Windows). Cloud: 2 virtual cores (Linux).
Task Workers Wall time Per pair
Scoring kernel, one pair at N = 288 , 000 / 576 , 000 1 — 30 / 71 ms
1,900 null pairs at N = 288 , 000 (generation, scoring, output) 22 13.05 s 6.9 ms
Calibration campaign C1: 29,219 masters, every length from 3,600 to 720k (workstation) 22 525 s —
Calibration campaign C2: peak references and 19,000 validation masters (cloud) 2 1,131 s —
Sensitivity atlas: 282,500 scored records (cloud) 2 5,169 s 37 ms
Table 9. Three null cohorts of 1,900 pairs at N = 288 , 000 , scored with the same prototype reference ( C = 999 ). Admission maxima: 111 and 59 alerts.
Table 9. Three null cohorts of 1,900 pairs at N = 288 , 000 , scored with the same prototype reference ( C = 999 ). Admission maxima: 111 and 59 alerts.
Cohort Generator Implementation p ≤ 0.05 p ≤ 0.025 Equivalence to first
1 Mersenne Twister prototype 82 40 —
2 SHAKE256 independent implementation 69 30 pass
3 SHAKE256 pairs (public root) 81 32 pass
Table 10. Campaign C1, burden endpoint: alerts among 19,000 fresh null pairs.
Table 10. Campaign C1, burden endpoint: alerts among 19,000 fresh null pairs.
N w p ≤ 0.05 rate upper 99.5% p ≤ 0.025 rate
36,000 176 939 4.94% 5.36% 399 2.10%
72,000 356 876 4.61% 5.02% 395 2.08%
144,000 716 917 4.83% 5.24% 463 2.44%
288,000 1436 972 5.12% 5.54% 479 2.52%
576,000 2876 960 5.05% 5.48% 530 2.79%
Table 11. Campaign C2, combined pairs p-value: alerts among 19,000 fresh null pairs; the endpoint columns are descriptive.
Table 11. Campaign C2, combined pairs p-value: alerts among 19,000 fresh null pairs; the endpoint columns are descriptive.
N w p ≤ 0.05 rate p ≤ 0.025 rate burden only peak only
12,000 56 976 5.14% 516 2.72% 966 / 511 999 / 488
36,000 176 817 4.30% 404 2.13% 888 / 412 808 / 414
72,000 356 847 4.46% 397 2.09% 898 / 393 957 / 467
144,000 716 973 5.12% 510 2.68% 964 / 533 933 / 449
288,000 1436 909 4.78% 435 2.29% 1015 / 524 833 / 408
576,000 2876 948 4.99% 472 2.48% 984 / 520 891 / 449
720,000 3596 957 5.04% 527 2.77% 924 / 465 926 / 501
Table 12. Perturbation mechanisms. Inside the episode, each bit of Y is replaced with probability 2 δ as indicated, which raises the target quantity to δ .
Table 12. Perturbation mechanisms. Inside the episode, each bit of Y is replaced with probability 2 δ as indicated, which raises the target quantity to δ .
Family Target Replacement and resulting law
bias D1 Y i : = 1 ;     Pr ( Y i = 1 ) = 1 2 + δ
agreement D2 Y i : = X i ;     Pr ( X i = Y i ) = 1 2 + δ
persistence D3 Y i : = Y i − 1 (sequentially);     Pr ( Y i = Y i − 1 ) = 1 2 + δ
lagged coupling D4 Y i : = X i − 1 ;     Pr ( Y i = X i − 1 ) = 1 2 + δ
alternating regime D5 Y i : = 1 or 0 on alternating half-periods of 500 bits;     Pr ( Y i = 1 ) = 1 2 ± δ
long memory D6 Y i : = Y i − 125 (sequentially);     Pr ( Y i = Y i − 125 ) = 1 2 + δ
Table 13. Effect size δ for 80% power at level 0.05, departure covering the whole record (100 replicates per cell). In brackets: the same quantity read from the lower and upper 95% Wilson limits of the power curve, which reflects sampling error only; interpolation between the grid values δ ∈ { 0.005 , 0.01 , 0.02 , 0.03 , 0.05 , … } adds a larger uncertainty, mostly upward: with the finer grid of Section 9, bias, agreement and long memory at N = 288 , 000 give 0.011, 0.010 and 0.015.
Table 13. Effect size δ for 80% power at level 0.05, departure covering the whole record (100 replicates per cell). In brackets: the same quantity read from the lower and upper 95% Wilson limits of the power curve, which reflects sampling error only; interpolation between the grid values δ ∈ { 0.005 , 0.01 , 0.02 , 0.03 , 0.05 , … } adds a larger uncertainty, mostly upward: with the finer grid of Section 9, bias, agreement and long memory at N = 288 , 000 give 0.011, 0.010 and 0.015.
Mechanism N = 12 k 36k 144k 288k 720k
bias (D1) .029 [.028,.030] .023 [.021,.025] .017 [.016,.017] .015 [.015,.017] .009 [.009,.009]
agreement (D2) .026 [.025,.027] .017 [.017,.018] .014 [.013,.016] .009 [.009,.009] .008 [.008,.009]
persistence (D3) .028 [.027,.029] .019 [.018,.022] .017 [.016,.017] .015 [.014,.016] .009 [.008,.009]
lagged coupling (D4) .027 [.026,.028] .022 [.019,.024] .017 [.017,.018] .015 [.014,.016] .009 [.009,.009]
alternating regime (D5) .044 [.043,.045] .033 [.029,.038] .020 [.019,.022] .017 [.017,.018] .016 [.016,.017]
long memory (D6) .043 [.043,.045] .027 [.026,.028] .018 [.017,.019] .017 [.016,.017] .015 [.014,.016]
Table 14. Effect size δ for 80% power per record at level 0.05, for the bit rates and durations planned in DeepREG: departure covering the whole record (bias and agreement families, from Table 13) and a 1,000-bit episode within the record. Studies with sets of records need smaller per-record power (Section 8.3).
Table 14. Effect size δ for 80% power per record at level 0.05, for the bit rates and durations planned in DeepREG: departure covering the whole record (bias and agreement families, from Table 13) and a 1,000-bit episode within the record. Studies with sets of records need smaller per-record power (Section 8.3).
Bit rate Duration N (bits) whole record 1,000-bit episode
10 bits/s 20 min 12,000 0.026–0.029 0.07–0.08
10 bits/s 60 min 36,000 0.017–0.023 0.09
16 bits/s 60 min 57,600 ≈0.017–0.02 ≈0.09
200 bits/s 20 min 240,000 ≈0.009–0.015 0.09–0.10
200 bits/s 60 min 720,000 0.008–0.009 0.10
Table 15. Effect size δ for 80% power at level 0.05 ( N = 288 , 000 ), on identical records. “—”: 80% power not reached for δ ≤ 0.256 or detector not defined. Persistence gives values within 7% of those for bias and is omitted.
Table 15. Effect size δ for 80% power at level 0.05 ( N = 288 , 000 ), on identical records. “—”: 80% power not reached for δ ≤ 0.256 or detector not defined. Persistence gives values within 7% of those for bias and is omitted.
Mechanism L oracle z global battery oracle scan scan battery pairs
bias 2k — — 0.058 0.063 0.081
16k 0.048 0.062 0.021 0.022 0.047
64k 0.012 0.016 0.010 0.011 0.025
N 0.0027 0.0035 0.0050 0.0053 0.011
agreement 2k — — 0.058 0.062 0.081
16k 0.050 0.062 0.021 0.023 0.044
64k 0.013 0.016 0.010 0.011 0.021
N 0.0027 0.0035 0.0049 0.0053 0.0099
long memory 2k — — 0.057 0.063 0.091
16k 0.048 0.062 0.021 0.023 0.060
64k 0.012 0.015 0.010 0.011 0.030
N 0.0027 0.0035 0.0049 0.0054 0.015
alternating regime 2k — — — 0.17 0.093
16k — 0.18 — 0.11 0.061
64k — 0.088 — 0.085 0.040
N — 0.043 — 0.055 0.017
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.