Statistics for The effect of peculiar velocities on supernova cosmology