Chi-square test for goodness of fit.
A program for generating random numbers on a computer is to be tested. The program is instructed to generate 100 single digit integers between 0 and 9. The frequencies of the observed integers were as follows:
Integer
|
0
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
Frequency
|
11
|
8
|
7
|
7
|
10
|
10
|
8
|
11
|
14
|
14
|
At the 0.05 level of significance, is there sufficient reason to believe that the integers are not being generated uniformly?
a. Solve using the p value approach.
b. Solve using the classical approach.