A Statistical Study of the Luminosity Gap in Galaxy Groups