A statistical analysis of polarity reversals of the geomagnetic field