Statistics for Fitting sinusoids to observations of rotating spotted stars