A method of assessing whether a set of observations involving q categorical variables, in particular, binary variables, consists of a number of different groups or classes within which the variables are independent. Essentially a finite mixture model in which the component distributions are the product of q Bernoulli distributions, one for each of the binary variables in the data. Parameters in such models can be estimated by maximum likelihood estimation via the EM algorithm.