Calculating the Chi-square value in a 2 x 2 contingency table