Jump to content

Generalized inversive congruential pseudorandom numbers: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
cat
Manuelnl (talk | contribs)
No edit summary
Line 14: Line 14:




where<math> \phi(m)=(p_{1}-1)...(p_{r}-1) </math>denotes the number of positive integers less than ''m'' which are [[Coprime|relatively prime]] to ''m''.<ref name="three"/>
where<math> \phi(m)=(p_{1}-1)...(p_{r}-1) </math>denotes the number of positive integers less than ''m'' which are [[Coprime|relatively prime]] to ''m''.


'''Example:'''
=='''Example:'''==


Let take m = 15 = <math> 3 \times 5\,</math>, a=2 , b=3 and y<sub>0</sub> = 1. Hence <math> \phi (m)= 2 \times 4=8 \,</math> and the sequence <math> (y_{n})_{n \geqslant 0}=(1,5,13,2,4,7,1,.....) </math> is not maximum.
Let take m = 15 = <math> 3 \times 5\,</math>, a=2 , b=3 and y<sub>0</sub> = 1. Hence <math> \phi (m)= 2 \times 4=8 \,</math> and the sequence <math> (y_{n})_{n \geqslant 0}=(1,5,13,2,4,7,1,.....) </math> is not maximum.
Line 53: Line 53:




==Results on the discrepancy of the GIC Generator==
==Bounderies of the discrepancy of the GIC Generator==




We use the notation <math>D_m ^{s}=D_m (x_0,..., x_m-1)</math> where <math> x_n=(x_n, x_n+1 ,..., x_n+s-1) </math> {{math| &isin; }} <math> [0,1)^s </math> of Generalized Inversive Congruential Pseudorandom Numbers for s {{math| &ge; }} 2
We use the notation <math>D_m ^{s}=D_m (x_0,..., x_m-1)</math> where <math> x_n=(x_n, x_n+1 ,..., x_n+s-1) </math> {{math| &isin; }} <math> [0,1)^s </math> of Generalized Inversive Congruential Pseudorandom Numbers for s {{math| &ge; }} 2


'''Higher bound'''

'''Theorem 2:'''

Let s {{math| &ge; }} 2
Let s {{math| &ge; }} 2
Then the discrepancy <math> D_m </math> <math> ^s </math> satisfies
Then the discrepancy <math> D_m </math> <math> ^s </math> satisfies
<math> D_m </math> <math> ^s </math> < <math> m^{-1/2}</math> {{math| &times; }} <math> ( \frac{2}{\pi}</math> {{math| &times; }}<math> \log m + \frac{7}{5})^s</math> {{math| &times; }} <math> \textstyle \prod_{i=1}^r (2s-2 + s(p_i)^{-1/2})+ s_{m}^{-1} </math> for any Generalized Inversive Congruential operator.
<math> D_m </math> <math> ^s </math> < <math> m^{-1/2}</math> {{math| &times; }} <math> ( \frac{2}{\pi}</math> {{math| &times; }}<math> \log m + \frac{7}{5})^s</math> {{math| &times; }} <math> \textstyle \prod_{i=1}^r (2s-2 + s(p_i)^{-1/2})+ s_{m}^{-1} </math> for any Generalized Inversive Congruential operator.


'''Theorem 3:'''
'''Lower bound:'''


There exist Generalized Inversive Congruential Generators with
There exist Generalized Inversive Congruential Generators with
Line 93: Line 91:
<ref name="one"> G. H. Hardy and E. M. Wright,An introduction to the theory of numbers, 5th ed., Clarendon Press,Oxford,1979. </ref>
<ref name="one"> G. H. Hardy and E. M. Wright,An introduction to the theory of numbers, 5th ed., Clarendon Press,Oxford,1979. </ref>
<ref name="two">J. Kiefer, On large deviations of the empiric d.f. Fo vector chance variables and a law of the iterated logarithm, PacificJ. Math. 11(1961), pp. 649-660.</ref>
<ref name="two">J. Kiefer, On large deviations of the empiric d.f. Fo vector chance variables and a law of the iterated logarithm, PacificJ. Math. 11(1961), pp. 649-660.</ref>

<ref name="three">J. Eichenauer, J. Herrmann, On Generalized Inversive Congruential Pseudorandom Numbers, American Mathematical Society.</ref>
}}
}}
==Notes==
*{{citation
| last=Eichenauer-Herrmann
| first=Jürgen
| title=On Generalized Inversive Congruential Pseudorandom Numbers
| year=1994
| edition=first
| publisher=American Mathematical Society
|url=http://www.jstor.org/stable/2153575
}}



[[Category:Pseudorandom number generators]]
[[Category:Pseudorandom number generators]]

Revision as of 09:34, 24 January 2011

An approach to nonlinear congruential methods of [[Pseudorandom number generator |generating uniform pseudorandom numbers]] in the interval [0,1) is the Inversive congruential generator with prime modulus .A generalization for arbitrary composite moduli m = p1...pr with arbitrary distinct [[Prime number |primes]] p1,..., pr ≥ 5 will be present here.

Let .For integers with gcd (a,m) = 1 a generalized inversive congruential sequence of elements of is defined by


wheredenotes the number of positive integers less than m which are relatively prime to m.

Example:

Let take m = 15 = , a=2 , b=3 and y0 = 1. Hence and the sequence is not maximum.


The result below shows that these sequences are closely related to the following inversive congruential sequence with prime moduli.

For let and be integers with

Let be a sequence of elements of , given by


Theorem 1

Let for be defined as above. Then

This theorem shows that an implementation of Generalized Inversive Congruential Generator is possible,where exact integer computations have to be performed only in but not in

Proof:

First,observe that and hence if and only if , for which will be shown on induction on .


Recall that is assumed for . Now, suppose that and for some integer . Then straightforward calculations and Fermat's Theorem yield

,

which implies the desired result.

Generalized Inversive Congruential Pseudorandom Numbers are well equidistributed in one dimension; A reliable theoretical approach for assessing their statistical independence properties is based on the discrepancy of s-tuples of pseudorandom numbers.


Bounderies of the discrepancy of the GIC Generator

We use the notation where of Generalized Inversive Congruential Pseudorandom Numbers for s 2

Higher bound Let s 2 Then the discrepancy satisfies < × × × for any Generalized Inversive Congruential operator.

Lower bound:

There exist Generalized Inversive Congruential Generators with × × for all dimension s 2.

For a fixed number r of prime factors of m,theorem 2 shows that for any Generalized Inversive Congruential Sequence.In this case Theorem 3 implies that there exist Generalized Inversive Congruential Generators having a discrepancy which is at least of the order of magnitude for all dimension s 2.However,if m is composed only of small primes,then r can be of an order of magnitude and hence for every [1].Therefore,one obtains in the general case for every .


Since , similar arguments imply that in the general case the lower bound in Theorem 3 is at least of the order of magnitude for every . It is this range of magnitudes where one also finds the discrepancy of m independent and uniformly distributed random points which almost always has the order of magnitude according to the law of the iterated logarithm for discrepancies [2].In this sense, Generalized Inversive Congruential Pseudo-random Numbers model true random numbers very closely.

See also


References

  1. ^ G. H. Hardy and E. M. Wright,An introduction to the theory of numbers, 5th ed., Clarendon Press,Oxford,1979.
  2. ^ J. Kiefer, On large deviations of the empiric d.f. Fo vector chance variables and a law of the iterated logarithm, PacificJ. Math. 11(1961), pp. 649-660.

Notes

  • Eichenauer-Herrmann, Jürgen (1994), On Generalized Inversive Congruential Pseudorandom Numbers (first ed.), American Mathematical Society