In: Statistics and Probability
PART B
1. Waiting time for checkout line at two stores of a supermarket chain were measured for a random sample of customers at each store. The chain wants to use this data to test the research (alternative) hypothesis that the mean waiting time for checkout at Store 1 is lower than that of Store 2. (12 points)
Store 1 (in Seconds) |
Store 2 (in Seconds) |
461 |
264 |
384 |
308 |
167 |
266 |
293 |
224 |
187 |
244 |
115 |
178 |
195 |
279 |
280 |
289 |
228 |
253 |
315 |
223 |
205 |
|
197 |
standard deviation for the two stores?
time for checkout line at the two stores.
Step 1) Define hypothesis:
Claim: The mean waiting time for checkout at store 1 is lower than that of store 2.
a) H0: µ1 = µ2 Vs Ha : µ1 < µ2
Where µ1 = Population mean for store 1.
µ2 = Population mean for store 2.
Step 2) Find mean and standard deviation of given data:
b) Using excel functions we get
= 252.25 and = 252.8
S1 = 98.542 and s2 = 37.614
n1 = 12 and n2 = 10
Step 3) Define and calculate test statistic:
We assume that the underlying distributions are relatively normal , as population standard deviation is unknown we use t statistic for independent samples.
t =
Where = sample mean from population 1 and = sample mean from population 2.
S1 = sample standard deviation from population 1 and s2 = sample standard deviation from population 2.
n1 = sample size from population 1 and n2 = sample size from population 2.
t =
t= - 0.01784
c) Test statistic | t | = 0.0178
Step 4) Finding P value:
We have n2 = 10 smallest sample size. D.f = n2 - 1 = 10-1= 9.
d) Degree of freedom = 9
As alternative hypothesis have < sign. This is left tail test.
For statistic t = 0.0178, with 9 d.f P value is greater than 0.250
Step 5) Conclusion using level of significance 0.05
As P value 0.250 is greater than level of significance 0.05, We fail to reject H0 .
At 5 % level of significance, we conclude that , we do not have enough evidence to conclude that there is mean waiting time for checkout at store 1 is lower than that of store 2.
e) Confidence interval
Step 1) sample mean for store 1 is = 252.25 and sample mean for Store 2 is = 252.8
s1 = sample standard deviation for store 1 = 98.542 and s2 = sample standard deviation for store 2 = 37.614
Sample size from population 1 is n1 = 12 and sample size from population 2 is n2 = 10.
As both population values are independent and population standard deviation σ is unknown. We assume that the samples comes from population that are approximately normally distributed and standard deviation σ is not equal, we use t statistic .
Step 2)
First we find t0.95 , by using smallest of n1 – 1 and n2 - 1, we use d.f = 10- 1 = 9
Using t table t0.95,9 = 2.262
Step 3) Margin of error E
E = tc *
E =t0.95,9 *
E =2.262*
E = 69.7449
Step 4) The confidence interval is
() – E < µ1 - µ2 < () + E
(252.25- 252.8 ) – 69.7449 < µ1 - µ2 < (252.25- 252.8 ) + 69.7449
-70.2949 < µ1 - µ2 < 69.1949
Confidence interval for (µ1 - µ2 ) is (-70.2949, 69.1949)
Step 5) Conclusion:
Confidence interval contains one negative value and one positive value , In this case we cannot conclude that either store 1 or Store 2 have more waiting time.