Calculating efficiencies and their uncertainties

The commonly used methods for the calculation of the statistical uncertainties in cut efficiencies (''Poisson'' and ''binomial'' errors) are both defective, as is seen in extreme cases. A method for the calculation of uncertainties based upon Bayes' Theorem is presented; this method has no problem with extreme cases. A program for the calculation of such uncertainties is also available.