includes functions for determining if a given mode has a higher frequency than what would be expected by random chance