Code snippet for chi square test  for ethnicities.