Question

In: Statistics and Probability

3. Develop a LCG random number generator in a spreadsheet for the following constants: Z0 =...

3. Develop a LCG random number generator in a spreadsheet for the following constants: Z0 = 17, a = 31, c= 5, and m = 73. Generate 72 random numbers. Change the value of a to 23 and describe what happens.

Solutions

Expert Solution

Here is the list of 72 random numbers generated using the LCG random number generator:

The calculations are shown below:

When a = 23 we get the following:

On changing a from 31 to 23 we have had a reversal of high values and low values i.e. the values that were on the higher end of the spectrum when a=31 are now on the lower end of the spectrum when a=23. For eg: - S.No 2 - 72 becomes 17 in the new scenario.

Please do upvote if you are satisfied! Let me know in the comments if anything is not clear. I will reply ASAP!


Related Solutions

Develop a random number generator for a Poisson distribution with mean = 10. Generate five values...
Develop a random number generator for a Poisson distribution with mean = 10. Generate five values manually with a random number table. Please show work.
Consider a linear congruential random number generator with parameters a = 3, m = 16, and...
Consider a linear congruential random number generator with parameters a = 3, m = 16, and c=0. Select the seed X0 = 3, and generate 3 random variables using this generator. What is the period of this generator?
Find the value of the standard normal random variable z, called z0 such that: (b)  P(−z0≤z≤z0)=0.3264 (c)  P(−z0≤z≤z0)=0.8332...
Find the value of the standard normal random variable z, called z0 such that: (b)  P(−z0≤z≤z0)=0.3264 (c)  P(−z0≤z≤z0)=0.8332 (d)  P(z≥z0)=0.3586 (e)  P(−z0≤z≤0)=0.4419 (f)  P(−1.15≤z≤z0)=0.5152
Match the following scenarios to their sampling method. A random number generator selects a subject’s ID...
Match the following scenarios to their sampling method. A random number generator selects a subject’s ID number You wish to take a survey of people’s opinion of your company’s workplace culture. It is made up of 7 departments and you randomly select a department and use everyone in it.   You select every 10th shopper that comes through the door to take a survey on your company’s products. A survey of military personal randomly selects 1% of personnel from each branch...
The Random class implements a random number generator, which produces sequences of numbers that appear to...
The Random class implements a random number generator, which produces sequences of numbers that appear to be random. To generate random integers, you construct an object of the Random class, and then apply the nextInt method. For example, the call generator.nextInt(6) gives you a random number between 0 and 5. Write a program DieSimulator that uses the Random class to simulate the cast of a die, printing a random number between 1 and 6 every time that the program is...
A random number generator picks a number from 7 to 68 in a uniform manner. Round...
A random number generator picks a number from 7 to 68 in a uniform manner. Round answers to 4 decimal places when possible. The mean of this distribution is The standard deviation is The probability that the number will be exactly 42 is P(x = 42) = The probability that the number will be between 16 and 28 is P(16 < x < 28) = The probability that the number will be larger than 48 is P(x > 48) =...
1.) Using excel. A random number generator picks a number from one to nine in a...
1.) Using excel. A random number generator picks a number from one to nine in a uniform manner. X ~ _________ Graph the probability distribution. f(x) = _________ μ = _________ σ = _________ P(3.5 < x < 7.25) = _________ P(x > 5.67) P(x > 5|x > 3) = _________ Find the 90th percentile. 2) using excel A subway train on the Red Line arrives every eight minutes during rush hour. We are interested in the length of time...
A random number generator picks a number from 18 to 64 in a uniform manner. Round...
A random number generator picks a number from 18 to 64 in a uniform manner. Round answers to 4 decimal places when possible. The mean of the distribution is: The standard deviation is: The probability that the number will be exactly 20 is P(x = 20) = The probability that the number will be between 24 and 26 is P(24 < x < 26) = The probability that the number will be larger than 32 is P(x > 32) =...
If Z is a standard normal random variable, find the value z0 for the following probabilities....
If Z is a standard normal random variable, find the value z0 for the following probabilities. (Round your answers to two decimal places.) (a) P(Z > z0) = 0.5 z0 = (b) P(Z < z0) = 0.9279 z0 = (c) P(−z0 < Z < z0) = 0.90 z0 = (d) P(−z0 < Z < z0) = 0.99 z0 =
A computer random number generator was used to generate 950 random digits from 0 to 9....
A computer random number generator was used to generate 950 random digits from 0 to 9. The observed frequencies of the digits are given in the table below. 0 1 2 3 4 5 6 7 8 9 88 82 97 84 87 87 95 93 90 147 Using a 0.05significance level, test the claim that all of the digits are equally likely. (a) Find the rejection region. Reject H0 if χ2> (b) Find the test statistic. (Round your final...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT