1A) A large supermarket carries four qualities of ground beef. Customers are believed to purchase these four varieties with probabilities of 0.13, 0.16, 0.13, and 0.58, respectively, from the least to most expensive variety. A sample of 482 purchases resulted in sales of 46, 151, 88, and 197 of the respective qualities. Does this sample contradict the expected proportions? Use α = .05.
(a) Find the test statistic. (Give your answer correct
to two decimal places.)
(b) Find the p-value. (Give your answer bounds
exactly.)
____< p < ____
1B) 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 | 6 | 8 | 8 | 14 | 10 | 6 | 12 | 13 | 11 |
(a) Find the test statistic. (Round your answer to two
decimal places.)
(b) Find the p-value. (Round your answer to four
decimal places.)
Solution:
Question 1A) A large supermarket carries four qualities of ground beef.
Customers are believed to purchase these four varieties with probabilities of 0.13, 0.16, 0.13, and 0.58, respectively, from the least to most expensive variety.
Sample size = n = 482
and observed counts of purchases resulted in sales as 46, 151, 88, and 197
We have to test if this sample contradict the expected proportions.
Level of significance = 0.05
Thus hypothesis would be:
H0: p1 = 0.13, p2 =0.16, p3= 0.13, p4 = 0.58
H1: this sample contradict the expected proportions.
Part a) Find the test statistic
Since we have to test if sample or observed counts are same as expected counts, we use Chi-square test of goodness of fit test.
Thus Chi-square test statistic is given by:
Where Oi = Observed counts and Ei = Expected counts
Oi : Observed counts | Expected proportions | Calculations | Ei : Expected Counts | Oi^2/Ei |
46 | 0.13 | =482*0.13 | 62.66 | 33.770 |
151 | 0.16 | =482*0.16 | 77.12 | 295.656 |
88 | 0.13 | =482*0.13 | 62.66 | 123.588 |
197 | 0.58 | =482*0.58 | 279.56 | 138.822 |
N = 482 |
Thus
Thus the test statistic is
Part b) Find the p-value
df = k - 1 = 4 - 1 = 3
look in Chi-square table for df = 3 row and find the interval in which 109.835 fall and then find corresponding right tail area.
> 12.838 ,
Area for 12.838 is 0.005
So Area corresponding to 109.84 would be less than 0.005
Thus bounds on p-value are:
0.000 < p-value < 0.005
Since p-value < 0.05, we reject H0 and thus we conclude that: this sample contradict the expected proportions.
Question 1B) 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 | 12 | 6 | 8 | 8 | 14 | 10 | 6 | 12 | 13 | 11 |
We have to test if there is sufficient reason to believe that the integers are not being generated uniformly .
Thus H0 and H1 are:
H0: the integers are being generated uniformly
Vs
H1: the integers are not being generated uniformly
Part a) Find the test statistic
Integer | Oi: Frequency | Calculations | Ei: Expected Counts | Oi^2/Ei |
0 | 12 | =100/10 | 10 | 14.4 |
1 | 6 | =100/10 | 10 | 3.6 |
2 | 8 | =100/10 | 10 | 6.4 |
3 | 8 | =100/10 | 10 | 6.4 |
4 | 14 | =100/10 | 10 | 19.6 |
5 | 10 | =100/10 | 10 | 10 |
6 | 6 | =100/10 | 10 | 3.6 |
7 | 12 | =100/10 | 10 | 14.4 |
8 | 13 | =100/10 | 10 | 16.9 |
9 | 11 | =100/10 | 10 | 12.1 |
N = 100 |
Thus
Part b) Find the p-value
To find exact p-value, we use Excel command:
=CHISQ.DIST.RT( x ,df )
where x = and df = k - 1 = 10 - 1 = 9
=CHISQ.DIST.RT( 7.40 , 9 )
=0.5955
Thus p-value = 0.5955
Since p-value = 0.5955 > 0.05 level of significance , we fail to reject H0 and thus there is not sufficient reason to believe that the integers are not being generated uniformly .
That is: the integers are being generated uniformly.
1A) A large supermarket carries four qualities of ground beef. Customers are believed to purchase...
A large supermarket carries four qualities of ground beef. Customers are believed to purchase these four varieties with probabilities of 0.15, 0.19, 0.11, and 0.55, respectively, from the least to most expensive variety. A sample of 515purchases resulted in sales of 47, 148, 70, and 250 of the respective qualities. Does this sample contradict the expected proportions? Use α = .05. (a) Find the test statistic. (Give your answer correct to two decimal places.) (ii) Find the p-value. (Give your...
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 8 9 7 8 11 12 6 12 13 14 (a) Find the...
A study showed that 64% of supermarket shoppers believe supermarket brands to be as good as national name brands. To investigate whether this result applies to its own product, the manufacturer of a national name-brand ketchup asked a sample of shoppers whether they believed that supermarket ketchup was as good as the national brand ketchup. A. If a sample of 100 shoppers showed 52 stating that the supermarket brand was as good as the national brand, what is the p-value?...
An experiment was designed to compare the lengths of time that four different drugs provided pain relief after surgery. The results (in hours) follow. Is there enough evidence to reject the null hypothesis that there is no significant difference in the length of pain relief provided by the four drugs at α = .05? Drug A B C D 2 4 8 2 2 6 9 3 4 6 12 4 4 5 12 12 (a) Find the test statistic....
An experiment was designed to compare the lengths of time that four different drugs provided pain relief after surgery. The results (in hours) follow. Is there enough evidence to reject the null hypothesis that there is no significant difference in the length of pain relief provided by the four drugs at α = .05? Drug A B C D 4 4 9 2 4 4 8 4 6 4 12 2 5 5 9 11 (a)...
CCN and ActMedia provided a television channel targeted to individuals waiting in supermarket checkout ines. The channel showed news, short features, and advertisements. The length of the program was based on the assumption that the population mean time a shopper stands in a supermarket checkout line is 8 minutes. A sample of actual waiting times will be used to test this assumption and determine whether actual mean waiting time differs from this standard. (a) Formulate the hypotheses for this application...
I am doing this problem and I am getting the z value correctly, but I cannot figure out the p value. I am using a calculator so I anyone can explain how to find the p value for me that would be great. Assume that z is the test statistic. (a) Ho: μ = 22.5, Ha: μ > 22.5; x = 26.4, σ = 7.1, n = 20 (i) Calculate the test statistic z. (Give your answer correct to two...
please help with parts a - i!! thankyou and check roundings please!! Question Help O A supermarket chan wants to know if the "buy one got one free campaign increases customer trafic enough to the cost of the program For each of 10 stores they select two days at random to run the best for one of those days selected by a confil, the program will be in tot They want to test the typothesis that there is no mean...
For this problem, carry at least four digits after the decimal in your calculations. Answers may vary slightly due to rounding. In a marketing survey stores) a random sample of 736 women shoppers revealed that 624 remained loyal to their favorite supermarket during the past year (i.e., did not switch (a) Let p represent the proportion of all women shoppers who remain loyal to their favorite supermarket. Find a point estimate for p. (Round your answer to four decimal places.)...
For this problem, carry at least four digits after the decimal in your calculations. Answers may vary slightly due to rounding. In a marketing survey, a random sample of 722 women shoppers revealed that 638 remained loyal to their favorite supermarket during the past year (i.e., did not switch stores). (a) Let p represent the proportion of all women shoppers who remain loyal to their favorite supermarket. Find a point estimate for p. (Round your answer to four decimal places.)...