Sampling Error Calculator

Sampling Error Calculator

Measure how far a sample result is from the known population value, and whether that gap is the size random sampling would normally produce.

Sampling error = statistic − parameter

Add the sample size and population SD to see whether the error is unusually large.

Enter the sample result and the true population value

What Is Sampling Error?

Sampling error is the difference between a figure calculated from a sample and the true figure for the whole population, caused purely by which members happened to be picked. It isn't a mistake; it's the unavoidable price of not measuring everyone.

You can only calculate it directly when the population value is known, such as from a census, company records or a simulation. That makes it a good way to check whether a sampling method works.

If the error is much larger than the standard error predicts, chance is an unlikely explanation. Something non-random, such as non-response, a bad sampling frame or leading questions, is probably at work.

Sampling Error Formula

As given in Cochran, Sampling Techniques, chapter 1, and OpenStax Introductory Statistics, chapter 7. See Sources.

1. Observed error

e = x̄ − μ (or p̂ − p)

2. Expected size of the error

SE = σ ÷ √n · typical |e| = SE × √(2 ÷ π) ≈ 0.8 × SE

The standard error is the root-mean-square error; the average absolute miss is about 80% of it.

3. Is this error unusual?

z = e ÷ SE → P(|error| ≥ observed) = 2(1 − Φ(|z|))

Worked Example: Checking a Household Survey Against the Census

Given:
A census gives an average household size of 2.36 (SD about 1.3). A survey of 400 households finds 2.45.
Step 1:
Observed sampling error:
2.45 − 2.36 = +0.09 people (3.8%)
Step 2:
Expected error from sampling alone:
SE = 1.3 ÷ √400 = 0.065
Step 3:
Compare:
z = 0.09 ÷ 0.065 = 1.38 → 16.6% of samples miss by this much
Result:
Sampling error +0.09, an ordinary amount

The survey overshoots, but by less than 1.5 standard errors. If it had found 2.65, the error would be over 4 standard errors. That would point to a flaw such as single-person households being harder to reach.

Typical Sampling Error by Sample Size

For a poll where the true figure is 50%. "1 in 20 misses by more than" is the familiar 95% margin of error.

Typical and worst-case sampling error for a 50% proportion at several sample sizes
nStandard errorTypical miss1 in 20 misses by more than
1005 pts3.99 pts9.8 pts
4002.5 pts1.99 pts4.9 pts
1,0001.58 pts1.26 pts3.1 pts
2,5001 pts0.8 pts1.96 pts

Common Sampling Error Mistakes

  • Calling every survey error "sampling error". Wording, non-response and coverage gaps are non-sampling errors, and a bigger sample doesn't fix them.
  • Expecting zero error from a good sample. A perfect random sample still misses by about 0.8 standard errors on average.
  • Reading a small error as proof the method is sound. One sample can land close by luck. Judge a method over many samples.
  • Mixing units. For proportions, an error of 4 percentage points (48% to 52%) is a relative error of about 8%. Say which you mean.

Sampling Error FAQs

How is sampling error different from the margin of error?

Sampling error is the actual miss in one sample. The margin of error is a bound that 95% of samples stay within.

Can I calculate sampling error without the population value?

Not the actual error. You can estimate its likely size with the standard error, which is what surveys report.

How do I reduce sampling error?

Increase the sample size, or use stratified sampling so key groups are represented in the right proportions.

Is sampling error the same as bias?

No. Sampling error averages out to zero over many samples; bias pushes every sample the same way.

Why is the typical error smaller than the standard error?

The SE is a root-mean-square that gives extra weight to big misses. The average absolute miss is √(2/π) ≈ 0.8 times the SE.

Does population size affect sampling error?

Only when the sample is a large share of it. Then the finite population correction shrinks the error.

What is non-sampling error?

Any error not caused by random selection, such as mistakes in measurement, question wording, data entry or who chooses to respond.

Does a census have sampling error?

No, because everyone is counted. It still has non-sampling errors such as under-counting.

Sources

Related Tools