In: Statistics and Probability
Diarrhea |
|||
Ate dessert |
Yes |
No |
Total |
Yes, apple dessert |
7 |
2 |
9 |
Yes, mango dessert |
10 |
5 |
15 |
No (reference point) |
2 |
10 |
12 |
Total |
19 |
17 |
72 |
how i could enter this data at spss and answer this question
2.2. Is there a relationship between having diarrhea and ate apple dessert or not eating any desserts (reference point) from them at 5% sig., level? Set the null hypothesis, choose a suitable analysis method to quantify this relationship, and write down the conclusion by providing all related statistical results. (6 marks)
2.3. Is there a relationship between having diarrhea and ate mango dessert or not eating any desserts (reference point) from them at 5% sig., level? Set the null hypothesis, choose a suitable analysis method to quantify this relationship, and write down the conclusion by providing all related statistical results. (6 marks)
The entered data in SPSS is:
The SPSS output is:
2.2
The hypothesis being tested is:
H0: There is no relationship between having diarrhea and ate apple dessert or not eating any desserts (reference point)
Ha: There is a relationship between having diarrhea and ate apple dessert or not eating any desserts (reference point)
Col 1 | Col 2 | Total | ||
Row 1 | Observed | 7 | 2 | 9 |
Expected | 3.86 | 5.14 | 9.00 | |
O - E | 3.14 | -3.14 | 0.00 | |
(O - E)² / E | 2.56 | 1.92 | 4.48 | |
Row 2 | Observed | 2 | 10 | 12 |
Expected | 5.14 | 6.86 | 12.00 | |
O - E | -3.14 | 3.14 | 0.00 | |
(O - E)² / E | 1.92 | 1.44 | 3.36 | |
Total | Observed | 9 | 12 | 21 |
Expected | 9.00 | 12.00 | 21.00 | |
O - E | 0.00 | 0.00 | 0.00 | |
(O - E)² / E | 4.48 | 3.36 | 7.84 | |
7.84 | chi-square | |||
1 | df | |||
.0051 | p-value |
The p-value is 0.0051.
Since the p-value (0.0051) is less than the significance level (0.05), we can reject the null hypothesis.
Therefore, we can conclude that there is a relationship between having diarrhea and ate apple dessert or not eating any desserts (reference point).
2.3
The hypothesis being tested is:
H0: There is no relationship between having diarrhea and ate mango dessert or not eating any desserts (reference point)
Ha: There is a relationship between having diarrhea and ate mango dessert or not eating any desserts (reference point)
Col 1 | Col 2 | Total | ||
Row 1 | Observed | 10 | 5 | 15 |
Expected | 6.67 | 8.33 | 15.00 | |
O - E | 3.33 | -3.33 | 0.00 | |
(O - E)² / E | 1.67 | 1.33 | 3.00 | |
Row 2 | Observed | 2 | 10 | 12 |
Expected | 5.33 | 6.67 | 12.00 | |
O - E | -3.33 | 3.33 | 0.00 | |
(O - E)² / E | 2.08 | 1.67 | 3.75 | |
Total | Observed | 12 | 15 | 27 |
Expected | 12.00 | 15.00 | 27.00 | |
O - E | 0.00 | 0.00 | 0.00 | |
(O - E)² / E | 3.75 | 3.00 | 6.75 | |
6.75 | chi-square | |||
1 | df | |||
.0094 | p-value |
The p-value is 0.0094.
Since the p-value (0.0094) is less than the significance level (0.05), we can reject the null hypothesis.
Therefore, we can conclude that there is a relationship between having diarrhea and ate mango dessert or not eating any desserts (reference point).
Please give me a thumbs-up if this helps you out. Thank you!