Implement the pseudo-random number generator Zi = 16807Zi-1 mod(2^31 – 1) in your favorite computer language. Using the seed ZO = 1234567, run the generator for 100,000 observations. Perform a x2 goodness-of-fit test on the resulting PRN's. (PRN stands for Pseudo Random Number.) Use 20 equal-probability intervals and level 0.05. Now perform a runs up-anddown %3D test with a = 0.05 on the observations to see if they are independent.

Elements Of Modern Algebra
8th Edition
ISBN:9781285463230
Author:Gilbert, Linda, Jimmie
Publisher:Gilbert, Linda, Jimmie
Chapter2: The Integers
Section2.7: Introduction To Coding Theory (optional)
Problem 8E: Suppose the probability of incorrectly transmitting a single bit is . Compute the probability of...
icon
Related questions
Question

Implement the pseudo-random number generator Zi = 16807Zi-1 mod(2^31 – 1) in your favorite computer language. Using the seed ZO = 1234567, run the generator for 100,000 observations. Perform a x2 goodness-of-fit test on the resulting PRN's. (PRN stands for Pseudo Random Number.) Use 20 equal-probability intervals and level 0.05. Now perform a runs up-anddown %3D test with a = 0.05 on the observations to see if they are independent.

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Elements Of Modern Algebra
Elements Of Modern Algebra
Algebra
ISBN:
9781285463230
Author:
Gilbert, Linda, Jimmie
Publisher:
Cengage Learning,
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage