In the earlier note on the contingency table of descriptive statistics, we have seen how to create a contingency table and interpret the relationship between two variables in terms of marginal, and conditional frequency distributions, which can be obtained using both absolute and relative frequencies.
In this note, we will learn a few statistical tools that use a contingency table and show the association between two categorical (counting variables). These are Chi-Squared statistics, Cramer’s V statistics, and Contingency Coefficient. These quantify the degree of association between variables similar to the correlation coefficient for continuous variables, the rank correlation coefficient for ordinal variables, or rank data.
Pearson’s Chi-Squared Statistics
It is used to measure the association between variables in a contingency table. The statistics for k x l contingency table is given as follows.
= ;
Marginal Frequencies
- , it represents marginal frequency distribution of X and j value varies from 1 to l while keeping i value constant.
- , it represents marginal frequency distribution of Y and i value varies from 1 to k while keeping j value constant.
Total Frequency
Absolute Frequencies
- , it represents the joint frequency distribution of X and Y. The joint frequency distribution tells how the values of both the variables behave jointly.
Interpretation of Pearson’s Chi-Squared Statistics
- The value of close to zero implies a weak association between the two variables.
- The value of close to , implies strong association between the two variables. , gives the minimum size of contingency table.
- The other values will suitably indicate the degree of association between the two variables to be low-moderate-high.
statistic is symmetric in the sense that its value does not depend on which variable is defined as X and which as Y.
Example 1: A sample of 100 students was chosen and divided into two groups, weak and strong, in academics. Some of the students are given tuition. We would like to see if tuition was helpful in improving the academic performance of the student or not. The data has complied in the following contingency table.
- = = 16.66
- = = 100
We have seen that Pearson’s Chi-squared statistics value is 16.66, which is not closed to zero and not close to 100. So our interpretation is that the association between the two variables is moderate. This interpretation is very subjective as there is no straightforward formula that tells directly.
Example 2: Following data on 20 persons has been collected on their age category and their response to the taste of a soft drink. It is like a soft drink was served to children, young, and elderly persons, and its taste was recorded as good or bad.
We have constructed the following 2*3 contingency table from the data, and the marginal frequencies are represented as rows and columns total.
- = 0.278
- = = 20
We have seen that Pearson’s Chi-squared statistics value is 0.278, which is closed to zero. The limitation of Pearson’s Chi-squared statistics is that the range of Pearson’s Chi-squared statistics depends on the sample size and size of the contingency table, and these values depend on the situations.
So the Cramer modified the interpretation part and proposed Cramer’s V statistic for a k * l contingency table formula.
Cramer’s V Statistics
;
The advantage of statistics is that, it is more simpler as values are lies between 0-1.
Interpretation of Cramer’s V Statistics
- The value of close to zero implies a weak association between the two variables.
- The value of close to 1, implies strong association between the two variables.
- The other values indicates the moderate association between the variables.
For example1, = 16.66. So the = 0.40. This again shows a moderate association.
For example2, = 0.278. So the = 0.11. This shows a weak association. It implies taste is not much dependend on age.
Contingency Coefficient
The corrected version of Pearson’s contingency coefficient is:
, where , .
Interpretation of Contingency Coefficient Statistics
- The value of close to zero implies a weak association between the two variables.
- The value of close to 1, implies strong association between the two variables.
- The other values indicates the moderate association between the two variables.
For example1, = 16.66. So,
- = 0.38.
- = 0.71
- = 0.54
The value of = 0.54 again shows a moderate association between two variables.
References
- Descriptive Statistic, By Prof. Shalabh, Dept. of Mathematics and Statistics, IIT Kanpur.
232 total views, 1 views today