A measure of the degree of polarization for the three-dimensional polarization matrix (coherence matrix) of an electromagnetic field is proposed, based on Rayleigh scattering. The degree of polarization at a point is defined as an average, over all scattering directions, of an imagined dipole scattering of the three-dimensional state of polarization. This gives a well-defined purity measure, wh...