In: Statistics and Probability
A sample of 220 patients of a family medicine practice was
surveyed two weeks after their doctor's visit to ask them whether
the symptoms that prompted their visit improved, and whether they
complied with the physician's treatment plan. The following table
contains the results.
Symptoms improved |
Symptoms did not improve |
|
Complied |
100 |
40 |
Did not comply |
30 |
50 |
Is there a relationship between the two variables?
a. |
There is no relationship between the variables, because the probabilities sum up to 1. |
|
b. |
There is a relationship between the variables, as the column percentages are not the same. |
|
c. |
There is a relationship between the variables because the number of patients that improved and complied with the treatment plan is greater than the number that complied and did not improve. |
|
d. |
We need additional information to determine if there is a relationship between those two variables. |
Given table data is as below
------------------------------------------------------------------ calculation formula for E table matrix
------------------------------------------------------------------ expected frequecies calculated by applying E - table matrix formulae
------------------------------------------------------------------ calculate chisquare test statistic using given observed frequencies, calculated expected frequencies from above
------------------------------------------------------------------ set up null vs alternative as null, Ho: no relation b/w X and Y OR X and Y are independent alternative, H1: exists a relation b/w X and Y OR X and Y are dependent level of significance, α = 0.05 from standard normal table, chi square value at right tailed, ᴪ^2 α/2 =3.8415 since our test is right tailed,reject Ho when ᴪ^2 o > 3.8415 we use test statistic ᴪ^2 o = Σ(Oi-Ei)^2/Ei from the table , ᴪ^2 o = 24.2429 critical value the value of |ᴪ^2 α| at los 0.05 with d.f (r-1)(c-1)= ( 2 -1 ) * ( 2 - 1 ) = 1 * 1 = 1 is 3.8415 we got | ᴪ^2| =24.2429 & | ᴪ^2 α | =3.8415 make decision hence value of | ᴪ^2 o | > | ᴪ^2 α| and here we reject Ho ᴪ^2 p_value =0 ANSWERS --------------- null, Ho: no relation b/w X and Y OR X and Y are independent alternative, H1: exists a relation b/w X and Y OR X and Y are dependent test statistic: 24.2429 critical value: 3.8415 p-value:0 decision: reject Ho |
we have enough evidence to support the claim that there is relationship between the two variables
option:B