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 12 9 7 7 12 12 6 8 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 not 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.     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.

Solutions

Expert Solution

a)

applying chi square goodness of fit test:
           relative observed Expected residual Chi square
category frequency(p) Oi Ei=total*p R2i=(Oi-Ei)/√Ei R2i=(Oi-Ei)2/Ei
0 0.1000 12.0000 10.00 0.63 0.400
1 0.1000 9.0000 10.00 -0.32 0.100
2 0.1000 7.0000 10.00 -0.95 0.900
3 0.1000 7.0000 10.00 -0.95 0.900
4 0.1000 12.0000 10.00 0.63 0.400
5 0.1000 12.0000 10.00 0.63 0.400
6 0.1000 6.0000 10.00 -1.26 1.600
7 0.1000 8.0000 10.00 -0.63 0.400
8 0.1000 12.0000 10.00 0.63 0.400
9 0.1000 15.0000 10.00 1.58 2.500
total 1.000 100 100 8.0000
test statistic X2 = 8.0000

ii)

degree of freedom =categories-1= 9
from excel p value =chidist(8,9)= 0.5341

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 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 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?
Roll dice java program The program simulates a dice roll by generating a random integer between...
Roll dice java program The program simulates a dice roll by generating a random integer between 1 and 6
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
C++ programming Create an application for generating lottery tickets of random numbers. Each lottery ticket has...
C++ programming Create an application for generating lottery tickets of random numbers. Each lottery ticket has a fixed count of numbers to be played with each number selected being within a given range. For example, when the range of numbers is 1 through 100, and 5 numbers are to be played, the lottery ticket will be composed of 5 unique values between 1 and 100. The values are selected at random. The main function is responsible for obtaining the upper...
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...
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
Objectives: 1. using indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays...
Objectives: 1. using indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM (assembly language) program to perform the following tasks: 1. Introduce the program. 2. Get a user request in the range [min = 10 .. max = 200]. 3. Generate request random integers in the range [lo = 100 .. hi = 999], storing them in consecutive elements of an array. 4. Display the list of integers before sorting,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT