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. At the 0.05 level of significance, is there sufficient reason to believe that the integers are not being generated uniformly?
Integer | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
Frequency | 12 | 8 | 8 | 5 | 11 | 11 | 8 | 11 | 13 | 13 |
(a) Find the test statistic. (Round your answer to two decimal
places.)
(ii) Find the p-value. (Round your answer to four decimal
places.)
(a) The test statistic = 6.20
(ii) The p-value = 0.7197
observed | expected | O - E | (O - E)² / E |
12 | 10.000 | 2.000 | 0.400 |
8 | 10.000 | -2.000 | 0.400 |
8 | 10.000 | -2.000 | 0.400 |
5 | 10.000 | -5.000 | 2.500 |
11 | 10.000 | 1.000 | 0.100 |
11 | 10.000 | 1.000 | 0.100 |
8 | 10.000 | -2.000 | 0.400 |
11 | 10.000 | 1.000 | 0.100 |
13 | 10.000 | 3.000 | 0.900 |
13 | 10.000 | 3.000 | 0.900 |
100 | 100.000 | 0.000 | 6.200 |
6.20 | chi-square | ||
9 | df | ||
.7197 | p-value |
Please give me a thumbs-up if this helps you out. Thank you!
Get Answers For Free
Most questions answered within 1 hours.