Chi-Square Test

The chi-square test measures the distribution of the random number generator used in datagen. If the test passes, the numbers produced by datagen are spread evenly across the spectrum of possible numbers. Each number generated has an equal probability of occurrence.

Syntax

The syntax for programs with chi-square tests:

      chisq size categories
      realchi size categories
      binchi size categories
      flip size flips
      dice size #dice
      binom size n_trials p_success
      bnmerr confidence error_rate n_trials p_success
      poisson size mu
      poierr confidence error_rate mu
      smpl size x_length
      pwrball size
      pkrhnd size
      dicepkr size
      bingo size
      roulette size
      slots coins value

Example

      chisq 10000 17
      realchi 10000 17
      binchi 10000 17
      flip 10000 17
      dice 10000 5
      binom 10000 17 0.6
      bnmerr 95.0 0.01 17 0.6
      poisson 10000 2.0
      poierr 95.0 0.002 2.0
      smpl 10000 17
      pwrball 10000
      pkrhnd 10000
      dicepkr 10000
      bingo 10000
      roulette 10000
      slots 10000 0.10


Table of Contents     Job and Record Level Definitions
Field Level Definitions     Datagen Syntax
Supporting Routines     Powerball Test
    FAQ     Copying