Web site designers - 3.3.4 THE SPECTRAL TEST 89 3.3.4. The Spectral
Saturday, May 5th, 20073.3.4 THE SPECTRAL TEST 89 3.3.4. The Spectral Test In this section we shall study an especially important way to check the quality of linear congruential random number generators; not only do all good generators pass this test, all generators now known to be bad actually fail it. Thus it is by far the most powerful test known, and it deserves particular attention. Our discussion will also bring out some fundamental limitations on the degree of ran- domness we can expect from linear congruential sequences and their generaliza- tions. The spectral test embodies aspects of both the empirical and theoretical tests studied in previous sections: it is like the theoretical tests because it deals with properties of the full period of the sequence, and it is like the empirical tests because it requires a computer program to determine the results. A. Ideas underlying the test. The most important randomness criteria seem to rely on properties of the joint distribution of t consecutive elements of the sequence, and the spectral test deals directly with this distribution. If we have a sequence (Un) of period m, the idea is to analyze the set of all m points {v&L, &x+1,. . . , Un+t-1) > (1) in t-dimensional space. For simplicity we shall assume that we have a linear congruential sequence (X~,a,c,m) of maximum period length m (so that c # 0), or that m is prime and c = 0 and the period length is m -1. In the latter case we shall add the point (0, 0, . . . ,O) to the set (l), so that there are always m points in all; this extra point has a negligible effect when m is large, and it makes the theory much simpler. Under these assumptions, (1) can be rewritten as -I~(z,s(x),s(s(z)),. . . , s - (x)) /0 5 z < m}, where s(x) = (ax + c) mod m (3) is the successor of 5. Note that we are considering only the set of all such points in t dimensions, not the order in which those points are actually generated. But the order of generation is reflected in the dependence between components of the vectors; and the spectral test studies such dependence for various dimensions t by dealing with the totality of all points (2). For example, Fig. 8 shows a typical small case in 2 and 3 dimensions, for the generator with s(z) = (1372 + 187) mod 256. (4 Of course a generator with period length 256 will hardly be random, but 256 is small enough that we can draw the diagram and gain some understanding before we turn to the larger m s that are of practical interest.
Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision php5 hosting services