In: Statistics and Probability
Resident | Commuter |
22 | 25 | 27 | 23 | 26 | 28 | 26 | 24 | 18 | 20 | 19 | 18 | 22 | 25 | 24 | 35 | |
25 | 20 | 26 | 24 | 27 | 26 | 18 | 19 | 23 | 18 | 23 | 22 | 28 | 25 | 20 | 24 | |
18 | 30 | 26 | 18 | 18 | 19 | 32 | 23 | 26 | 30 | 22 | 22 | 22 | 21 | 18 | 20 | |
19 | 19 | 18 | 29 | 19 | 22 | 18 | 22 | 19 | 26 | 35 | 19 | 19 | 18 | 19 | 32 | |
26 | 19 | 19 | 21 | 23 | 18 | 20 | 18 | 29 | 23 | 21 | 19 | 36 | 27 | 27 | 20 | |
22 | 21 | 19 | 21 | 21 | 22 | 18 | 20 | 20 | 21 | 18 | 19 | 23 | 20 | 19 | 19 | |
19 | 23 | 20 | 25 |
Question 7
From the data in problem 6, compute the p-value and round to 4 decimal places.
For resident
= 22.12, s1 = 3.6847, n1 = 50
For commuter
= 22.76, s2 = 4.7015, n2 = 50
H0:
H1:
The test statistic t = ()/sqrt(s1^2/n1 + s2^2/n2)
= (22.12 - 22.76)/sqrt((3.6847)^2/50 + (4.7015)^2/50)
= -0.76
DF = (s1^2/n1 + s2^2/n2)^2/((s1^2/n1)^2/(n1 - 1) + (s2^2/n2)^2/(n2 - 1))
= ((3.6847)^2/50 + (4.7015)^2/50)^2/(((3.6847)^2/50)^2/49 + ((4.7015)^2/50)^2/49)
= 93
P-value = 2 * P(T < -0.76)
= 2 * 0.2246
= 0.4492