Question: Write a code to test a Gaussian pseudorandom number generator. If you do not have a canned generator available, write a generator based on the

Write a code to test a Gaussian pseudorandom number generator. If you do not have a canned generator available, write a generator based on the Box-Muller algorithm in Appendix I. Apply the following tests: average \(\langle xangle=0\), variance \(\left\langle x^{2}\rightangle=1\), and the pair correlations test \(\left\langle x_{i+k} x_{i}\rightangle=0\) for \(k eq 0\). Generate a histogram of pairs of numbers in two dimensions and test that the distribution is statistically Gaussian.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mechanics Questions!