How to make 5000w 250v Free Electric Generator at Home
How to make 5000w 250v Free Electric Generator at Home

nextuppreviouscontents
Next: Statistical Tests
Up: Generation of Pseudo-Random Numbers
Previous: Simple Applications; Monte-Carlo Estimators
&nbsp Contents

Linear Congruential Generators

  • Most simulation algorithms are based on standard random number
    generators,

    • whose goal is to generate sequences
      $ u_1,\ldots,u_n$ of numbers in
      the unit interval $ (0,1]$. These are the so-called standard
      pseudo-random numbers,
    • which can be regarded as realizations of independent and on $ (0,1]$
      uniformly distributed random variables
      $ U_1,\ldots,U_n$.
  • A commonly established procedure to generate standard pseudo-random
    numbers is the following linear congruential method,

As a next step we will solve the recursion equation
(1), i.e., we will show how the number $ z_k$ that
has been recursively defined in (1) can be
expressed directly by the initial value $ z_0$ and the
parameters $ m$, $ a$ and $ c$.

Proof
Remarks

We will now mention some (sufficient and necessary) conditions for
the parameters $ m$, $ a$, $ c$ and $ z_0$, respectively, ensuring
that the maximal possible period $ m$ is obtained.

A proof of Theorem 3.2 using results from
number theory (one of them being Fermat’s little theorem) can be
found e.g.

  • in Section 2.7 of B.D. Ripley Stochastic Simulation, J.
    Wiley & Sons, New York (1987) or
  • in Section 3.2 of D.E. Knuth (1997) The Art of Computer
    Programming, Vol. II, Addison-Wesley, Reading MA.
  • We also refer to these two texts for the discussion
    • of other generators for standard pseudo-random numbers like
      nonlinear congruential generators, shift-register generators and
      lagged Fibonacci generators as well as their combinations,
    • alternative conditions for the parameters $ m$, $ a$, $ c$ and $ z_0$ of
      the linear congruential generator defined in (1),
    • ensuring the generation of sequences
      $ z_1,\ldots,z_n$ whose period
      $ m_0$ is as large as possible and also exhibiting other desirable
      properties.
  • One of those properties is
    • that the points
      $ (u_1,u_2),\ldots,(u_{n-1},u_n)$ formed by pairs
      of consecutive pseudo-random numbers $ u_{i-1}$, $ u_i$ are
      uniformly spread over the unit square $ [0,1]^2$.
    • The following numerical examples illustrate that relatively small
      changes of the parameters $ a$ and $ c$ can result in completely
      different point patterns
      $ (u_1,u_2),\ldots(u_{n-1},u_n)$.
  • Further details can be found in the text by Ripley (1987) that has
    been already mentioned and in the lecture notes by H. Künsch
    (ftp://stat.ethz.ch/U/Kuensch/skript-sim.ps) that also contains the
    following figures.
Figure 3:
Point patterns for pairs
$ (u_{i-1},u_i)$ of consecutive
pseudo-random numbers for $ m=256$

Figure 4:
Point patterns for pairs
$ (u_{i-1},u_i)$ of consecutive
pseudo-random numbers for $ m=256$

Figure 5:
Point patterns for pairs
$ (u_{i-1},u_i)$ of consecutive
pseudo-random numbers for $ m=2048$

next
up
previous
contents

Next: Statistical Tests
Up: Generation of Pseudo-Random Numbers
Previous: Simple Applications; Monte-Carlo Estimators
&nbsp Contents
Ursa Pantle
2006-07-20

You are watching: Linear Congruential Generators. Info created by Bút Chì Xanh selection and synthesis along with other related topics.