Testing for a lack of relationship among categorical variables