private static double upperBound(double error, int size) { return error + 1.96 * Math.Sqrt((error * (1 - error)) / size); }