Size an Attribute Sample for a Controls Test

Last updated: November 29, 2026

Quick Overview

An auditor tests whether an approval control operated across 12,000 invoices and will accept the control only if the deviation rate is likely below 5%. How many invoices must be sampled at 95% confidence if zero deviations are expected, how does that change if one deviation is allowed, and what do you conclude if one is found?

PwC
Statistics & Math
Data Scientist
PwC
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


An auditor tests whether an approval control operated across 12,000 invoices and will accept the control only if the deviation rate is likely below 5%. How many invoices must be sampled at 95% confidence if zero deviations are expected, how does that change if one deviation is allowed, and what do you conclude if one is found?

Statistical sampling sits underneath controls testing in every PwC audit, and data scientists supporting audit methodology need to derive sample sizes from first principles rather than read them off a table. The interviewer checks the binomial reasoning, the asymmetry of the risk being controlled, and the correct conclusion when a deviation appears.

What the Interviewer Expects
  • Frame the test as controlling the risk of over-reliance on the control
  • Derive $n$ from $(1 - p_t)^n \le \alpha$ for zero deviations
  • Extend to one allowed deviation with the binomial CDF
  • Explain why population size barely matters here
  • State the right conclusion when the observed deviations exceed the plan
Key Topics to Cover
Attribute sampling
Binomial distribution
Confidence and risk
Sample size
Controls testing
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How does the sample size change at 90% confidence?
  • When would you prefer monetary unit sampling instead?
  • How would you handle a population of only 40 items?
  • What is the probability this plan catches a control that actually fails 2% of the time?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Population: 12,000 invoices; tolerable deviation rate pt=5%p_t = 5\%; acceptable risk of over-reliance α=5%\alpha = 5\% (95% confidence). Selection is random. The risk that matters is concluding the contro...

Approach

If the true rate were exactly 5%, the chance of seeing zero deviations in nn draws is (0.95)n(0.95)^n. We want that chance to be at most 5%, so that seeing zero deviations gives 95% confidence the true ra...


Submit Your Answer
Markdown supported

Related Questions