BUS 110 · Business Math and Statistics for Accountants
Sampling and Confidence Intervals
See how a well-chosen sample estimates a whole population, measure sampling error and build confidence intervals for averages and rates.
Key takeaways
- A sample is used to estimate a number that describes the whole population.
- Random selection protects against bias, which a bigger sample cannot cure.
- The standard error measures how much a sample average tends to vary from sample to sample.
- A confidence interval gives a range of plausible values along with a stated confidence level.
- Cutting the margin of error in half takes about four times as large a sample.
Nina is an accountant at a furniture wholesaler. Her boss wants to know the average size of last year's 5,000 customer invoices, today, before lunch. The invoices sit in scanned files that must be opened one by one. Reading all of them would take about a week.
Nina picks 100 at random. Their average is $248. Can she say the average of all 5,000 is $248? Not exactly. A different 100 would give a slightly different number. But she can say something nearly as useful, and she can say how far off she is likely to be.
Learning from a part about the whole is called statistical inference. Cooks do it when they taste one spoonful of soup. Auditors, pollsters and quality inspectors do it with more care.
The vocabulary of parts and wholes
The population is the entire group you care about: all 5,000 invoices. A sample is the part you examine: Nina's 100. A number that describes the population, such as its true mean, is a parameter. The matching number from the sample is a statistic. We use statistics to estimate parameters.
The gap between them that arises just from which items happened to be picked is sampling error. It is not a mistake. It is the price of not looking at everything.
Random is a method, not a mood
"I grabbed a few from different drawers" is not random. People unconsciously choose files that are on top, easy to read or interesting.
A simple random sample gives every item, and every group of items of that size, the same chance of selection. Number the invoices 1 to 5,000 and let software draw 100 numbers.
Other designs help in particular cases.
- Systematic sampling takes every 50th item after a random start. It is easy, but risky if the list has a repeating pattern that matches the interval.
- Stratified sampling splits the population into groups, such as large and small invoices, and samples each. This guarantees the rare big ones are covered.
Bias is a tendency to miss in one direction. If Nina only samples December invoices, and December orders are unusually large, her estimate will run high. Taking 1,000 December invoices would not help. It would only give a very precise wrong answer.
The standard error
Imagine drawing many samples of 100 and writing down each sample mean. Those means would cluster around the true population mean. They would be much less spread out than individual invoices, because high and low values partly cancel inside each sample.
The standard deviation of sample means is the standard error.
For Nina, SE = 40 ÷ √100 = $4.
A key result called the central limit theorem says that for reasonably large random samples, the sample means follow a bell shape closely, even when the individual values do not. That lets us use the shares from the normal distribution. How large is "reasonably large"? A rule of thumb says about 30, but badly skewed data, like invoices with a few giants, can need far more.
Worked example: a 95% confidence interval
In a bell curve, 95% of values lie within about 1.96 standard deviations of the center. So build the range like this.
Sample mean $248
Standard error 40 ÷ 10 = $4
Margin of error 1.96 × 4 = $7.84
Lower limit 248 − 7.84 = $240.16
Upper limit 248 + 7.84 = $255.84 Nina can report: "We estimate the average invoice at $248, with a 95% confidence interval of about $240 to $256." The margin of error is the half-width, $7.84.
She can also estimate total billings. Multiply by the 5,000 invoices.
Point estimate 5,000 × 248 = $1,240,000
Lower 5,000 × 240.16 = $1,200,800
Upper 5,000 × 255.84 = $1,279,200 If the books show total billings of $1,420,000, that is far outside the range. It is a strong reason to dig further. It is not yet proof of an error.
The dot in the middle is the point estimate. The line shows the margin of error of $7.84 on each side.
What "95% confident" really means
Here is the careful version. The method, used over and over on fresh random samples, produces intervals that contain the true mean about 95% of the time. Nina's particular interval either contains it or does not. The 95% describes the reliability of the procedure.
It does not mean that 95% of invoices fall between $240 and $256. With a standard deviation of $40, individual invoices vary far more than that.
Want more confidence? A 99% interval uses about 2.576 instead of 1.96: the margin becomes 2.576 × 4 = $10.30. A 90% interval uses 1.645, giving $6.58. More confidence costs a wider range.
The price of precision
Suppose Nina samples 400 invoices and the standard deviation stays $40.
SE = 40 ÷ √400 = 40 ÷ 20 = $2, and the margin is 1.96 × 2 = $3.92.
Four times the work cut the margin exactly in half, because of the square root.
| Sample size | Standard error | 95% margin |
|---|---|---|
| 100 | $4.00 | $7.84 |
| 400 | $2.00 | $3.92 |
| 1,600 | $1.00 | $1.96 |
Each step quadruples the sample but only halves the margin. Hypothetical example: the numbers are made up to show the method, not a quote or an average.
To plan a sample, work backward. For a margin of $5: n = (1.96 × 40 ÷ 5)² = (15.68)² ≈ 245.9, so use 246. Always round up.
When the sample is small and the population spread is unknown, statisticians use the t distribution, which gives somewhat wider intervals. Spreadsheets and textbooks supply the values.
Intervals for a rate
Often the question is "what share?" Nina checks 200 randomly chosen invoices and finds 14 with a missing approval signature. The sample proportion is 14 ÷ 200 = 0.07.
SE = √(p × (1 − p) ÷ n) = √(0.07 × 0.93 ÷ 200) ≈ 0.0180
Margin = 1.96 × 0.0180 ≈ 0.035
Interval ≈ 0.035 to 0.105 The true rate of missing signatures is plausibly anywhere from about 3.5% to 10.5%. If the company can tolerate at most 5%, this sample cannot promise it is within limits. This simple formula grows unreliable when the count of cases or non-cases is very small, and auditors have specialized methods for that. See audit sampling for controls, and check current AICPA and PCAOB guidance for professional requirements.
When the big ones matter most: stratifying
Nina's boss mentions something. Among the 5,000 invoices are 100 very large contract orders, running into thousands of dollars each. The other 4,900 are ordinary. A random 100 from the whole pile would include only about two of the giants on average. Some draws would include none and others five, and the estimate would lurch accordingly.
The fix is to split the population into two layers, called strata. Nina reads all 100 large invoices, since there are few and they matter. Then she samples the 4,900 ordinary ones. Suppose the large ones total $600,000 exactly, and a random sample of the ordinary ones averages $140.
Ordinary invoices (estimated) 4,900 × $140 = $686,000
Large invoices (all counted) $600,000
Estimated total $1,286,000 Only the $686,000 carries sampling error. The large layer carries none, because nothing was left out. And since the ordinary invoices are far more alike, their standard deviation is smaller, which shrinks the standard error for the same effort.
Stratifying helps most when the layers differ a lot from each other.
Writing the result so people use it well
A bare interval can be misread. A good report fits in a few sentences and states:
- what population was sampled, and for what period;
- how items were selected, and how many;
- the estimate, the interval and the confidence level;
- anything that went wrong, such as files that could not be found.
For Nina: "From 100 invoices drawn at random from last year's 5,000, we estimate an average of $248, with a 95% interval of about $240 to $256. All selected files were located. The estimate does not test whether the invoices are genuine."
That last sentence matters. A sample measures what it was designed to measure. An average amount says nothing about whether goods were really shipped. Different questions need different tests, as audit sampling for balances explains.
The common mistake: thinking size fixes everything
A huge sample of the wrong people is still wrong. An online poll with 50,000 volunteers tells you about people who chose to answer. The margin of error you compute covers only random sampling error. It says nothing about bad questions, missing files, nonresponse or a biased selection.
Ask three things about any estimate: Who could have been picked? Who actually was, and who dropped out? Is the margin of error reported? If invoices could not be found, do not quietly replace them with easy ones. A missing document may be the most important finding of all.
Another slip: believing the sample must be a large fraction of the population. For big populations, precision depends mostly on the sample size itself. A random 400 tells you about nearly as much for 50,000 invoices as for 5,000. With a random sample and a clear interval in hand, you are ready for testing a claim with data.
Words to know
Population the entire group of items you want to learn about.
Sample the part of the population actually examined.
Bias a systematic tendency to miss the truth in one direction.
Standard error the typical variation of a sample statistic from sample to sample.
Confidence interval a range of plausible values for a parameter, built by a method with a stated success rate.
Margin of error half the width of a confidence interval.
Check yourself
- In a study of 2,000 payroll records, a random 80 are examined. Name the population and the sample.
- A sample of 64 items has a mean of $500 and a standard deviation of $80. Find the standard error.
- Using question 2, build the approximate 95% confidence interval.
- By what factor must the sample size grow to cut the margin of error in half?
- Why will a larger sample not fix a biased selection method?
- What is wrong with saying that a 95% interval means 95% of individual items fall inside it?
Show the answers
- The population is all 2,000 payroll records and the sample is the 80 examined.
- 80 ÷ √64 = 80 ÷ 8 = $10.
- 500 ± 1.96 × 10 = 500 ± 19.60, or about $480.40 to $519.60.
- About four times, because the standard error depends on the square root of n.
- Bias pushes every selection in the same direction, so more of it only makes the wrong estimate look more precise.
- The interval is about where the population mean plausibly lies, not about the spread of individual items, which is usually much wider.