Simulation and Modelling - Cat One
Simulation and Modelling - Cat One
(1) How could random numbers that are uniform on the interval [0,1]
be transformed into random numbers that are uniform on the
interval [-11,17]?
(2) Use the linear congruential method to generate a sequence of
three two-digit random integers and corresponding random
numbers. Let X 0=27 , a=8 , c=47 and m=100 .
(3) Use the multiplicative congruential method to generate a
sequence of four three -digit random integers and corresponding
random numbers. Let X 0=117 , a=43 and m=1000 .
(4) The sequence of numbers 0.54,0.73,0.98,0.11 and 0.68 has been
generated. Use the Kolmogorov smirnov test with α =0.05 to learn
whether the hypothesis that the numbers are uniformely distributed
on the interval [0,1] can be rejected.
(5) Figure out whether these linear congruential generators can
achieve a maximum period; also, state restrictions on X 0 to obtain
this period.
(a)The mixed congruential method with a=2,814,749,767,109
C=59,482,661,568,307, m=2 .
48