Random numbers,uniform distribution,cont. We will tactically assume that such sequences can be generated on our computers. The issue of producing such(reproducible (!)for code verification)se- quences leads into number theory,and too far away from the applicati- ons. Typical random number generators used today have a near perfect uni- form distribution,are near independent,and have a periodicity determi- ned by the largest integer which can be represented on a given machi- ne. (Note:in massively parallel computing,with many tens of millions samp- les drawn rapidly,this periodicity may require special attention
Algorithms for producing uniform distribution: > Mid-square method > Linear congruential method Nonlinear congruential method > Inversive congruential method > Quadratic congruence method > Cubic congruence method BBS method Fibonacci method > Delayed Fibonacci Method Shift register method > Decimal method
Algorithms for producing uniform distribution: Mid-square method Linear congruential method Nonlinear congruential method Inversive congruential method Quadratic congruence method Cubic congruence method BBS method Fibonacci method Delayed Fibonacci Method Shift register method Decimal method
We will see next Any continuous distribution can be generated from uniform random numbers on [0,1] Any discrete distribution can be generated from uniform random numbers on [0,1] Hence: Any given distribution can be generated from uniform random numbers on [0,1]
We will see next: Any continuous distribution can be generated from uniform random numbers on [0,1] Any discrete distribution can be generated from uniform random numbers on [0,1] Hence: Any given distribution can be generated from uniform random numbers on [0,1]
Random numbers,general distributions Transformation from uniform random numbers to random numbers with other distributions (e.g.:Maxwellian distribution,Poisson distr.,etc...) i.e..R[0,1]-P,with distribution P specified. Measure-theory:each "measure"can be decomposed into a weighted sum of three parts: part 1.)has a continuous distribution (with a probability density) part 2.)has a discrete distribution part 3.)is a "pathological"contribution,which is required for the ab- stract mathematical case only (general measurable spaces witho- algebras,....),but which does not occur in practical Monte-Carlo app- lications
Random numbers,general distributions 1.Direct Method: 1)let-oo<a<b<oo R[0,1]:=(b-a)z+a R[a,b] Proof:transformation of random variables,see:Mathematical theory of probability. 2)Discrete uniform distribution ("Laplace distribution")on {j,j+ 1,j+n-1},j∈N R[0,1]X:=[nz]+j is Laplace distributed on {j,j+1,…j+n-1} i.e.P(X=i)=1/n for all i from fj,j+1,....j+n-1 especially:j=0,n=2:coin;j=1,n=6:dice;j=0,n=37:Roulette
1. Direct Method: