Variations in the polarity distribution of the interplanetary magnetic field