Studying the statistical relationship between species and groups