In: Statistics and Probability
Day |
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
Sunday |
Prescriptions |
42 |
31 |
33 |
29 |
45 |
44 |
21 |
Which of the following is the appropriate null hypothesis for this test?
245/7 = 35
Correct answer: Option (A) H0: p1= p2= p3= p4= p5= p6= p7= 1/7
Under the null hypothesis of a uniform distribution of prescriptions over the 7 days of the week, the expected count of prescriptions for Monday is 245/7 = 35
since sum of all observed frequencies 42+31+33+29+45+44+21 = 245
Under the null hypothesis of a uniform distribution of prescriptions over the 7 days of the week, the chi-square contribution for Monday is (42-35)^2 / 35 = 1.40
Under the null hypothesis of a uniform distribution of prescriptions over the 7 days of the week, the degrees of freedom for the chi-square test is 7-1 = 6
From the given data
Observed | Expected | ||
Day | Freq (Oi) | Freq Ei | (Oi-Ei)^2 /Ei |
Monday | 42 | 35.00 | 1.4000 |
Tuesday | 31 | 35.00 | 0.4571 |
Wednesday | 33 | 35.00 | 0.1143 |
Thursday | 29 | 35.00 | 1.0286 |
Friday | 45 | 35.00 | 2.8571 |
Saturday | 44 | 35.00 | 2.3143 |
Sunday | 21 | 35.00 | 5.6000 |
Total: | 245 | 245 | 13.7714 |
the chi-square statistic for testing this null hypothesis of a uniform distribution of prescriptions over the 7 days of the week is 13.7714
P-Value: 0.0323
since P-value < alpha 0.05 so we reject H0
thus we conclude that Option (B) There is significant evidence that prescriptions are not uniformly distributed over the 7 days of the week.
Correct answer: Option (C) The test is valid because the sample is random and the expected counts are large enough.