In: Statistics and Probability
Need Chi-Square Test for Independence to determine if eating healthy and exercising reduces diastolic blood pressure.
|
Day |
BP Diastolic |
Ate Healthy and Exercised |
|
1 |
85 |
N |
|
2 |
109 |
N |
|
3 |
96 |
N |
|
4 |
92 |
N |
|
5 |
99 |
N |
|
6 |
98 |
N |
|
7 |
102 |
Y |
|
8 |
93 |
N |
|
9 |
90 |
Y |
|
10 |
84 |
N |
|
11 |
90 |
N |
|
12 |
86 |
N |
|
13 |
81 |
N |
|
14 |
77 |
Y |
|
15 |
90 |
Y |
|
16 |
86 |
Y |
|
17 |
83 |
N |
|
18 |
80 |
Y |
|
19 |
78 |
N |
|
20 |
74 |
Y |
|
21 |
72 |
Y |
|
22 |
79 |
Y |
|
23 |
84 |
Y |
|
24 |
91 |
Y |
|
25 |
85 |
Y |
|
26 |
77 |
Y |
|
27 |
78 |
Y |
|
28 |
81 |
N |
|
29 |
88 |
Y |
|
30 |
85 |
Y |
|
31 |
77 |
Y |
|
32 |
74 |
Y |
|
33 |
72 |
Y |
|
34 |
77 |
N |
|
35 |
80 |
Y |
|
36 |
81 |
Y |
|
37 |
76 |
Y |
|
38 |
78 |
Y |
|
39 |
72 |
Y |
|
40 |
73 |
Y |
|
41 |
72 |
Y |
|
42 |
79 |
Y |
|
43 |
80 |
Y |
|
44 |
84 |
Y |
|
45 |
81 |
Y |
|
46 |
78 |
Y |
|
47 |
71 |
Y |
|
48 |
73 |
Y |
|
49 |
76 |
Y |
|
50 |
75 |
Y |
|
51 |
76 |
N |
|
52 |
81 |
Y |
|
53 |
78 |
N |
|
54 |
75 |
Y |
|
55 |
77 |
Y |
|
56 |
76 |
Y |
The hypothesis being tested is:
H0: Eating healthy and exercising and diastolic blood pressure are independent
Ha: Eating healthy and exercising and diastolic blood pressure are not independent
| Yes | No | Total | ||
| Eating Healthy | Observed | 16 | 4 | 20 |
| Expected | 13.93 | 6.07 | 20.00 | |
| O - E | 2.07 | -2.07 | 0.00 | |
| (O - E)² / E | 0.31 | 0.71 | 1.01 | |
| Lower BP Diastolic | Observed | 23 | 13 | 36 |
| Expected | 25.07 | 10.93 | 36.00 | |
| O - E | -2.07 | 2.07 | 0.00 | |
| (O - E)² / E | 0.17 | 0.39 | 0.56 | |
| Total | Observed | 39 | 17 | 56 |
| Expected | 39.00 | 17.00 | 56.00 | |
| O - E | 0.00 | 0.00 | 0.00 | |
| (O - E)² / E | 0.48 | 1.10 | 1.58 | |
| 1.58 | chi-square | |||
| 1 | df | |||
| .2090 | p-value |
Since the p-value (0.2090) is greater than the significance level (0.05), we cannot reject the null hypothesis.
Therefore, we can conclude that ating healthy and exercising and diastolic blood pressure are independent.