Study on upper limit of sample sizes for a two-level test in NIST SP800-22

12/23/2019
by   Hiroshi Haramoto, et al.
0

NIST SP800-22 is one of the widely used statistical testing tools for pseudorandom number generators (PRNGs). This tool consists of 15 tests (one-level tests) and two additional tests (two-level tests). Each of one-level tests provides one or more p-values. The two-level tests measure the uniformity of the obtained p-values for a fixed one-level test. One of the two-level tests is to categorize the p-values into ten intervals of equal length, and apply a chi-squared goodness-of-fit test.This two-level test is often more powerful than one-level tests, but sometimes it rejects even good PRNGs when the sample size at the second level is too large, since it detects approximation errors in the computation of p-values. In this paper, we propose a practical upper limit of the sample size in this two-level test, for each of six tests appeared in SP800-22. These upper limits are derived by the chi-squared discrepancy between the distribution of the approximated p-values and the uniform distribution U(0, 1). We also computed a "risky" sample size at the second level for each one-level test. Experiments show that the two-level test with the proposed upper limit gives appropriate results, while using the risky size often rejects even good PRNGs. We also propose another improvement: to use the exact probability for the ten categories in the computation of goodness-of-fit at the two-level test. This allows us to increase the sample size at the second level, and would make the test more sensitive than the NIST's recommending usage.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/15/2021

Second-level randomness test based on the Kolmogorov-Smirnov test

We analyzed the effect of the deviation of the exact distribution of the...
research
02/16/2021

Numerically more stable computation of the p-values for the two-sample Kolmogorov-Smirnov test

The two-sample Kolmogorov-Smirnov test is a widely used statistical test...
research
12/06/2021

Pearson's goodness-of-fit tests for sparse distributions

Pearson's chi-squared test is widely used to test the goodness of fit be...
research
04/28/2023

Using Perturbation to Improve Goodness-of-Fit Tests based on Kernelized Stein Discrepancy

Kernelized Stein discrepancy (KSD) is a score-based discrepancy widely u...
research
03/16/2023

Limit setting using spacings in the presence of unknown backgrounds

Finding upper limits on the rate of events from a proposed process in th...
research
07/26/2018

Fast computation of p-values for the permutation test based on Pearson's correlation coefficient and other statistical tests

Permutation tests are among the simplest and most widely used statistica...
research
06/17/2022

AutoML Two-Sample Test

Two-sample tests are important in statistics and machine learning, both ...

Please sign up or login with your details

Forgot password? Click here to reset