Question

In: Statistics and Probability

A program for generating random numbers on a computer is to be tested. The program is...

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 9 7 9 6 10 14 8 10 12 15

(a) Find the test statistic. (Round your answer to two decimal places.)


(ii) Find the p-value. (Round your answer to four decimal places.)


(b) State the appropriate conclusion.

Reject the null hypothesis. There is significant evidence that the integers are not being generated uniformly. Fail to reject the null hypothesis. There is significant evidence that the integers are not being generated uniformly.     Fail to reject the null hypothesis. There is not significant evidence that the integers are not being generated uniformly. Reject the null hypothesis. There is not significant evidence that the integers are not being generated uniformly.



You may need to use the appropriate table in Appendix B to answer this question.

Solutions

Expert Solution

Solution:

Here, we have to use chi square test for independence of two categorical variables.

Null hypothesis: H0: Data follows uniform distribution.

Alternative hypothesis: Ha: Data do not follow uniform distribution.

We are given level of significance = α = 0.05

Test statistic formula is given as below:

Chi square = ∑[(O – E)^2/E]

Where, O is observed frequencies and E is expected frequencies.

We are given

N = 10

Degrees of freedom = df = N – 1 = 10 – 1 = 9

α = 0.05

Critical value = 16.92

(by using Chi square table or excel)

Calculation tables for test statistic are given as below:

Integer

Frequency (O)

Expected (E)

(O - E)^2

(O - E)^2/E

0

9

10

1

0.1

1

7

10

9

0.9

2

9

10

1

0.1

3

6

10

16

1.6

4

10

10

0

0

5

14

10

16

1.6

6

8

10

4

0.4

7

10

10

0

0

8

12

10

4

0.4

9

15

10

25

2.5

Total

100

100

7.6

Chi square = ∑[(O – E)^2/E] = 7.60

P-value = 0.5749

(By using Chi square table or excel)

P-value > α = 0.05

So, we do not reject the null hypothesis

There is insufficient evidence to conclude that the integers are not being generated uniformly.

(a) Find the test statistic.

Answer: 7.60

(ii) Find the p-value.

Answer: 0.5749

(b) State the appropriate conclusion.

Fail to reject the null hypothesis. There is not significant evidence that the integers are not being generated uniformly.


Related Solutions

A program for generating random numbers on a computer is to be tested. The program is...
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 9 7 9 6 10 14 8 10 12 15 (a) Find the...
A program for generating random numbers on a computer is to be tested. The program is...
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 10 8 7 9 13 11 5 9 14 14 (a) Find the...
A program for generating random numbers on a computer is to be tested. The program is...
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 9 7 7 12 12 6 8 12 15 (a) Find the...
A computer program is tested by 5 independent tests. If there is an error, these tests...
A computer program is tested by 5 independent tests. If there is an error, these tests will discover it with probabilities 0.1, 0.2, 0.3, 0.4, and 0.5, respectively. Suppose that the program contains an error. What is the probability that it will be found a. by at least one test? b. by at least two tests? c. by all five tests?
Write a JAVA program that emulates a Magic Eight Ball. Start by generating a random number...
Write a JAVA program that emulates a Magic Eight Ball. Start by generating a random number and then use a switch statement to display the message. Use this website as a resource on possible answers a Magic Eight Ball gives: https://en.wikipedia.org/wiki/Magic_8-Ball
In Assembly Language Write a program that generates 10 random numbers (0~99). Save the numbers into...
In Assembly Language Write a program that generates 10 random numbers (0~99). Save the numbers into arrayInt and calculate the sum. .data arrayInt Byte 10 DUP(?) Displays the array and the sum as follows: The random numbers are: xx xx xx xx xx xx …. The sum is   xxxx
A computer was used to generate ten random numbers from a normal distribution with a set...
A computer was used to generate ten random numbers from a normal distribution with a set of unknown mean and variance: −1.1623, 0.2210, 1.6518, −1.1312, −0.2879, −1.0458, 1.3706, −0.7492, −0.1355, −1.2686. Eight more random normal numbers with the same variance perhaps a different mean were then generated (the mean may or may not actually be different): 0.3472, 2.2437, 1.0712, 2.5906, 0.5163, −1.1743, 0.0473, −0.8338. (a) What do you think the means of the random normal number generators were? What do...
Create a program that generates a file of random numbers, and then prints them in neat...
Create a program that generates a file of random numbers, and then prints them in neat fashion to another file, and also saves to that file the average and standard deviation of those numbers. I) First, you would need to generate a file of random numbers that consists of N random numbers (100 < N < 1000). Each random digit should be a real number (type double) between 0 and 50. This file and its digits would now serve as...
Write a program that asks the user to enter an array of random numbers, then sort...
Write a program that asks the user to enter an array of random numbers, then sort the numbers (ascending order), then print the new array, after that asks the user for a new two numbers and add them to the same array and keep the array organization. (c++ ) (using while and do while loops)
Write a program to produce an array of integer random numbers. Your program should find out...
Write a program to produce an array of integer random numbers. Your program should find out from the user how many numbers to store. It should then generate and store that many random integers (the random numbers must be between 1 and 999 inclusive). The program should then determine the smallest number, the largest number, and the average of all the numbers stored in the array. Finally, it should print out all the numbers on the screen, five numbers to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT