In: Statistics and Probability
We want to compare the mean of the hospital stay by sex at this particular Pennsylvania hospital. Let’s assume that the data are normally distributed and we are assuming that the SD for sexes are equal. So, is there a difference in the mean hospital stay in Pennsylvania hospital by gender? (Please include SPSS output here)
State the null and alternative hypotheses.
What is your test statistics and why? (no calculation needed)
What were your test statistics results? What is your conclusion?
Id |
Dur_stay |
Age |
Sex |
Temp |
WBC |
Antibio |
Bact_cul |
Service |
1 |
5 |
30 |
2 |
99 |
8 |
2 |
2 |
1 |
2 |
10 |
73 |
2 |
98 |
5 |
2 |
1 |
1 |
3 |
6 |
40 |
2 |
99 |
12 |
2 |
2 |
2 |
4 |
11 |
47 |
2 |
98.2 |
4 |
2 |
2 |
2 |
5 |
5 |
25 |
2 |
98.5 |
11 |
2 |
2 |
2 |
6 |
14 |
82 |
1 |
96.8 |
6 |
1 |
2 |
2 |
7 |
30 |
60 |
1 |
99.5 |
8 |
1 |
1 |
1 |
8 |
11 |
56 |
2 |
98.6 |
7 |
2 |
2 |
1 |
9 |
17 |
43 |
2 |
98 |
7 |
2 |
2 |
1 |
10 |
3 |
50 |
1 |
98 |
12 |
2 |
1 |
2 |
11 |
9 |
59 |
2 |
97.6 |
7 |
2 |
1 |
1 |
12 |
3 |
4 |
1 |
97.8 |
3 |
2 |
2 |
2 |
13 |
8 |
22 |
2 |
99.5 |
11 |
1 |
2 |
2 |
14 |
8 |
33 |
2 |
98.4 |
14 |
1 |
1 |
2 |
15 |
5 |
20 |
2 |
98.4 |
11 |
2 |
1 |
2 |
16 |
5 |
32 |
1 |
99 |
9 |
2 |
2 |
2 |
17 |
7 |
36 |
1 |
99.2 |
6 |
1 |
2 |
2 |
18 |
4 |
69 |
1 |
98 |
6 |
2 |
2 |
2 |
19 |
3 |
47 |
1 |
97 |
5 |
1 |
2 |
1 |
20 |
7 |
22 |
1 |
98.2 |
6 |
2 |
2 |
2 |
21 |
9 |
11 |
1 |
98.2 |
10 |
2 |
2 |
2 |
22 |
11 |
19 |
1 |
98.6 |
14 |
1 |
2 |
2 |
23 |
11 |
67 |
2 |
97.6 |
4 |
2 |
2 |
1 |
24 |
9 |
43 |
2 |
98.6 |
5 |
2 |
2 |
2 |
25 |
4 |
41 |
2 |
98 |
5 |
2 |
2 |
1 |
Please note: the table below might not be needed; however, these are my calculations for Mean and SD for sexes.
Status |
n (sample size) |
Mean (Duration of Days in hospital) |
Standard Deviations (s) |
Male |
11 |
8.73 |
7.913 |
Female |
14 |
8.50 |
3.481 |
H0: Null Hypothesis:
HA: Alternative Hypothesis:
where Sample 1 refers to hospital stay by males and Sample 2 refers to hospital stay by females
2 Sample t test
REASON: Population SD is not provided. The Sample Size is small < 30.
Test statistic is:
t = (8.73 - 8.50)/2.3517 = 0.0978
Take =0.05
ndf = n1 + n2 - 2 = 11 + 14 - 2 = 23
From Table, critical values of t = 2.0687
Since the calculated value of t = 0.0978 is less than critical value of t = 2.0687, the difference is not significant. Fail to reject null hypothesis.
Conclusion:
The data do not support the claim that there is a difference in mean hospital stay in Pennsylvania hospital by gender.
So,
Answers to questions asked:
(1)
H0: Null Hypothesis:
HA: Alternative Hypothesis:
where Sample 1 refers to hospital stay by males and Sample 2 refers to hospital stay by females
(2)
2 Sample t test
REASON: Population SD is not provided. The Sample Size is small < 30.
(3)
Test statistic is:
t = 0.0978
Since the calculated value of t = 0.0978 is less than critical value of t = 2.0687, the difference is not significant. Fail to reject null hypothesis.
Conclusion:
The data do not support the claim that there is a difference in mean hospital stay in Pennsylvania hospital by gender.