Where’s the problem?
Imagine you’re the finance leader of a company that posted 50,000 journal entries during the financial year.
You want some comfort that those entries were recorded properly, so you ask your team to pick 200 entries and test them.
The team finishes and reports back: every entry they tested is clean.
On the face of it, that’s reassuring. But is it enough to draw a conclusion about all the other entries? And was the test itself capable of finding errors if they were there? Zero errors can mean clean entries; it can also mean a weak test.
You can read this article at three levels: the summary above, then the practical examples and the calculator, then the statistical detail at the end for those who want to go deeper.
Before answering, let’s agree on a few things.
1. What are we actually looking for?
When we say a journal entry contains an error, we might mean that it was:
- posted to the wrong account;
- charged to the wrong cost centre;
- recorded in the wrong period;
- not backed by adequate supporting documents;
- not approved as required;
- recorded at the wrong amount.
These are different kinds of problem. Some are accounting errors; others are breaches of procedures and controls.
So it matters to define, before testing, exactly what we’re testing for.
Say we have a defined set of recording and approval requirements. For the rest of this article, an “entry with an error” means an entry that fails at least one of them, and the “error rate” is the share of such entries in the total.
If we find five entries with errors out of 200, the error rate in the sample is 2.5%, even if one of those entries fails more than one requirement.
But what if we find none at all?
2. Zero out of 200 doesn’t mean zero out of 50,000
We now have three numbers:
- Total entries: 50,000.
- Entries tested: 200.
- Entries found with errors: zero.
There’s nothing wrong with the test result itself. The risk lies in the conclusion we might draw from it.
Suppose there really are 500 entries with errors spread across the company’s transactions, so the true error rate is 1%.
Could we pick 200 entries at random without a single one of those 500 landing in the sample?
Yes.
In fact, the chance of that is about 13%.
In other words, if we ran this test many times under similar conditions, we’d get a zero-error result in about 13 tests out of every 100, even though errors are there.
That’s the problem: every entry we tested may be clean, while entries with errors remain among the ones we didn’t test.
3. How the Rule of Three helps
This is where a well-known statistical shortcut comes in: the Rule of Three.
When we test a simple random sample from a large population and find no errors, the rule gives a quick way to estimate the approximate upper bound on the error rate at 95% confidence.
All you do is divide 3 by the sample size. In our example:
That doesn’t mean 1.5% of the company’s entries contain errors.
Nor does it mean we found 750 entries with errors out of 50,000.
It means the test result doesn’t allow us to rule out an error rate of roughly that level.
The actual number of errors could be zero, a few dozen, or a few hundred.
The test doesn’t tell us the true number, but it does help us set a reasonable range for what we can conclude statistically.
4. Why 95% confidence?
Suppose we pick 200 entries at random from a large population with the following true error rates:
| Assumed true error rate | Chance of finding no errors in the sample |
|---|---|
| 0.5% | 36.7% |
| 1% | 13.4% |
| 1.5% | 4.9% |
| 2% | 1.8% |
| 3% | 0.2% |
Approximate figures, using the binomial model.
Notice that the higher the true rate, the harder it becomes to test 200 random entries without finding any errors.
At a rate of about 1.5%, the chance of a zero-error result falls to around 5%.
That’s the basis of the Rule of Three at 95% confidence.
Put simply, we’re using a statistical method designed so that, across repeated samples, it gives an upper bound covering the true rate at least 95% of the time, provided we use the exact calculation and its assumptions hold. The Rule of Three is a simple approximation to that calculation.
Should we always use 95% confidence?
No. It’s a common level, not a mandatory one for every test.
You can choose 90%, 95% or 99%, depending on the purpose of the test, the nature of the risks and the other evidence available.
The higher the confidence level you want for the same tolerable rate, the more items you’ll usually need to test.
And it’s better to set the confidence level before running the test, not after seeing the results.
5. Is 1.5% good or bad?
Statistics alone can’t answer that. The answer depends on the nature of the errors and how much management is prepared to accept.
Suppose management set a tolerable error rate of 1% before testing began, meaning the highest error rate it can accept, at 95% confidence.
Tolerable rate
Here we’re talking about a test management runs for itself. In an external audit under ISA 530, it’s the auditor who sets this rate for tests of controls, as the tolerable rate of deviation.
We tested 200 entries and found no errors, but the statistical upper bound we got is 1.5%.
Have we shown the error rate is no more than 1%? No.
Have we shown the error rate is above 1%? Also no.
All we’ve established is that the available evidence isn’t enough to reach a conclusion at the required level of confidence.
The wording that can actually go into the report is:
“No errors were found in a random sample of 200 entries. However, at 95% confidence, this result does not rule out an error rate in the population above 1%.”
Note that the figure in that sentence is the tolerable rate, not the upper bound. Write “we cannot rule out a rate above 1.5%” and you’ve reversed the meaning: rates above the upper bound are exactly what the result does let you rule out.
If the tolerable rate had been 2% instead of 1%, the same result would support the criterion.
Same sample, same result, but a different conclusion depending on the criterion set in advance.
And of course, some errors should never be treated as acceptable just because they’re rare, such as certain cases of fraud, approvals beyond delegated authority, or breaches of regulatory requirements.
6. Why test 200 entries in the first place?
Maybe the team chose that number because it fit the time available, or because it’s what they test every year.
But there’s another way to think about it. Instead of choosing the sample size first and then working out what we can conclude, why not decide what we want to conclude first?
| Sample size | Exact upper bound |
|---|---|
| 30 | 9.5% |
| 50 | 5.82% |
| 100 | 2.95% |
| 200 | 1.49% |
| 500 | 0.6% |
| 1,000 | 0.3% |
The curve is computed from 1 − α^(1/n) and applies to the zero-error case; it does not carry over as-is when errors are found.
Say we want to design a test that supports an error rate no higher than a given tolerable rate, at 95% confidence, if no errors are found.
| Tolerable error rate | Minimum sample size |
|---|---|
| 5% | 59 |
| 2% | 149 |
| 1% | 299 |
| 0.5% | 598 |
| 0.1% | 2,995 |
Calculated with the exact binomial model for the zero-error case.
If we want a test that supports an error rate of no more than 1%, we plan to test at least 299 entries rather than 200, provided no errors are found and the assumptions hold.
At that point statistics stops being a way to interpret test results and becomes a way to plan the test.
Sample size doesn’t guarantee the result
The condition in that sentence isn’t a detail. 299 is enough only if we find no errors at all. Find a single error in 299 entries and the upper bound rises to 1.58%, so the evidence no longer supports a 1% criterion.
The question that usually gets skipped at the planning stage is: how likely are we to find no errors in the first place? That depends on the true error rate, which we don’t know before testing. If the true rate is 0.5%, half the tolerable rate, the chance that 299 entries come back error-free is only about 22%. The test would fail roughly four times out of five, even though the actual error rate is below the tolerable rate.
So at the planning stage we separate two numbers:
- Tolerable error rate: the highest rate we can accept. This is the criterion.
- Expected error rate: our realistic estimate of the rate before testing, from prior results or knowledge of the process.
Expected error rate
When we expect some errors, we plan a larger sample that allows a set number of errors without the upper bound exceeding the tolerable rate. Here are some possible plans at a tolerable rate of 1% and 95% confidence:
| Expected error rate | Sample size | Errors allowed | Chance of passing if the true rate is 0.25% | Chance of passing if the true rate is 0.5% |
|---|---|---|---|---|
| 0% | 299 | 0 | 47% | 22% |
| 0.25% | 628 | 2 | 79% | 39% |
| 0.5% | 1,182 | 6 | 97% | 62% |
Exact binomial model. “Chance of passing” is the probability that the errors found do not exceed the number allowed.
But the expected rate alone doesn’t settle the plan. The last one, 1,182 entries with 6 errors allowed, passes only 62% of the time if the true rate is 0.5% as expected, so it fails in about 38% of cases. It isn’t a wrong plan, but choosing it is a decision: what chance of passing does the team want if the true rate is what it expects? The higher that chance, the larger the sample, and the more errors it allows.
The closer the expected rate gets to the tolerable rate, the faster the sample grows. If the required sample is more than the team can handle, the answer isn’t to shrink it and hope for zero errors; it’s to revisit the criterion or rely on other evidence.
The same logic applies to small samples. The 59 at the top of the earlier table is the familiar size in attribute-sampling tables for tests of controls, at a 5% tolerable deviation rate, zero expected deviations and 95% confidence. But if the true error rate is 1%, that same sample comes back clean only about 55% of the time.
Sampling Risk Calculator
Use the calculator to evaluate the results of a test you’ve run, or to work out the sample size you need to plan for, including an expected error rate and the chance of passing the test.
7. What if we pick the wrong transactions?
None of the calculations above hold if the way the sample was selected doesn’t fit the conclusion we want to draw. Consider these examples:
- Journal entries: you tested manual adjusting entries only, and the sample left out every entry generated by the sales and purchasing systems.
- Sales invoices: you tested invoices for one product or one customer segment, even though pricing and discounts work differently across other products and segments.
- Financing products: you tested contracts for customers who pay on time only, and the sample left out late and rescheduled loans.
- Branches: you tested the best-performing branch, then applied the result to every branch.
A. Illustrative population coverage
The sample spans all four branches. This illustrates coverage; it is not proof that the selection was random.
B. Selection from one branch
The same number from one branch: three branches are never tested, and a larger sample within that branch would not fix it.
In each case, the result may be perfectly accurate for the items tested, but it isn’t enough to judge the wider population.
That doesn’t make targeted testing of high-risk transactions wrong. It just serves a different purpose from estimating the error rate across the whole population.
A bigger sample isn’t necessarily a better sample.
What about the entry that was never recorded?
There’s something that comes before how you select: whether the population itself is complete. The sample is drawn from recorded entries, so a transaction that was never recorded cannot appear in any sample, however large.
That’s why we first confirm that the list we’re sampling from is complete, for example by reconciling its total to the trial balance. Testing for transactions that were left out altogether needs other procedures, such as starting from source documents and actual events and looking for their entries.
8. Are all errors equal?
Suppose two companies each find one entry with an error when testing 200 entries.
At the first company, the error was a SAR 100 expense charged to the wrong cost centre.
At the second, it was a SAR 1 million transaction recorded without the required approval.
The observed rate is 0.5% in both cases. But the severity is completely different.
There’s another possibility too: the error might stem from a system set up incorrectly, in which case it could repeat across thousands of other transactions.
That’s why counting errors isn’t enough. You need to understand their nature, their value, their causes and whether they’re likely to recur.
Count is not value
A hypothetical example: of 50,000 entries, 500 large entries make up only 1% of the count, but 40% of the total value.
The chart shows the difference between how many entries there are and what they are worth; it does not imply large entries are more error-prone.
In a simple random sample of 200 entries, we’d expect only two of the large entries to be picked, on average. So a “clean” sample designed this way tells us little about 40% of the value.
That doesn’t mean large entries are necessarily more error-prone. The point is that the 1.5% refers to the number of entries, and says nothing directly about the size of any possible misstatement.
Other sampling methods, such as monetary unit sampling, are used when the aim is to assess the size of a possible financial misstatement rather than just the number of transactions with errors.
9. Does a clean last year mean a clean next year?
If we test a sample of last year’s entries, the result is mainly about those entries.
But what if the accounting system changed this year? Or the team changed? Or the company launched new products? Or approval procedures were revised?
The earlier result doesn’t become wrong, but its ability to tell us what will happen next becomes limited.
Drawing conclusions about transactions that already exist is different from predicting whether future transactions will be sound.
What should I do as a finance leader?
Next time you plan to test a set of transactions, settle six things before the test starts:
- What exactly counts as an error in this test?
- Which transactions do I want to reach a conclusion about, and is the list I’ll sample from complete?
- What tolerable error rate, if any, applies? And what rate do I actually expect?
- What confidence level do I need?
- How will I select the sample, and how many items do I need to test?
- How likely is the test to pass if the error rate is close to what I expect?
When the results come in, don’t just ask how many errors were found. Work out what the results allow you to conclude, and what they don’t.
You may need more testing, a different way of selecting the sample, an analysis of what caused a particular error, or you may find the evidence is enough for your purpose.
Statistics won’t make the decision for you, but it will help you understand how strong the evidence behind your decision really is.
Finding no errors is not proof that there are none.
This is the first topic in the Statistics Behind Financial Decisions series. The aim isn’t to learn statistics for its own sake, but to use it to make better decisions.
All examples and figures in this article are hypothetical, for illustration only.
For readers who want to go deeper
The mathematical derivations, the calculation method and the statistical detail.
Deriving the Rule of Three
If the true error rate is p and observations are independent, the probability of seeing no errors in n items is:
We look for the largest rate p for which that probability is still at least 5%; any higher rate would make the result we actually saw too unlikely:
The 3 comes from the natural log of 0.05, which is about −3.0, together with the approximation ln(1 − p) ≈ −p, which holds when p is small. The exact solution for 200 items is 1.49%, so the rule is a good, slightly conservative shortcut.
Exact binomial upper bounds and the Clopper-Pearson method
The Rule of Three only covers the zero-error case. In general, when x errors are found in n items, the exact one-sided upper bound at confidence level (1 − α) is the largest rate p for which the probability of observing x or fewer errors is at least α. It can be written using the inverse beta distribution:
For a sample of 200 items at 95% confidence:
| Errors found | Sample rate | Upper bound |
|---|---|---|
| 0 | 0% | 1.49% |
| 1 | 0.5% | 2.35% |
| 2 | 1.0% | 3.11% |
| 3 | 1.5% | 3.83% |
One error in 200 doesn’t mean a rate of 0.5%; it means a rate that could be as high as 2.35%, the point we raised in planning. In the zero-error case specifically, doubling the sample roughly halves the bound; once real errors are present, precision improves much more slowly.
What a confidence level means, in the frequentist sense
The confidence level describes the method, not a probability attached to the true error rate. The true rate is a fixed, unknown number; it’s the bound that changes from sample to sample. Repeat the method on many samples and it will produce a bound that covers the true rate in at least 95% of them.
So, under the classical interpretation, it isn’t correct to say “there is a 95% probability that the true rate is below 1.5%”. And because Clopper-Pearson is conservative, its actual coverage is often higher than the nominal level, owing to the discrete nature of the distribution.
We use a one-sided bound because the management question only runs one way: how bad could things be? It shouldn’t be confused with the limits of a two-sided interval.
Binomial versus hypergeometric models
When judging a fixed population of known size, such as a closed year’s journal entries, sampled at random without replacement, the exact model is the hypergeometric distribution. Here we look for the largest whole number K of entries with errors in the population for which the probability of observing x or fewer is at least α, then divide by the population size.
In our example (50,000 entries, 200 sampled, no errors), the upper bound is 741 entries, or 1.482%. The binomial model gives 1.487%, a slightly conservative approximation when the sample is a small fraction of the population. The gap widens as the sample grows relative to the population; and if the whole population is tested, the error proportion is known, assuming the test detected every error.
Judging how the process will perform in future is a different question. Random selection isn’t enough there: you also have to assume the process is stable and that errors don’t cluster in particular periods or conditions.
Monetary unit sampling and its limits
In monetary unit sampling (MUS), every riyal in the population has an equal chance of selection, so a transaction’s chance of being picked rises with its value, and the result is expressed as a possible misstatement amount rather than a share of transactions.
In its simplest form, you draw a sample of 200 monetary units, that is, 200 individual riyals each selected at random from a population worth SAR 500 million, and test the transactions those units fall in. If no misstatement is found, the upper bound on misstatement at 95% confidence is roughly 500 × 3 ÷ 200 = SAR 7.5 million (the exact calculation gives about SAR 7.4 million).
But MUS has its limits. It’s built mainly to detect overstatement, it’s weak at finding items recorded below their true value, it can’t see transactions missing from the records altogether, and it needs a specific method when errors affect only part of an item’s value. That’s why this article’s calculator doesn’t apply to it.
What this calculation doesn’t cover
- Sampling risk versus non-sampling risk: the calculation only deals with the chance that the sample differs from the population by chance. Tester mistakes, an unclear definition of an error, or a procedure that fails to detect errors can’t be fixed by any sample size.
- Other sample designs: stratified, cluster, systematic, judgemental and monetary unit samples each need their own calculations, and the calculator doesn’t apply to them.
- Statistical evidence is not a full assessment of controls: a sample result is one piece of evidence among others when assessing the effectiveness of internal control.
- Professional standards: using the calculator alone doesn’t establish compliance with ISA 530, which requires professional judgement in designing the sample and evaluating its results.
Sources and further reading
- Jovanovic, B. D., & Levy, P. S. (1997). A Look at the Rule of Three. The American Statistician, 51(2), 137–139. doi:10.1080/00031305.1997.10473947
- Hanley, J. A., & Lippman-Hand, A. (1983). If Nothing Goes Wrong, Is Everything All Right? Interpreting Zero Numerators. JAMA, 249(13), 1743–1745. doi:10.1001/jama.1983.03330370053031
- Clopper, C. J., & Pearson, E. S. (1934). The Use of Confidence or Fiducial Limits Illustrated in the Case of the Binomial. Biometrika, 26(4), 404–413. doi:10.1093/biomet/26.4.404
- NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.2.4.1: Confidence intervals. itl.nist.gov
- Stewart, T. R. (2012). Technical Notes on the AICPA Audit Guide Audit Sampling (notes accompanying the March 1, 2012 edition of the guide).
- International Auditing and Assurance Standards Board (IAASB). International Standard on Auditing (ISA) 530, Audit Sampling.
Educational content. The calculator is an educational tool for simple random attribute sampling and is no substitute for professional judgement or your organisation’s approved sampling methodology.
The statistical tools a finance leader needs to read the numbers before building a decision on them.

