Diehard tests

The diehard tests are a battery of statistical tests for measuring the quality of a random number generator. They were developed by George Marsaglia over several years and first published in 1995 on a CD-ROM of random numbers.

Test overview

Test descriptions from The Marsaglia Random Number CDROM[2]

NOTE: Most of the tests in DIEHARD return a p-value, which should be uniform on [0,1) if the input file contains truly independent random bits. Those p-values are obtained by p = F(X), where F is the assumed distribution of the sample random variable X – often normal. But that assumed F is just an asymptotic approximation, for which the fit will be worst in the tails. Thus you should not be surprised with occasional p-values near 0 or 1, such as 0.0012 or 0.9983. When a bit stream really FAILS BIG, you will get ps of 0 or 1 to six or more places. By all means, do not, as a statistician might, think that a p < 0.025 or p > 0.975 means that the RNG has "failed the test at the 0.05 level". Such ps happen among the hundreds that DIEHARD produces, even with good RNG's. So keep in mind that "p happens".

See also

Notes

External links

This article is issued from Wikipedia - version of the 5/17/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.