Question #163256

calculate the X2 and test whether the two attributes are independent at 5% level of significance


Expert's answer

A chi-squared test, also written as χ2\chi^2 test,is a statistical hypothesis test that is valid to perform when the test statistic is chi-squared distributed under the null hypothesis, specifically Pearson's chi-squared test and variants thereof. Pearson's chi-squared test is used to determine

 whether there is a statistically significant difference between the expected frequencies 

and the observed frequencies in one or more categories of a contingency table.


The formula for χ2\chi^2 is given by-

χ2=(OfEf)2Ef\chi^2=\sum\dfrac{(O_f-E_f)^2}{E_f}


Where Of=O_f= Observed frequency of samples

Ef=E_f= Expected frequency of samples


At 5% level of significance, The value of χ2\chi^2 test is generally lies between 0.1232to0.67540.1232 \text{to} 0.6754

It also depends upon the degree of freedom.


LATEST TUTORIALS
APPROVED BY CLIENTS