# Chi-squared test, matrix, and test statistic

Psychological and social factors can influence the survival of patients with serious diseases. One study compared the relationship between survival of patients with coronary heart disease and pet ownership. Patients were either classified as having a pet or not and whether they survived for 1 year. Based on data attached in the table (MS Word document), is there an association between owning a pet and survival?

a. State the hypotheses for a chi-squared test in the context of this problem.

b. Calculate the expected matrix and describe what it represents.

c. Calculate the test statistic. Describe what this represents and answer the question posed.

https://brainmass.com/statistics/chi-squared-test/chi-squared-test-matrix-test-statistic-536122

#### Solution Preview

a. State the hypotheses for a chi-squared test in the context of this problem.

The null hypothesis tested is:

H0: There is no ...

#### Solution Summary

Chi-squared test, matrix, and test statistic.