Connecting Independence and the Chi-Square Statistic