calculate the X2 and test whether the two attributes are independent at 5% level of significance
A chi-squared test, also written as 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 is given by-
Where Observed frequency of samples
Expected frequency of samples
At 5% level of significance, The value of test is generally lies between
It also depends upon the degree of freedom.
Comments