Seeing if two qualitative variables in a contingency table are independent by using the chi-squared distribution