Applications of statistical sampling to auditing