Checking the quality of approximation of p-values in statistical tests for random number generators by using a three-level test
Open accessAbstract
Abstract Statistical tests of pseudorandom number generators (PRNGs) are applicable to any type of random number generators and are indispensable for evaluation. While several practical packages for statistical tests of randomness exist, they may suffer from a lack of reliability: for some tests, the amount of approximation error can be deemed significant. Reducing this error by finding a better approximation is necessary, but it generally requires an enormous amount of effort. In this paper, we introduce an experimental method for revealing defects in statistical tests by using a three-level test proposed by Okutomi and Nakamura. In particular, we investigate the NIST test suite and the test batteries in TestU01, which are widely used statistical packages. Furthermore, we show the efficiency of several modifications for some tests.
AI snapshot
Written from the paper’s full text.
TL;DR
The paper introduces a three-level test, based on Okutomi and Nakamura’s method, to check whether the approximation used for \(p\)-values in statistical tests for PRNGs is adequate. Applying it to the NIST test suite and TestU01’s SmallCrush and Crush batteries reveals flawed approximations in several tests and supports several modifications and parameter changes.
Key findings
- In the NIST suite, the original three-level test gave very small \(p\)-values for the Discrete Fourier Transform test (\(4.1\mathrm{E}{-119}\) for MT, \(7.2\mathrm{E}{-116}\) for SHA1), Overlapping Template Matching (\(7.5\mathrm{E}{-80}\), \(5.6\mathrm{E}{-73}\)), Maurer’s Universal Statistical test (\(8.7\mathrm{E}{-76}\), \(4.1\mathrm{E}{-66}\)), and Longest Run of Ones in a Block (\(3.9\mathrm{E}{-5}\), \(1.3\mathrm{E}{-8}\)); after modifications, these became reasonable, e.g. DFT \(0.19/0.026\), Overlapping \(0.70/0.88\), Maurer \(0.99/0.77\), Longest Run \(0.44/0.0011\).
- For the NIST Random Excursions test, \(x=4\) showed flaws up to \(J=1500\); the authors recommend \(J \ge 2000\) instead of NIST’s \(J \ge 500\), with first-level sample size \(n=10^7\). For the Random Excursions Variant test, too-small \(p\)-values for \(x=\pm 9\) led them to recommend \(J \ge 1000\).
- In TestU01 SmallCrush, the 14 assessed test statistics had sufficiently accurate \(p\)-value approximations. In Crush, tests rejected by both MT and SHA1 included `svaria_SampleCorr`, `smarsa_Savir2`, `scomp_LempelZiv`, `sspectral_Fourier3`, and `sstring_Run`; modifications improved `svaria_SampleCorr` from \(1.8\mathrm{E}{-222}/5.5\mathrm{E}{-237}\) to \(0.498/0.825\), and `sstring_Run` from \(\varepsilon\) to \(0.657/0.302\) and \(0.715/0.0479\).
- `smarsa_Savir2` remained unresolved; the authors tentatively propose \(t=9\) as a compromise. `scomp_LempelZiv` and `sspectral_Fourier3` still needed more mathematical justification, with `sspectral_Fourier3` yielding \(p\)-values below \(10^{-300}\).
Methods
- The three-level test uses an error-free second level: first-level statistics \(f(a_i)\) are computed; second-level counts \(T_i\) of first-level \(p\)-values \(\ge \alpha\) in blocks; third-level compares \(T_1,\dots,T_{N'}\) to the binomial distribution \(B(N,1-\alpha)\) via a \(\chi^2\) goodness-of-fit test with 16 degrees of freedom. Parameters follow Okutomi and Nakamura: \(\alpha=0.01\), \(N=10^3\), \(N'=10^3\).
- Experiments use Mersenne Twister and a SHA1-based PRNG to mimic random sequences. NIST tests use first-level sample size \(n=10^6\), except Random Excursions tests use \(n=10^7\). For Crush, MT is applied first; if the three-level \(p\)-value is below \(10^{-10}\), SHA1 is also used, and the test is rejected only if both are below \(10^{-10}\).
- Modifications tested include DFT parameter \(d=3.8\), removing lines 40–44 in `overlappingTemplateMatching.c`, using Coron’s variant for Maurer’s Universal test, more accurate Longest Run probabilities to 15 decimal places, centering the `svaria_SampleCorr` statistic, and correcting the `sstring_Run` normal and \(\chi^2\) statistics.
Limitations
- The paper states that the method assumes the approximated statistic distribution is continuous, because it relies on uniformity of first-level \(p\)-values in \([0,1]\); this is not essential if the exact \(p\)-value distribution can be computed. It also notes that the Random Excursions tests discard samples, so the three-level formalism does not apply as-is, and the authors iterate first-level tests until \(N=1000\) \(p\)-values are obtained.
- The authors state they could not give satisfactory mathematical modifications for `smarsa_Savir2`, `scomp_LempelZiv`, or `sspectral_Fourier3`; for `smarsa_Savir2` they only tentatively propose \(t=9\). They also suggest a Kolmogorov–Smirnov test may be more appropriate and powerful than the \(\chi^2\) GOF test at the third level.
- Evident from the text: the Crush screening procedure only checks SHA1 when the MT three-level \(p\)-value is below \(10^{-10}\), so tests with moderate approximation error may not be rechecked; and the conclusions depend on the two chosen generators, MT and SHA1, with MT noted to fail certain tests even when \(p\)-values are computed correctly.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
6 of 21 cited sources checked · 2 supported · 0 flagged · accuracy not yet measured
- Premisenone given§ 4. Experimental results · p. 5
MT fails certain tests, e.g., the linear complexity test and the binary matrix rank test with large matrix size, even when the p-value is computed correctly with no significant error.
“Note that MT fails certain tests (e.g. the linear complexity test, the binary matrix rank test with large matrix size) even when the p -value is computed correctly with no significant error.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [15] Matsumoto, 1998, Mersenne Ttister: A 623-dimensionally equidistributed uniform pseudo-random number generator, ACM Trans. Model. Comput. Simul. source
Section 1.4 reports that MT19937 passed the Diehard and other empirical tests, while §3.1 describes MT as an F₂-linear generator. Our copy does not report failures of the linear complexity test or a large-matrix binary rank test, or discuss whether correctly computed p-values affect those results (searched: linear complexity, binary matrix rank, p-value, statistical test failures). (LLM, conf=0.75)
Experimental — accuracy not yet measured
- Premisecitation§ 4.1. Results of the NIST test suite · p. 6
The latest version 2.1.2 of the NIST test suite, released in 2014, does not incorporate several modifications.
“However, the latest version 2.1.2 [1], released in 2014, does not incorporate several modifications.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [1] Bassham, 2010 source
Section 2, “Random Number Generation Tests,” identifies and describes the NIST Test Suite. Our copy does not establish that version 2.1.2 was the latest release in 2014 or that it omitted several modifications; searches for the version, release date, and modifications found no supporting passage. (LLM, conf=0.78)
Experimental — accuracy not yet measured
- Findingown data§ 4.1. Results of the NIST test suite · p. 6
In the original NIST test suite, the three-level test p-values for the Discrete Fourier Transform test are much too small.
“From our experiments, the p -values from the Discrete Fourier Transform (DFT) test, the Overlapping Template Matching test, and the Maurer's Universal Statistical test in the original test suite are much too small.”
Quote in the paperSubstantial claim - Findingnone given§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 15
The resulting p-values of the scomp_LempelZiv and sspectral_Fourier3 tests are smaller than 10^-300.
“Indeed, the resulting p -values of those tests are smaller than 10 -300 , so more mathematical justifications for those tests are needed.”
Quote in the paperSubstantial claim - Findingown data§ 4.1. Results of the NIST test suite · p. 10
For the Random Excursions Variant test, the p-values for x = ±9 are too small.
“For the Random Excursions Variant test, from the too small p -values for x = ± 9, we recommend a constraint J ≥ 1000.”
Quote in the paperSubstantial claim
- Findingown data§ 4.1. Results of the NIST test suite · p. 6
In the original NIST test suite, the three-level test p-values for the Maurer's Universal Statistical test are much too small.
“From our experiments, the p -values from the Discrete Fourier Transform (DFT) test, the Overlapping Template Matching test, and the Maurer's Universal Statistical test in the original test suite are much too small.”
Quote in the paperSubstantial claim - Findingnone given§ 5. Concluding remarks · p. 15
We give three satisfactory modifications to three tests in Crush.
“We give three satisfactory modifications to three tests in Crush, and propose new parameters for several tests from this viewpoint.”
Quote in the paperSubstantial claim - Findingnone given§ 5. Concluding remarks · p. 15
We find that some statistical tests use approximation with some flaw.
“We find that some statistical tests use approximation with some flaw.”
Quote in the paperSubstantial claim - Findingnone given§ 4.1. Results of the NIST test suite · p. 9
The NIST test suite uses approximation values to four decimal places instead of the theoretical probabilities for the Longest Runs of Ones in a Block test.
“The NIST test suite uses approximation values to four decimal places instead of the theoretical probabilities.”
Quote in the paperSubstantial claim - Findingown data§ 4.1. Results of the NIST test suite · p. 10
From the experiments, the Random Excursions test for x = 4 shows some flaw up to J = 1500.
“From our experiments, the Random Excursions test for x = 4 shows some flaw up to J = 1500.”
Quote in the paperSubstantial claim - Findingreasoning§ 4.1. Results of the NIST test suite · p. 9
The Random Excursions test and the Random Excursions Variant test do not always yield p-values.
“Unlike the other tests, the Random Excursions test and the Random Excursions Variant test do not always yield p -values.”
Quote in the paperSubstantial claim - Findingown data§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 11
Table 6 indicates that all 14 tests have approximations of p-values that are sufficiently accurate.
“Table 6 indicates that all 14 tests have the approximations of p -values which are sufficiently accurate.”
Quote in the paperSubstantial claim - Findingown data§ 4.1. Results of the NIST test suite · p. 6
In the original NIST test suite, the three-level test p-values for the Overlapping Template Matching test are much too small.
“From our experiments, the p -values from the Discrete Fourier Transform (DFT) test, the Overlapping Template Matching test, and the Maurer's Universal Statistical test in the original test suite are much too small.”
Quote in the paperSubstantial claim - Findingown data§ 4.1. Results of the NIST test suite · p. 6
After appropriate modifications, the three-level test reported reasonable p-values for the four tests: Discrete Fourier Transform, Overlapping Template Matching, Maurer's Universal Statistical, and Longest Runs of Ones in a Block.
“After we applied appropriate modifications, the three-level test reported reasonable p -values for the four tests as described in the two columns at the right in Table 1.”
Quote in the paperSubstantial claim - Findingnone given§ 4.1. Results of the NIST test suite · p. 6
The approximation error in p-values provided by the current NIST test suite's one-level or two-level tests is not large.
“and the approximation error in p -values provided by those tests are not large.”
Quote in the paperNot a substantial claim - Interpretationreasoning§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 4
Under H0 and H', the probability distribution of F(f(X)) is uniform in [0,1].
“Under H 0 and H ′ , the probability distribution of F ( f ( X )) is uniform in [0 , 1].”
Quote in the paperSubstantial claim- The authors state this as an assumption: In a statistical test, the distribution of f(X) under H0 is well-approximated by a known cumulative distribution F.
- The authors state this as an assumption: In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
- The authors state this as an assumption: The approximating distribution F in the hypothesis H' is continuous.
- Premisecitation§ 2. Statistical testing for PRNGs and approximation error · p. 3
Two-level tests permit one to apply the test with a larger total sample size to increase its power.
“Two-level tests permit one to apply the test with a larger total sample size to increase its power.”
Quote in the paperSubstantial claim0 of 2 sources checked - Premisecitation§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 4
The three-level test proposed by Okutomi and Nakamura can be considered as reliable as a two-level test.
“By contrast, Okutomi and Nakamura proposed a three-level test that can be considered as reliable as a two-level one [16].”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [16] Okutomi, 2010, A study on rational judgement method of randomness property using NIST randomnes test (in Japanese), Trans. Inst. Electron. Inf. Commun. Eng. A
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Interpretationnone given§ 1. Introduction · p. 2
Some statistical tests yield erroneous results because they use approximation formulas for p-values with non-negligible error.
“Moreover, some statistical tests yield erroneous results because they use approximation formulas for p -values with non-negligible error.”
Quote in the paperNot a substantial claim - Interpretationreasoning§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5
The presented method is better than using a GOF test on the entire distribution of N' p-values.
“This is a reason why the proposed test is better.”
Quote in the paperSubstantial claim - Interpretationnone given§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5
If the third-level p-value is extremely small, it strongly suggests that either H0 or H' fails.
“If the resulting p -value at the third level is extremely small, it strongly suggests that either H 0 or H ′ fails.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 2. Statistical testing for PRNGs and approximation error · p. 3
If the generator fails a two-level test in this particular way, then the p-value at the second level tends to become extremely small as sample size N is increased.
“Hence, if the generator fails the test in this particular way, then the p -value at the second level tends to become extremely small value as the sample size N is increased.”
Quote in the paperSubstantial claim - Premisecitation§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 4
The novelty of Okutomi and Nakamura's method is that it uses an error-free function at the second level.
“The novelty of their method is that it uses an error-free function at the second level.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [16] Okutomi, 2010, A study on rational judgement method of randomness property using NIST randomnes test (in Japanese), Trans. Inst. Electron. Inf. Commun. Eng. A
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Interpretationcitation§ 2. Statistical testing for PRNGs and approximation error · p. 3
The p-value at the second level also tends to be very small if the approximations of the p-values at the first level are not good enough, i.e., if H' fails.
“However, the p -value also tends to be very small if the approximations of the p -values at the first level is not good enough (i.e. if H ′ fails).”
Quote in the paperSubstantial claim- The authors state this as an assumption: In a statistical test, the distribution of f(X) under H0 is well-approximated by a known cumulative distribution F.
- Interpretationreasoning§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5
Under H0, H' and continuity of F, T_i has the binomial distribution B(N, 1-α).
“Therefore, T i should have the binomial distribution B ( N, 1 -α ).”
Quote in the paperSubstantial claim- The authors state this as an assumption: In a statistical test, the distribution of f(X) under H0 is well-approximated by a known cumulative distribution F.
- The authors state this as an assumption: In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
- The authors state this as an assumption: The approximating distribution F in the hypothesis H' is continuous.
- Interpretationcitation§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 4
Okutomi and Nakamura's method is useful to check the quality of the approximation of statistical tests.
“Okutomi and Nakamura originally intended to develop a new statistical test for PRNGs, but their method is useful to check the quality of the approximation of statistical tests.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [16] Okutomi, 2010, A study on rational judgement method of randomness property using NIST randomnes test (in Japanese), Trans. Inst. Electron. Inf. Commun. Eng. A
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Premisecitation§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 13
Fishman [3] shows that the statistic converges to normal with mean 0 and variance 1/144(n-k).
“converges to normal with mean 0 and variance 1 / 144( n -k ).”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites [3] Fishman, 1978
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Premisecitation§ 4.1. Results of the NIST test suite · p. 8
NIST now adopts more accurate values derived by [4] for the Overlapping Template Matching test.
“NIST once used the probabilities derived by an approximation formula, and now it adopts more accurate values derived by [4].”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [4] Hamano, 2007, Correction of overlapping template matching test included in NIST randomness test suite, IEICE Trans. Fundam. Electron. Commun. Comput. Sci. source
- Interpretationnone given§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 14
For the sstring_Run chi-squared test, the factor 1-p_i in the denominator is unnecessary.
“However, the factor 1 -p i in the denominator seems to be unnecessary, so our modification removes them.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 14
The appropriate statistic for the sstring_Run normal test is (Y-4n)/√4n.
“Thus the appropriate statistic is ( Y -4 n ) / √ 4 n , this is the modification.”
Quote in the paperSubstantial claim - Interpretationown data§ 1. Introduction · p. 2
The results support the usefulness of the three-level test.
“These results support the usefulness of the three-level test.”
Quote in the paperSubstantial claim - Interpretationnone given§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5
The distribution of the chi-square statistic under H0 and H' is approximated by the chi-square distribution with 16 degrees of freedom.
“The distribution of this statistic under H 0 and H ′ is approximated by the χ 2 -distribution with 16 degrees of freedom.”
Quote in the paperNot a substantial claim- The authors state this as an assumption: In a statistical test, the distribution of f(X) under H0 is well-approximated by a known cumulative distribution F.
- The authors state this as an assumption: In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
- Interpretationreasoning§ 5. Concluding remarks · p. 15
The reliability of the tests is increased if the approximation is improved.
“This does not mean that these tests are erroneous, but the reliability of the tests is increased if the approximation is improved.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 4.1. Results of the NIST test suite · p. 10
In the Random Excursions test and the Random Excursions Variant test, the approximations of the test statistics by a chi-square distribution and a normal distribution improve as the number J increases.
“In the Random Excursions test and the Random Excursions Variant test, J is the sample size in computing p -values. Hence, the approximations of the statistics of the tests by a chi-square distribution and a normal distribution are getting better when the number J is increased.”
Quote in the paperSubstantial claim - Premisecitation§ 4.1. Results of the NIST test suite · p. 8
NIST once used probabilities derived by an approximation formula for the Overlapping Template Matching test.
“NIST once used the probabilities derived by an approximation formula, and now it adopts more accurate values derived by [4].”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [4] Hamano, 2007, Correction of overlapping template matching test included in NIST randomness test suite, IEICE Trans. Fundam. Electron. Commun. Comput. Sci. source
- Premisecitation§ 4.1. Results of the NIST test suite · p. 9
Coron's modification is a variant test statistic which enables better detection of defects in the tested sequence.
“We use the modification by Coron [2], a variant test statistic which enables better detection of defects in the tested sequence.”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites [2] Coron, 1999, On the security of random sources source
- Interpretationreasoning§ 5. Concluding remarks · p. 15
The condition that the approximated statistics are continuous is not essential.
“This condition is not essential: if the distribution of p -values can be computed exactly, we can conduct the three-level test with an appropriate GOF test at the third level.”
Quote in the paperNot a substantial claim- The authors state this as an assumption: The approximated statistics are continuous.
- May combine two claims. 11
- Classified as probably not a substantial claim. 10
- The quote only partly states this claim. 4
May combine two claims.
Interpretationcitation§ 2. Statistical testing for PRNGs and approximation error · p. 3In two-level tests, computational errors accumulate at each level and two-level tests detect the lack-of-fit of the approximation, leading to rejection even if the generator is good.
“In this case, computational errors accumulate at each level and two-level tests detect the Lack-Of-Fit of that approximation, leading to rejection even if the generator is good [7, 10, 13, 17].”
Quote in the paperSubstantial claim1 of 4 sources checked- cites [7] L’Ecuyer, 1992, Testing random number generators source
- cites [10] L’Ecuyer, 2000, Close-point spatial tests and their application to random number generators, Oper. Res. source
- cites [13] L’Ecuyer, 2002, Sparse serial tests of uniformity for random number generators, SIAM J. Sci. Comput. source
- cites [17] Pareschi, 2012, On statistical tests for randomness included in the NIST SP800-22 test suite and based on the binomial distribution, IEEE Trans. Inf. Forensics Secur. source
The 'C. Reliability of a Two-level Test' section says approximation errors in basic-test p-values make their distribution deviate from the expected uniform distribution, and that the resulting second-level error grows with the number of sequences. It also reports that two-level tests can fail for very large samples despite using a high-quality generator. The paper does not say computational errors arise and accumulate at each level; it traces the problem to the basic-test approximation and its effect on the second-level test. Page numbers are unavailable in our copy. (LLM, conf=0.82)
Experimental — accuracy not yet measured
- The authors state this as an assumption: In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Premisecitation§ 4.1. Results of the NIST test suite · p. 6The NIST test suite consists of 15 statistical tests for randomness of bit sequences, and its result is a list of 188 p-values.
“The NIST test suite consists of 15 statistical tests for randomness of bit sequences, and its result is a list of 188 p -values.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [1] Bassham, 2010 source
Section 2, “Random Number Generation Tests,” confirms that the suite has 15 tests for randomness in binary sequences. The claim that its result is a list of 188 p-values is not supported: Section 4.4 describes 161 tests producing significance probabilities, while Section 2.7.4 says the number of p-values from one test varies with its parameters. (LLM, conf=0.88)
Experimental — accuracy not yet measured
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 4.1. Results of the NIST test suite · p. 8Pareschi et al. proposed d=3.8 for n≈10^6 for the DFT test.
“Subsequently, Pareschi et al. [17] proposed d = 3 . 8 for n ≈ 10 6 , which we use here as modification.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [17] Pareschi, 2012, On statistical tests for randomness included in the NIST SP800-22 test suite and based on the binomial distribution, IEEE Trans. Inf. Forensics Secur. source
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 4.1. Results of the NIST test suite · p. 6The current implementation of the NIST test suite uses one-level or two-level tests, differently from the above experiments.
“Note that the current implementation of the NIST test suite uses one-level or two-level tests, differently from the above experiments”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [1] Bassham, 2010 source
The quote only partly states this claim.
Findingown data§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 14The modifications to svaria_SampleCorr and sstring_Run are satisfactory in improving the reliability of the tests.
“The results indicate that the above modifications are satisfactory in improving the reliability of the tests.”
Quote in the paperSubstantial claimThe quote only partly states this claim.
Findingown data§ 4.1. Results of the NIST test suite · p. 6In the original NIST test suite, the three-level test p-values for the Longest Runs of Ones in a Block test are relatively small.
“Additionally, the p -values of the Longest Runs of Ones in a Block test are relatively small.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim.
Findingnone given§ 4.1. Results of the NIST test suite · p. 8The C-code overlappingTemplateMatching.c changes the new values to the former wrong ones.
“However, the C-code overlappingTemplateMatching.c changes the new values to the former wrong ones.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 15The p-values of the smarsa_Savir2 test are slightly suspicious but not too small.
“The p -values are slightly suspicious but not too small.”
Quote in the paperSubstantial claimThe quote only partly states this claim.
Findingown data§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 11In Crush, the tests rejected by both Mersenne Twister and SHA1 are svaria_SampleCorr, smarsa_Savir2, scomp_LempelZiv, sspectral_Fourier3, and sstring_Run.
“Table 7 shows the tests rejected by both Mersenne Twister and SHA1.”
Quote in the paperNot a substantial claimMay combine two claims.
Interpretationnone given§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 4Extending a statistical test from two to three or higher using a technique such as the one shown is often useless, because the approximation error of the second level may destroy the result: the resulting p-values tend to be too close to 0.
“this type of test is often useless, because the approximation error of the second level may destroy the result: the resulting p -values tend to be too close to 0.”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationreasoning§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 4Okutomi and Nakamura's three-level test allows increasing the sample size by N' times, and consequently increasing the power while avoiding an accumulation of computational errors.
“This allows us to increase the sample size by N ′ times, and consequently to increase the power while avoiding an accumulation of computational errors.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [16] Okutomi, 2010, A study on rational judgement method of randomness property using NIST randomnes test (in Japanese), Trans. Inst. Electron. Inf. Commun. Eng. A
Not checked in the free run.
May combine two claims.
Interpretationnone given§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5The presented method counts only the number of p-values at the second level, which has no approximation error introduced at this level under H0 and H'.
“On the other hand, the presented method counts only the number of p -values at the second level, which has no approximation error introduced at this level (under the hypotheses H 0 and H ′ ).”
Quote in the paperSubstantial claim- The authors state this as an assumption: In a statistical test, the distribution of f(X) under H0 is well-approximated by a known cumulative distribution F.
- The authors state this as an assumption: In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
May combine two claims. The quote only partly states this claim.
Interpretationreasoning§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5A three-level test that uses a GOF test on the entire distribution of N' p-values under the uniform hypothesis will detect approximation error at the second level and tends to give p-values nearly zero if the distribution of the test statistic at the second level is only approximated and the approximation error is significant.
“However, if the distribution of the test statistic at the second level is only approximated and the approximation error is significant, a three-level test will detect this approximation error, and tends to give p -values nearly zero.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim. May combine two claims.
Interpretationreasoning§ 3. Checking the quality of the approximation of the p -value by using a three-level test · p. 5In the paper's purpose, using good PRNGs so H0 is assumed, a rejection at the third level is interpreted as H' being rejected, i.e., the approximation of f(X) by F is not good enough.
“In our purpose, we use good PRNGs so that H 0 is assumed, and consider that H ′ is rejected, or equivalently the approximation of f ( X ) by F is not good enough.”
Quote in the paperSubstantial claim- The authors state this as an assumption: In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
May combine two claims.
Interpretationnone given§ 4.1. Results of the NIST test suite · p. 10For both the Random Excursions test and the Random Excursions Variant test, the first-level procedure yields a sequence of p-values that are uniform i.i.d. in [0,1] under the hypotheses H0 and H'.
“However, for the both tests, the first level procedure yields a sequence of p -values which are uniform i.i.d in [0 , 1] under the hypotheses H 0 and H ′ .”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based).
Interpretationnone given§ 1. Introduction · p. 2The criterion only makes use of the uniformity of p-values, meaning that a wide range of tests can be subjected to the three-level method.
“Furthermore, our criterion only makes use of the uniformity of p -values, meaning that a wide range of tests can be subjected to the three-level method.”
Quote in the paperNot a substantial claimMay combine two claims.
Interpretationown data§ 4.1. Results of the NIST test suite · p. 6The Discrete Fourier Transform, Overlapping Template Matching, Maurer's Universal Statistical, and Longest Runs of Ones in a Block tests have some flaws.
“This result indicates that those tests have some flaws.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S4 (based). May combine two claims.
Interpretationcitation§ 5. Concluding remarks · p. 16A Kolmogorov-Smirnov (KS) test seems to be more appropriate and more powerful than a χ2 GOF test at the third level.
“However, a Kolmogorov-Smirnov (KS) test seems to be more appropriate and more powerful.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 4.1. Results of the NIST test suite · p. 8The latest version of the NIST test suite uses the parameter d=4 proposed by Kim et al. for the DFT test.
“The latest version of the NIST test suite uses the parameter d = 4 proposed by Kim et al. [5].”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites [5] Kim, 2004, Corrections of the NIST Statistical Test Suite for Randomness, IACR Cryptology EPrint Archive
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing).
Interpretationown data§ 4.2. Results for SmallCrush and Crush in TestU01 · p. 15More mathematical justifications for the scomp_LempelZiv and sspectral_Fourier3 tests are needed.
“Indeed, the resulting p -values of those tests are smaller than 10 -300 , so more mathematical justifications for those tests are needed.”
Quote in the paperNot a substantial claimClassified as probably not a substantial claim.
Premisecitation§ 5. Concluding remarks · p. 16An accurate approximation of the KS distribution is now available [18].
“An accurate approximation of the KS distribution is now available [18]”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [18] Simard, 2011, Computing the two-sided Kolmogorov-Smirnov distribution, J. Statist. Softw. Articles source
The authors state this as an assumption.
In a statistical test, the distribution of f(X) under H0 is well-approximated by a known cumulative distribution F.
“In a statistical test, we assume that the distribution of f ( X ) under H 0 is well-approximated by a known (cumulative) distribution F .”
The authors state this as an assumption.
In this manuscript, H0 is assumed, i.e., the tested PRNGs are good.
“In this manuscript, H 0 is assumed and hence the precision of the approximation ( H ′ ) is rejected.”
The authors state this as an assumption.
The approximating distribution F in the hypothesis H' is continuous.
“Here we make an assumption: the approximating distribution F in the hypothesis H ′ is assumed to be continuous.”
The authors state this as an assumption.
H' includes the assumption that each probability mass is small enough to be negligible by itself.
“Thus, H ′ includes the assumption that each probability mass is small enough to be negligible by itself.”
The authors state this as an assumption.
The approximated statistics are continuous.
“In this study, we need to assume that the approximated statistics are continuous, because our three-level test is based on the uniformity of p -values in [0 , 1] at the first level.”
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
Each contradiction between two passages listed here was confirmed by an independent check.
Third-level probabilities use a different binomial model
MinorThe text says the counts follow B(N, 1−α), with α = 0.01. But the stated formula for p_i divides binomial coefficients by 2^N, which gives probabilities for B(N, 1/2), not the stated distribution.
“where p i = ∑ j ∈ C i ( N j ) / 2 N .”
“Therefore, T i should have the binomial distribution B ( N, 1 -α ).”
Cites
The Art of Computer Programming
Whitesides, G. E. (1970) · Nuclear Science and Engineering · doi:10.13182/nse70-a19705 · Cited by 6,263 · cited 3× · see citing works
“You can find further descriptions and explanations in [6, 7, 8, 9, 10, 12].”
BackgroundMethodMersenne twister: a 623-dimensionally equidistributed uniform pseudo-random number generator
Matsumoto, M., & Nishimura, T. (1998) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/272991.272995 · Cited by 5,780 · cited 1× · see citing works
“random number sequences at the first level, we adopt Mersenne Twister (MT) [15] and a PRNG from the SHA1 algorithm.”
MethodSelf-citationThe Art of Computer Programming. Volume 2: Seminumerical Algorithms.
Taussky, O., & Knuth, D. E. (1970) · American Mathematical Monthly · doi:10.2307/2317055 · Cited by 3,863 · see citing works
Bassham, L. E., Rukhin, A. L., Soto, J., Nechvatal, J. R., Smid, M. E., Barker, E. B., Leigh, S. D., Levenson, M., Vangel, M., Banks, D. L., et al. (2010) · NIST Special Publication 800-22 Revision 1a · doi:10.6028/nist.sp.800-22r1a · Cited by 3,617 · see citing works
TestU01: A C library for empirical testing of random number generators
L'Ecuyer, P., & Simard, R. (2007) · ACM Transactions on Mathematical Software · doi:10.1145/1268776.1268777 · Cited by 1,014 · cited 2× · see citing works
“Therefore, we should distinguish the right and left p -values [11, 12].”
MethodThe Art of Computer Programming, Vol. 2
Knuth, D. E. (1981) · Medical Entomology and Zoology · Cited by 861 · see citing works
Proceedings of the 2004 Winter Simulation Conference, 2004.
(2004) · doi:10.1109/wsc.2004 · Cited by 592 · see citing works
Principles of Discrete Event Simulation.
Johnson, M. E., & Fishman, G. S. (1980) · Journal of the American Statistical Association · doi:10.2307/2287424 · Cited by 542 · cited 1× · see citing works
“Fishman [3] shows that the statistic converges to normal with mean 0 and variance 1 / 144( n − k ). k ( We modified the original statistic 1 The sstring_Run test is a variant of the run test applicable to a bit sequence, which yields two p -values: the test statistics are based on a normal…”
MethodPrinciples of Discrete Event Simulation
Marshall, J. (1979) · Electronics and Power · doi:10.1049/ep.1979.0372 · Cited by 341 · see citing works
Uniform random number generation
L’Ecuyer, P. (1994) · Annals of Operations Research · doi:10.1007/bf02136827 · Cited by 268 · cited 1× · see citing works
“You can find further descriptions and explanations in [6, 7, 8, 9, 10, 12].”
BackgroundPareschi, F., Rovatti, R., & Setti, G. (2012) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2012.2185227 · Cited by 189 · cited 1× · see citing works
“In this case, computational errors accumulate at each level and two-level tests detect the Lack-Of-Fit of that approximation, leading to rejection even if the generator is good [7, 10, 13, 17].”
BackgroundComputing the Two-Sided Kolmogorov-Smirnov Distribution
Simard, R., & L'Ecuyer, P. (2011) · Journal of Statistical Software · doi:10.18637/jss.v039.i11 · Cited by 171 · cited 1× · see citing works
“An accurate approximation of the KS distribution is now available [18], so we should experiment with this method to obtain more decisive conclusions.”
MethodTestU01: A C Library for Empirical Testing of Random Number Generators
L’Ecuyer, P., & Simard, R. (2006) · Les Cahiers du GERAD · Cited by 136 · see citing works
Testing random number generators
L'Ecuyer, P. (1992) · Proceedings of the 24th conference on Winter simulation - WSC '92 · doi:10.1145/167293.167354 · Cited by 115 · cited 2× · see citing works
“In order to avoid such difficulties, a two-level test is often used, see [6, 7].”
BackgroundMethodCorrections of the NIST Statistical Test Suite for Randomness
Kim, S.-J., Umeno, K., & Hasegawa, A. (2004) · arXiv · doi:10.48550/arxiv.nlin/0401040 · Cited by 54 · see citing works
Sparse serial tests of uniformity for random number generators
L'Ecuyer, P., Simard, R., & Wegenkittl, S. (2002) · SIAM Journal on Scientific Computing · doi:10.1137/s1064827598349033 · Cited by 50 · cited 1× · see citing works
“In this case, computational errors accumulate at each level and two-level tests detect the Lack-Of-Fit of that approximation, leading to rejection even if the generator is good [7, 10, 13, 17].”
BackgroundTestu01: A c library for empirical testing of random number generators
L’Ecuyer, P., & Simard, R. (2014) · Cited by 42 · see citing works
Close-Point Spatial Tests and Their Application to Random Number Generators
L'Écuyer, P., Cordeau, J.-F., & Simard, R. (2000) · Operations Research · doi:10.1287/opre.48.2.308.12385 · Cited by 38 · cited 1× · see citing works
“You can find further descriptions and explanations in [6, 7, 8, 9, 10, 12].”
BackgroundOn the Security of Random Sources
Coron, J. S. (1999) · Lecture Notes in Computer Science · doi:10.1007/3-540-49162-7_3 · Cited by 37 · cited 1× · see citing works
“We use the modification by Coron [2], a variant test statistic which enables better detection of defects in the tested sequence.”
MethodCorrections of the NIST Statistical Test Suite for Randomness.
Kim, S.-J., Umeno, K., & Hasegawa, A. (2004) · Cited by 34 · see citing works
Note on a Proposed Test for Random Number Generators
Marsaglia (1985) · IEEE Transactions on Computers · doi:10.1109/tc.1985.1676623 · Cited by 33 · cited 1× · see citing works
“The smarsa_Savir2 test is a modified version of the Savir test proposed by Marsaglia [14].”
MethodCorrection of Overlapping Template Matching Test Included in NIST Randomness Test Suite
HAMANO, K., & KANEKO, T. (2007) · IEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences · doi:10.1093/ietfec/e90-a.9.1788 · Cited by 32 · cited 1× · see citing works
“NIST once used the probabilities derived by an approximation formula, and now it adopts more accurate values derived by [4].”
MethodTests based on sum-functions of spacings for uniform random numbers
Lecuyer, P. (1997) · Journal of Statistical Computation and Simulation · doi:10.1080/00949659708811859 · Cited by 14 · cited 1× · see citing works
“You can find further descriptions and explanations in [6, 7, 8, 9, 10, 12].”
Background今井, 秀., & Zheng, Y. (1999) · Springer eBooks · Cited by 2 · see citing works
Knuth, D. E., & Stong, R. (1997) · The American Mathematical Monthly · doi:10.2307/2975065
Flagged first, then by citations
1 of the 26 references couldn’t be matched to a known paper.
Research works printed but not linked: 1
- Okutomi, 2010, A study on rational judgement method of randomness property using NIST randomnes test (in Japanese), Trans. Inst. Electron. Inf. Commun. Eng. A, 93, 11
Cited by
Sorted by citations
(2020) · doi:10.1007/978-981-15-5191-8_6 · Cited by 30 · see citing works
SPAD-Based Quantum Random Number Generator With an $N^{\rm{th}}$ -Order Rank Algorithm on FPGA
Tontini, A., Gasparini, L., Massari, N., & Passerone, R. (2019) · IEEE Transactions on Circuits & Systems II Express Briefs · doi:10.1109/tcsii.2019.2909013 · Cited by 9 · see citing works
“Among several statistical tests for randomness in the literature [22]–[25], we have selected a two-level NIST Statistical Test Suite to assess the randomness of the proposed generator.”
MethodStudy on upper limit of sample size for a two-level test in NIST SP800-22
Haramoto, H. (2021) · Japan Journal of Industrial and Applied Mathematics · doi:10.1007/s13160-020-00434-y · Cited by 5 · see citing works
“According to [3], we use σ(2) 2 for variance in the following experiments.”
MethodSelf-citationChidambaram, N., Raj, P., Thenmozhi, K., et al. (2021) · Multimedia Tools and Applications · doi:10.1007/s11042-020-10210-2 · Cited by 4 · see citing works
Generating Multi-Dimensional Chaotic Sequences and Application in True Random S-Boxes Design
Hu, J. (2024) · International Conference on Neural Networks, Information and Communication Engineering (NNICE) · doi:10.1109/nnice61279.2024.10499184 · Cited by 3 · see citing works
Coverage study of the NIST SP 800-22 randomness statistical tests suite
Luengo, E. A. (2026) · Computational and Applied Mathematics · doi:10.1007/s40314-026-03663-y · Cited by 2 · see citing works
Study on upper limit of sample sizes for a two-level test in NIST SP800-22Preprint
Haramoto, H. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1912.10602
“According to [3], we use σ(2) 2 for variance in the following experiments.”
MethodSelf-citationThe relation between Proportion test and Uniformity test in NIST SP800-22
Iwasaki, A. (2020) · International Symposium on Information Theory and its Applications · doi:10.34385/proc.65.c01-8
- Authors
- Haramoto, H., & Matsumoto, M.
- Affiliations
- Ehime University (JP)
- Hiroshima University (JP)
- Corresponding author
- Haramoto, Hiroshi
- Venue
- Mathematics and Computers in Simulation
- Publisher
- Elsevier BV
- Published
- 2019-07
- Volume
- 161
- Pages
- 66-75
- ISSN
- 0378-4754 (ISSN-L)
- OpenAlex
- W2886864997
- Semantic Scholar
- 991edba7af434cf7bc2d313e2e842c3b67e72e56
- Cited by
- 8
- References
- 26
- Citations by year
- 2026: 1 · 2024: 1 · 2021: 1 · 2020: 3 · 2019: 2
- FWCI
- 1.41
- Type
- journal article
- Language
- en
- Open access
- bronze
- doi.org
- Licence
- Locations
- Mathematics and Computers in Simulation (acceptedVersion)
- arXiv (Cornell University) (submittedVersion)
- Funders
- JSPS KAKENHI (26310211, 15K13460, 16K13750, 17K14234, 18K03213)
- JST CREST
- Topics
- Physical Sciences › Mathematics › Numerical Analysis › Mathematical Approximation and Integration
- Physical Sciences › Mathematics › Statistics and Probability › Probability and Statistical Research
- Social Sciences › Decision Sciences › Management Science and Operations Research › Simulation Techniques and Applications
- Keywords
- pseudorandom number generators, randomness testing, p-value approximation, approximation error, NIST SP 800-22, TestU01, test reliability
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-09.
Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-09.
Cited sources are checked by gpt-6-sol.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review