1640s, originally of magnets, from polar + -ity.
polarity po·lar·i·ty (pō-lār'ĭ-tē, pə-)n.
The property of having two opposite poles, such as those possessed by a magnet, or of having opposite properties or characteristics.
The direction or orientation of positivity relative to negativity.