Returns the margin of error of a sample.
double MarginOfError(double sample) => 1 / System.Math.Sqrt(sample);