| Literature DB >> 33286513 |
Jorge Augusto Karell-Albo1, Carlos Miguel Legón-Pérez1, Evaristo José Madarro-Capó1, Omar Rojas2, Guillermo Sosa-Gómez2.
Abstract
The analysis of independence between statistical randomness tests has had great attention in the literature recently. Dependency detection between statistical randomness tests allows one to discriminate statistical randomness tests that measure similar characteristics, and thus minimize the amount of statistical randomness tests that need to be used. In this work, a method for detecting statistical dependency by using mutual information is proposed. The main advantage of using mutual information is its ability to detect nonlinear correlations, which cannot be detected by the linear correlation coefficient used in previous work. This method analyzes the correlation between the battery tests of the National Institute of Standards and Technology, used as a standard in the evaluation of randomness. The results of the experiments show the existence of statistical dependencies between the tests that have not been previously detected.Entities:
Keywords: NIST; independence; mutual information; statistical randomness tests
Year: 2020 PMID: 33286513 PMCID: PMC7517289 DOI: 10.3390/e22070741
Source DB: PubMed Journal: Entropy (Basel) ISSN: 1099-4300 Impact factor: 2.524
NIST battery of randomness tests.
| Randomness Test | Id | Randomness Test | Id |
|---|---|---|---|
| Approximate Entropy | 1 | Overlapping Template | 10 |
| Block Frequency | 2 | Random Excursions | 11 |
| CUSUM (f) | 3 | Random Excursions Variant | 12 |
| CUSUM (b) | 4 | Rank | 13 |
| FFT | 5 | Runs | 14 |
| Frequency | 6 | Serial 1 | 15 |
| Linear Complexity | 7 | Serial 2 | 16 |
| Longest Run | 8 | Universal | 17 |
| Non Overlapping Template | 9 |
Correlations detected in [9].
| Randomness Tests | Related Tests |
|---|---|
| Frequency | CUSUM(f, b) |
| CUSUM(f) | CUSUM(b) |
| Serial 1 | Serial 2 |
| Approximate Entropy | Serial(1,2) |
Correlations detected in [15].
| Randomness Tests | Related Tests |
|---|---|
| Frequency | CUSUM, Approximate Entropy |
| Runs | Approximate Entropy, Serial |
| Approximate Entropy | Frequency, CUSUM, Runs, Serial |
| Serial | Runs, Approximate Entropy |
Correlations detected in [10].
| Randomness Tests | Related Tests |
|---|---|
| Frequency | CUSUM (b, f) |
| CUSUM (b) | CUSUM (f) |
| Serial 1 | Serial 2 |
| Approximate Entropy | Serial(1,2) |
| Random Excursion | Random Excursion Variant |
Figure 1Estimation of mutual information for different samples sizes.
Value differences for independent variables.
| est/obs | 1000 | 5000 | 10,000 | 15,000 | 20,000 |
|---|---|---|---|---|---|
| emp | 0.041 | 0.0064 | 0.0034 | 0.0025 | 0.002 |
| mm | 0.0005 | 0 | 0 | 0 | 0 |
| shrink | 0 | 0 | 0 | 0 | 0 |
| sg | 0.0806 | 0.0145 | 0.0074 | 0.0052 | 0.004 |
| max. Dif. | 0.0806 | 0.0145 | 0.0074 | 0.0052 | 0.004 |
Value differences for correlated variables.
| est/obs | 1000 | 5000 | 10,000 | 15,000 | 20,000 |
|---|---|---|---|---|---|
| emp | 0.5761 | 0.5691 | 0.5597 | 0.5592 | 0.5647 |
| mm | 0.5486 | 0.5632 | 0.5567 | 0.5574 | 0.5632 |
| shrink | 0.5585 | 0.5636 | 0.5561 | 0.5565 | 0.5625 |
| sg | 0.6027 | 0.5749 | 0.5626 | 0.5612 | 0.5662 |
| max. Dif. | 0.0541 | 0.0117 | 0.0065 | 0.0047 | 0.0037 |
Parameters used for the tests.
| Randomness Test | Parameter | Value |
|---|---|---|
| Approximate Entropy | m: first block size | 10 |
| Block Frequency | M: block size | 128 |
| Linear Complexity | M: block size | 500 |
| Longest Run | M: block size | 128 |
| Non Overlapping Template | template | 000000001 |
| Overlapping Template | template | 111111111 |
| Random Excursions | internal state |
|
| Random Excursions Variant | internal state |
|
| Rank | M: rows of each matrix | 32 |
| Q: columns of each matrix | 32 | |
| Serial | m: block size | 16 |
| Universal | L: block size | 7 |
| Q: initialization blocks | 10 |
Figure 2Correlation matrix graph for .
Correlated tests for .
| Random Test | Related Test |
|---|---|
| Approximate Entropy | Serial 1 |
| CUSUM (f) | CUSUM (b), Frequency, Random Ex., Random Ex. Variant |
| CUSUM (b) | Frequency, Random Ex., Random Ex. Variant |
| Frequency | Random Ex., Random Ex. Variant |
| Longest Run | Overlapping Template |
| Random Excursions | Random Excursions Variant |
| Serial 1 | Serial 2 |
Figure 3Relationship between tests.
Figure 4Dispersion of p-values of approximate entropy and rank.
Figure 5Dispersion of normalized mutual information (NMI) values of various tests.
New correlation detected with the proposed method using statistics.
| Randomness test | Related Test |
|---|---|
| Approximate Entropy | Serial 1 |
| CUSUM (f) | CUSUM (b), Frequency, Random Ex., Random Ex. Variant |
| CUSUM (b) | Frequency, Random Ex., Random Ex. Variant |
| Frequency | Random Ex., Random Ex. Variant |
| Longest Run | Overlapping Template |
| Random Excursions | Random Excursions Variant |
| Serial 1 | Serial 2 |
|
|
|
|
|
|
Figure 6Correlation matrix between the statistics for .
Figure 7Comparison of data dispersion.
Initial parameters used in previous works.
| Method | Number | Sequence Length | Metric Used |
|---|---|---|---|
| [ | 100,000 | 5000 | Pearson |
| [ | 300 | 1,000,000 | Setting to distance of Fan [ |
| [ | 200,000 | 1024 | Pearson |
| 200 | 1,048,576 | Pearson | |
| Proposed method | 10,000 | 1,000,000 | MI |
Parameters of the tests in previous works.
| Method | Approximate Entropy | Serial |
|---|---|---|
| [ | 8 | 9 |
| [ | 14 | 16 |
| predefined by NIST | 10 | 16 |
Comparison of the correlation of evidence obtained with previous results [9,10].
| Randomness Tests | Correlated Tests | ||
|---|---|---|---|
| [ | [ | Proposed Method | |
| Frecuency | CUSUM(f, b) | CUSUM(f, b) | CUSUM(f, b) |
| App. Entropy | Serial(1,2) | Serial(1,2) | Serial 1 |
| CUSUM(f) | CUSUM(b) | CUSUM(b) | CUSUM(b) |
|
| CUSUM(f) | CUSUM(f) | CUSUM(f) |
| Serial 1 | Serial 2 | Serial 2 | Serial 2 |
| Random Ex. | Random Ex. Variant | Random Ex. Variant | |
|
|
| ||
Figure 8Correlations detected for the parameters used in previous works.
Figure 9Dispersion between the Approximate entropy and Serial 1 tests.