commonly used (Foley, 2001). The formula for the test is: x = ∑ (O
RANDOM NUMBER GENERATION 23
the summation is over all the available categories. O represents the actual number of
entries in
the category, and
E is the expected number of entries. For example, if the
random numbers were scattered one through six, then there would be six categories, and
the number of times each value appeared in the sequence would become the values of O.
When the resulting value is above the chosen significance level, then it can be said that
the values in the sequence are uniformly distributed. Because this test is simple, it can be
run many times on different sequences with relative ease to increase the chance of its
accuracy (Foley, 2001).
Do'stlaringiz bilan baham: