Checking frequency distribution for independence. To be continued...