• Nie Znaleziono Wyników

Number theory plays an important role in the theory of various methods for generating uniform pseudorandom numbers in the interval [0, 1)

N/A
N/A
Protected

Academic year: 2021

Share "Number theory plays an important role in the theory of various methods for generating uniform pseudorandom numbers in the interval [0, 1)"

Copied!
6
0
0

Pełen tekst

(1)

LXIX.2 (1995)

An improved upper bound for the discrepancy of quadratic congruential pseudorandom numbers

by

urgen Eichenauer-Herrmann (Darmstadt) and Harald Niederreiter (Wien)

1. Introduction and main result. Number theory plays an important role in the theory of various methods for generating uniform pseudorandom numbers in the interval [0, 1). A well-known example is provided by the classical linear congruential method for the generation of uniform pseudo- random numbers, in which number-theoretic techniques are heavily used in the analysis of distribution properties and of the lattice structure (see [6, Chapter 3]). The family of nonlinear congruential methods represents another area of the theory of pseudorandom number generation where sig- nificant applications of number theory occur. These nonlinear congruential methods of generating uniform pseudorandom numbers have been studied intensively during the last years. Reviews of the development of this impor- tant area can be found in the survey articles [1–3], [7], [8], [10] and in the monograph [9]. The earliest nonlinear congruential approach is the quadratic congruential method proposed by Knuth [6, p. 25], which is considered in the present paper in the case of an odd prime power modulus m = pω with some prime p ≥ 3 and an integer ω ≥ 2. Let Zn= {0, 1, . . . , n − 1} for inte- gers n ≥ 1. For parameters a, b, c, y0∈ Zma quadratic congruential sequence (yn)n≥0 of elements of Zm is defined by

yn+1≡ ay2n+ byn+ c (mod m), n ≥ 0.

A sequence (xn)n≥0of quadratic congruential pseudorandom numbers in the interval [0, 1) is obtained by xn = yn/m for n ≥ 0. The sequences (xn)n≥0 and (yn)n≥0 are purely periodic with the maximum possible period length m if and only if the conditions a ≡ 0 (mod p), b ≡ 1 (mod p), c 6≡ 0 (mod p), and a 6≡ 3c (mod 9) for p = 3 are satisfied [6, p. 34]. We assume from now on that these conditions for the maximum possible period length hold.

Statistical independence properties of the generated sequences, which are very important for their usability in a stochastic simulation, can be analysed

[193]

(2)

based on the discrepancy of s-tuples of successive pseudorandom numbers with s ≥ 2. For N arbitrary points t0, t1, . . . , tN −1 ∈ [0, 1)s the discrepancy is defined by

DN(t0, t1, . . . , tN −1) = sup

J

|FN(J) − V (J)|,

where the supremum is extended over all subintervals J of [0, 1)s, FN(J) is N−1 times the number of points among t0, t1, . . . , tN −1 falling into J, and V (J) denotes the s-dimensional volume of J. In the present paper the pairs

xn= (xn, xn+1) ∈ [0, 1)2, n ≥ 0,

of successive quadratic congruential pseudorandom numbers are considered and the abbreviation

Dm(2)= Dm(x0, x1, . . . , xm−1) is used.

In [4] upper and lower bounds for the discrepancy Dm(2)have been estab- lished. These results suggest that it is reasonable to choose the parameter a in such a way that a 6≡ 0 (mod p2). Then the upper bound for D(2)m has the form

D(2)m < (4 + 5p−3/2)m−1/2p1/2

1

πlog m + 1 5

2

+ 2m−1,

i.e., the upper bound is of an order of magnitude m−1/2p1/2(log m)2. It should be observed that the discrepancy of m independent and uniformly dis- tributed random points from [0, 1)2is almost always of an order of magnitude between m−1/2and m−1/2(log log m)1/2according to the law of the iterated logarithm for discrepancies [5]. The following main result of the present pa- per provides an improved upper bound for D(2)m which is of an order of mag- nitude m−1/2(p1/2+ p−1/2(log m)2). Hence, for ω = ω(p) ∼ p1/2(log p)−1, its order of magnitude can be made as small as m−1/2log m.

Theorem. The discrepancy D(2)m of pairs in the quadratic congruential method with modulus m = pω and a 6≡ 0 (mod p2) satisfies

Dm(2)< (4 + 5p−3/2)m−1/2

×

1

9p1/2+ 1 π2p−1/2



log m + 3 log p



(log m + 1.395)



+ 2m−1. 2. Auxiliary results. First, some further notation is necessary. For integers k ≥ 1 and q ≥ 2 let Ck(q) be the set of all nonzero lattice points (h1, . . . , hk) ∈ Zk with −q/2 < hj ≤ q/2 for 1 ≤ j ≤ k. Define

r(h, q) =

q sin(π|h|/q) for h ∈ C1(q),

1 for h = 0,

(3)

and

r(h, q) = Yk j=1

r(hj, q)

for h = (h1, . . . , hk) ∈ Ck(q). For real t the abbreviation e(t) = e2πitis used, and u · v stands for the standard inner product of u, v ∈ Rk. Subsequently, two known results are stated which follow from [9, Theorem 3.10] and [4, Lemma 7(a)], respectively. The third lemma is crucial for the proof of the main result.

Lemma 1. Let N ≥ 1 and q ≥ 2 be integers. Let tn = yn/q ∈ [0, 1)k with yn∈ Zkq for 0 ≤ n < N . Then the discrepancy of the points t0, t1, . . . , tN −1 satisfies

DN(t0, t1, . . . , tN −1) ≤ k q + 1

N X

h∈Ck(q)

1 r(h, q)

N −1X

n=0

e(h · tn) .

Lemma 2. Let (xn)n≥0 be the sequence of pairs of successive quadratic congruential pseudorandom numbers as defined above. Let h = (h1, h2) ∈ C2(m) with gcd(h2, pω−1) = pν and ν ∈ {0, 1, . . . , ω − 1}. Then

m−1X

n=0

e(h · xn) =

p(ω+ν+1)/2 for h1+ h2≡ 0 (mod pν+1), 0 for h1+ h26≡ 0 (mod pν+1).

Lemma 3. Let q = pαwith some prime p ≥ 3 and an integer α ≥ 1. Then X

h=(h1,h2)∈C2(q) h1h26≡0 (mod p) h1+h2≡0 (mod p)

1

r(h, q) < 4 π2p



log q + 3 log p



(log q + 1.395) + 4 9.

P r o o f. (i) First, two preliminary estimates are established. Straightfor- ward calculations show that

(p−1)/2X

d=1

p

d(p − d) < p p − 1 +

Rp/2 1

p x(p − x)dx

= log p + p

p − 1 − log

 p p − 1



< log p + 1.095 and

(p−1)/2X

d=1

p2

d2(p − d)2 < p2 (p − 1)2 +

Rp/2 1

p2

x2(p − x)2dx

= 2 + p

(p − 1)2 +2

plog(p − 1)

(4)

= 2

plog p + 2 + 1 p

 p2

(p − 1)2 − log

 p2 (p − 1)2



< 2

plog p + 2 + 1.44 p .

(ii) Now, for α ≥ 2 and any integer d ∈ {1, . . . , p − 1} one obtains

(q−1)/2X

h≡d (mod p)h=1

1 r(h, q)

< 1 r(d, q) +

(q−2d)/(2p)R

0

1

q sin(π(px + d)/q)dx

= 1

r(d, q) 1

πplog(tan(πd/(2q))) < 1

r(d, q) 1

πplog(πd/(2q))

< 1

q sin(πd/q) + 1

πplog q −0.143 p < 1

3d + 1

πplog q − 0.143 p , where in the last step 6d ≤ q has to be assumed. It follows by inspection that the resulting estimate remains valid for d = 2 and q = 9. Therefore

X

h∈C1(q) h≡d (mod p)

1 r(h, q) =

(q−1)/2X

h≡d (mod p)h=1

1 r(h, q) +

(q−1)/2X

h≡p−d (mod p)h=1

1 r(h, q)

< p

3d(p − d)+ 2

πplog q −0.286 p for α ≥ 2 and any d ∈ {1, . . . , p − 1}.

(iii) Finally, it follows from the estimates in (ii) and (i) that for α ≥ 2, X

h=(h1,h2)∈C2(q) h1h26≡0 (mod p) h1+h2≡0 (mod p)

1 r(h, q)

=

p−1X

d=1

X

h1∈C1(q) h1≡d (mod p)

X

h2∈C1(q) h2≡p−d (mod p)

1 r(h1, q)r(h2, q)

<

p−1X

d=1

 p

3d(p − d) + 2

πplog q − 0.286 p

2

< 2 9

2

plog p + 2 +1.44 p

 +4

3

 2

πplog q − 0.286 p



(log p + 1.095)

(5)

+ p

 2

πplog q − 0.286 p

2

< 4 π2p



log q + 3 log p



(log q + 1.395) +4 9, which is the desired result.

(iv) For α = 1, it follows from sin x > x(π − x)/π for x ∈ (0, π) and the second part of (i) that

X

h=(h1,h2)∈C2(p) h1h26≡0 (mod p) h1+h2≡0 (mod p)

1 r(h, p) = 2

(p−1)/2X

d=1

1 (p sin(πd/p))2

< 2 π2

(p−1)/2X

d=1

p2

d2(p − d)2 < 4

π2p(log p + 0.72) + 4 π2, which completes the proof.

3. Proof of the Theorem. First, Lemma 1 is applied with k = 2, q = N = m, and tn= xn for 0 ≤ n < m. This yields

D(2)m 2 m + 1

m X

h∈C2(m)

1 r(h, m)

m−1X

n=0

e(h · xn)

= 2 m + 1

m

ω−1X

ν=0

X

h=(h1,h2)∈C2(m) gcd(h2,pω−1)=pν

1 r(h, m)

m−1X

n=0

e(h · xn)

= 2

m + p1/2 m1/2

ω−1X

ν=0

pν/2 X

h=(h1,h2)∈C2(m) gcd(h2,pω−1)=pν h1+h2≡0 (mod pν+1)

1 r(h, m)

= 2

m + p1/2 m1/2

ω−1X

ν=0

p−3ν/2 X

g=(g1,g2)∈C2(pω−ν) g1g26≡0 (mod p) g1+g2≡0 (mod p)

1 r(g, pω−ν),

where in the penultimate step Lemma 2 has been used. Now, it follows from Lemma 3 that

D(2)m < 2

m + p1/2 m1/2

ω−1X

ν=0

p−3ν/2

×

 4 π2p



log pω−ν + 3 log p



(log pω−ν + 1.395) + 4 9



(6)

< 2

m + p1/2 m1/2

X

ν=0

(p−3/2)ν



×

 4 π2p



log m + 3 log p



(log m + 1.395) +4 9



< 2

m + p1/2 m1/2



1 + 5 4p3/2



×

 4 π2p



log m + 3 log p



(log m + 1.395) +4 9

 , which yields the desired result.

References

[1] J. E i c h e n a u e r - H e r r m a n n, Inversive congruential pseudorandom numbers: a tu- torial, Internat. Statist. Rev. 60 (1992), 167–176.

[2] —, Inversive congruential pseudorandom numbers, Z. Angew. Math. Mech. 73 (1993), T644–T647.

[3] —, Pseudorandom number generation by nonlinear methods, Internat. Statist. Rev., to appear.

[4] J. E i c h e n a u e r - H e r r m a n n and H. N i e d e r r e i t e r, On the discrepancy of qua- dratic congruential pseudorandom numbers, J. Comput. Appl. Math. 34 (1991), 243–249.

[5] J. K i e f e r, On large deviations of the empiric d.f. of vector chance variables and a law of the iterated logarithm, Pacific J. Math. 11 (1961), 649–660.

[6] D. E. K n u t h, The Art of Computer Programming, Vol. 2, Seminumerical Algo- rithms, 2nd ed., Addison-Wesley, Reading, Mass., 1981.

[7] H. N i e d e r r e i t e r, Recent trends in random number and random vector generation, Ann. Oper. Res. 31 (1991), 323–345.

[8] —, Nonlinear methods for pseudorandom number and vector generation, in: Simu- lation and Optimization, G. Pflug and U. Dieter (eds.), Lecture Notes in Econom.

and Math. Systems 374, Springer, Berlin, 1992, 145–153.

[9] —, Random Number Generation and Quasi-Monte Carlo Methods, SIAM, Philadel- phia, Penn., 1992.

[10] —, Pseudorandom numbers and quasirandom points, Z. Angew. Math. Mech. 73 (1993), T648–T652.

FACHBEREICH MATHEMATIK INSTITUT F ¨UR INFORMATIONSVERARBEITUNG TECHNISCHE HOCHSCHULE DARMSTADT OSTERREICHISCHE AKADEMIE¨

SCHLOSSGARTENSTRASSE 7 DER WISSENSCHAFTEN

D-64289 DARMSTADT, F.R.G. SONNENFELSGASSE 19

A-1010 WIEN, AUSTRIA E-mail: NIED@QIINFO.OEAW.AC.AT

Received on 18.7.1994 (2640)

Cytaty

Powiązane dokumenty

Let us number the

This is the first nontrivial discrepancy bound for parts of the period of inversive congruential pseudo- random numbers with prime-power modulus.. An analogous result for prime

In the last few years a number of authors have investigated nonlinear problems in additive prime number theory for short intervals.. Wolke from the Department of Mathematics at

In analogy to Lemma 2.1 the integral on the left-hand side exists since the boundary lies in a finite union of hyperplanes... Heights and

Soon after that, employing Vinogradov’s idea, Hua Loo Keng [3] proved that if B is a sufficiently large positive constant and N is sufficiently large, then the even numbers in (2, N

CAN STARCH BE A REAGENT IN NON-ENZYMA TIC GL YCOSYLA TION O F PROTEINS 201 investigation was carried out to verify the hypothesis that starch can react on the non-

/5 points/ Apply rejection method to generate random numbers with p.d.f.. g() and

(1 point) The sides of a rectangle has been measured to be 40cm and 50cm correct to the nearest 10cmA. The lower bound for the area of the rectangle is (select all