MSc Simulation Practical: Week 6 (2001/2002)
MSc Simulation Practical: Week 6 MT 2002
Congruential Generators
1. Generate 100 pseudo-random numbers using the congruential generator RANDU. Start with an initial value [pic](the seed), and recursively compute values [pic],[pic], by letting:
[pic] mod [pic]
where [pic] and [pic]. The quantity [pic]is called a pseudo-random number.
• Test, using the Kolmogorov-Smirnov Test, whether the random numbers are distributed [pic]
• Repeat the above 1,000 times and obtain the proportion of the generated samples rejected by the KS Test at a 1% significance level. Construct a histogram of the 1,000 generated p-values. What do you observe?
Possible S-PLUS Code
As a pseudo-random number generator is a function, we can use the S-PLUS command function to implement it. It is possible to specify the arguments either generally, or by assigning values to them, which is what is suggested here.
generator ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- random number generation
- generating uniform random numbers
- wednesday august 11 131 minutes
- msc simulation practical week 6 2001 2002
- logging into the cluster
- pseudo random number generators with random cycle lengths
- spkp split plaintext key pair algorithm a novel method
- generation of pseudorandom numbers from microphone
- the original random number generator for 32 bit computers
- doc ieee 802 11 09 0680r0
Related searches
- 2001 ford 4.6 engine schematic
- 6 week online certificates
- 6 week cna class online
- 2001 ford 4 6 engine schematic
- 6 week navy seal workout
- 2002 ford 4 6 engine
- 2002 ford 4 6 firing order
- cna classes 6 week programs
- 6 week transvaginal ultrasound
- 6 week ultrasound image
- 6 week bulk up routine
- 2002 ford f150 4 6 engine