Presentation is loading. Please wait.

Presentation is loading. Please wait.

Homework #2 Study the random number generator in C++ vs. the other one I have provided you (IBM) Make histograms of value frequencies (0 to 0.1, 0.1 to.

Similar presentations


Presentation on theme: "Homework #2 Study the random number generator in C++ vs. the other one I have provided you (IBM) Make histograms of value frequencies (0 to 0.1, 0.1 to."— Presentation transcript:

1 Homework #2 Study the random number generator in C++ vs. the other one I have provided you (IBM) Make histograms of value frequencies (0 to 0.1, 0.1 to 0.2, etc.) and the digit frequencies (1st through 6th decimal places) Which generator (if either) is the better one? BONUS: Make 3-D plot of random triplets (Excel can do it) and re-judge which better IBM = RANDU

2 What do I mean by value histogram?
FAQ: How many random #’s to generate? >=10,000 Make this plot for both generators Include error bars Statistical uncertainties are defined by √N Agreement among all bins good if within 1-2 ‘sigma’ Also, 6 x 2 plots for decimals: How often 0,1..9? random.org and Kaleidagraph Expectation values should be 1,000 per bin for 10,000 numbers (10%), so expected error is ~ Use agreement within errors or not to determine goodness of generator (either theoretical error or observed)

3 Extra Credit


Download ppt "Homework #2 Study the random number generator in C++ vs. the other one I have provided you (IBM) Make histograms of value frequencies (0 to 0.1, 0.1 to."

Similar presentations


Ads by Google