Statistical analysis of the polarization of asteroids and comets