Difference Between Datagen and Drand48

Chi-square Diatribution

Copying svidchi

svidchi is a program that allows you to create two histograms, based on two different randomizing generators. The resulting histograms are each analyzed for the chi-square test. The program displays the chi-square test result for each random number generator.

Two chi-square calculations are made.

The purpose of this program is to show that the random number generator in datagen compares favorably to the preferred pseudo-random number generator in the GNU libc library.

svidchi has the following parameters:

Examples of how to run the program.

      svidchi 10000 17

In this example, the program makes 10 thousand observations for success with 16 degrees of freedom.


References

The calculation for the chi-square test is described in the following book:

Lincoln L. Chao
Statistics for Management
2nd Edition
Palo Alto: The Scientific Press, 1984
Chapter 12, Chi-square Tests

Lincoln L. Chao published his book while at California State University, Long Beach.


The drand48 random number generator is documented in Debian info. Go to GNU libraries, libc, mathematics, pseudo-random numbers, SVID random.