Statistical analysis of sex ratios: an introduction