Work

Deviation of pseudorandom numbers and weight test (5th Workshop on Stochastic Numerics)

Year: 2001
Type: article
Abstract: We introduce atheoretical test, named weight discrepancy test, on pseudorandom number generators. This test measures the $\chi^{2}$ -discrepancy between the distribution of the number of ones in some specified bits in the generated sequence and the binomial distribution, under the assumption that the initial value is randomly selected. This test can be performed for most generators based on alinear recursion over the two element field F2, and predicts with high precision for which sample size the generator will be rejected by aclassical statistical test called the weight distribution test. This test may be considered as atheoretical version of aone dimensional random walk test. Differently ffom the empirical tests which can reject only very bad generators, this test assigns aranking to generators. Thus it is useful to select good generators, similarly to the spectral tests and the $k$ -distribution tests. This test rejects practically all generators linear over F2 that are known to fail in some physical tests although they pass fc-distribution tests. 1Necessity of atheoretical test on weight Among the numerous pseudorandom number generators available, some are known to be defective, and some seem to be good. For more than thirty years, GFSRs [ll] based on three-term relations are known to suffer from statistical nonsymmetricity between 0and 1and to be rejected by $\chi^{2}$ test on the goodness-0f-fit to the binomial distribution [12] [6] [3] [18] [16]. However, these warnings were not loud enough to reach the users. These three term GFSRs were introduced to the computational physics community by [8] suggesting the recursion $Xj=x\mathrm{j}-103$ $\oplus Xj-250$ , and became fairly popular. In middle $80' \mathrm{s}$ , physicists began to find the failure of these generators in simulations of physical models, such as Ising models [5] [2] [1] and random walks [4]. These physical models are simplified and proposed as tests of randomness in [23], which we call physical tests here. In these works some physicists proposed two ways of improving GFSR: one is to increase the degree of the recurrence (e.g.[2]), and the other is to use five or more-term relations (e.g. [24]). These follow from an intuitive observation that few-term relations in ashort range should lead to adeviation, and that increasing the number of terms or the range of the correlation will improve the deviation. These improvements are shown to be effective in the physical tests. However, it is not clear which degree will be sufficient, or how many terms are enough for the required randomness. Five term relations of degree 89 behave well for 10 samples, but are rejected for 10 samples by arandom walk test [23]. Afive-term relation of degree 1279 passed the test even for 10 samples. Is this enough? The computational power of the machines is increasing rapidly. Will some defect of such a generator be revealed in future? Or is it impossible for any future machine? These physical tests are interesting in that they clearly exhibit the defects of random number generators in practical computational physics. However, they are not powerful enough to select good generators.
Language: English
Open Access status: green
OpenAlex ID: W649914594
FWCI:
Cites: 19
Cited by:
Related to: 9