A random sample of 440 patients of cardiology department of a hospital was taken and their workout timing and severity of heart disease status were recorded. The following table shows the workout timing and severity of heart disease:
| Workout (in minutes) | Severity of Heart Disease | ||||||||||
| Low | Mild | Moderate | High | Very High | |||||||
| No workout | 5 | 13 | 26 | 21 | 23 | ||||||
| 0- 15 | 6 | 15 | 19 | 19 | 21 | ||||||
| 15 to 30 | 16 | 17 | 14 | 16 | 12 | ||||||
| 30 to 45 | 18 | 17 | 13 | 11 | 9 | ||||||
| 45 to 60 | 20 | 19 | 15 | 13 | 7 | ||||||
| ≥ 60 | 16 | 22 | 6 | 5 | 6 | ||||||
Test at 5% level of significance whether workout habit and heart disease are associated with to each other or not.
To test whether workout habits and heart disease severity are associated with each other, you can perform a chi-squared test for independence. Here's how you can set up the null and alternative hypotheses and calculate the chi-squared statistic:
Null Hypothesis (H0): There is no association between workout habits and heart disease severity.
Alternative Hypothesis (H1): There is an association between workout habits and heart disease severity.
First, you need to calculate the expected frequency for each cell in the contingency table under the assumption that there is no association between the two variables. The expected frequency for each cell can be calculated using the formula:
Certainly, let's calculate the expected frequencies and the chi-squared statistic step by step.
Step 1: Calculate the expected frequencies for each cell using the formula:Get Full Answer on WhatsApp