Written and maintained by CASRAI Editorial Board
Last updated
In quantitative research, sampling error is the statistical difference between an estimate derived from a probability sample and the true numerical value of the underlying population parameter. Because investigators rarely survey every unit in a population, empirical inferences rely on representative subsets. Under probability sampling, this divergence is not an operational mistake, but the quantifiable consequence of random selection. Understanding how sampling error behaves, how it connects to the standard error of the mean, and how sample size controls precision allows research teams to design cost-effective studies while preserving rigor.
Definition: What Are Sampling Errors in Research?
In survey statistics and empirical methodology, sampling error (also called sampling variability or random sampling error) is the difference between a sample statistic (such as the sample mean x̄ or sample proportion p̂) and the true population parameter (such as the population mean μ or proportion p) that arises solely because data are collected from a sample rather than a complete census. Under statistical standards established by the U.S. Office of Management and Budget (OMB) and national statistical agencies, sampling error occurs exclusively in sample surveys and is absent in a complete enumeration.
Researchers must separate sampling error from non-sampling error. While sampling error is random and reducible by increasing sample size at the rate of 1/√n, non-sampling error stems from systematic defects such as sampling frame coverage error, participant nonresponse, flawed measurement instruments, or data coding errors. Increasing sample size reduces sampling error, but it does not remove systematic bias when comparing a population vs. sample.
Sampling Error Formula and Mathematical Foundations
Because probability sampling assigns every population unit a known, non-zero probability of selection, sampling error is quantified through sampling distributions using the standard error (SE) and bounded by the margin of error (E).
Standard Error of the Mean
For a continuous metric evaluated in a simple random sample of size n with sample standard deviation s, the standard error is:
SE = s / √n
Where SE represents the average expected variation of sample means across repeated samples, s is the sample standard deviation, and n is the sample size.
Standard Error of a Proportion
For categorical or binary outcomes, where p̂ is the observed sample proportion, the standard error is:
SE(p̂) = √[p̂(1 − p̂) / n]
Where p̂ is the observed proportion and 1 − p̂ is the complementary proportion.
Margin of Error (Bound on Estimation Error)
The maximum expected sampling error at a chosen confidence level is calculated by scaling the standard error by the critical value z from the standard normal distribution:
E = z × SE
For a 95% confidence level, z = 1.96. For 90%, z = 1.645.
Finite Population Correction (FPC)
When sampling without replacement from a finite population of size N, the Finite Population Correction (FPC) factor must be applied if the sampling fraction (n / N) exceeds 0.05 (5%):
FPC = √[(N − n) / (N − 1)]
The adjusted standard error is SEadj = SE × FPC.
Worked Example: Step-by-Step Calculation with Real Numbers
Consider an institutional audit assessing research compliance scores (0–100 scale) among clinical investigators:
- Population size (N): 5,000 investigators
- Sample size (n): 400 investigators
- Sample mean (x̄): 72.40 points
- Sample standard deviation (s): 14.00 points
- Confidence level: 95% (two-tailed z = 1.96)
Step 1: Compute unadjusted standard error
SE = s / √n = 14.00 / √400 = 14.00 / 20.00 = 0.7000 points
Step 2: Check sampling fraction and compute FPC
Because n / N = 400 / 5,000 = 0.08 (8.0% > 5.0%), the FPC applies:
FPC = √[(5,000 − 400) / (5,000 − 1)] = √[4,600 / 4,999] = √0.920184 ≈ 0.959262
Step 3: Calculate adjusted standard error
SEadj = 0.7000 × 0.959262 = 0.671484 points (rounded to 0.6715 points)
Step 4: Determine 95% margin of error
E = 1.96 × 0.671484 = 1.316108 points (rounded to 1.32 points)
Step 5: Construct 95% confidence interval
95% CI = x̄ ± E = 72.40 ± 1.32 = [71.08, 73.72] points
The investigators can state with 95% confidence that the true population mean compliance score falls between 71.08 and 73.72 points.
Interpretation: What the Result Means
A smaller standard error and narrower margin of error indicate higher statistical precision. Because standard error contracts at the rate of 1/√n, reducing error requires geometric increases in sample size. Quadrupling sample size cuts sampling error in half, leading to diminishing returns as shown below.
| Sample Size (n) | Standard Error (s = 14.0) | 95% Margin of Error (±E) | Interpretation and Research Utility |
|---|---|---|---|
| n = 50 | 1.980 | ±3.88 points | Exploratory pilot; wide error bounds unsuited for conclusive audits. |
| n = 100 | 1.400 | ±2.74 points | Feasibility evaluations; moderate precision. |
| n = 400 | 0.700 | ±1.37 points | Standard benchmark for academic surveys and clinical assessments. |
| n = 1,600 | 0.350 | ±0.69 points | High-precision registry surveillance; higher recruitment burden. |
Assumptions and Common Mistakes
Valid estimation of sampling error requires satisfying specific methodological conditions:
- Probability Sampling: Formulas assume units are drawn via probability sampling. As outlined when examining random sampling vs. convenience sampling, convenience samples violate random selection, making calculated sampling errors meaningless.
- Independence of Observations: Observations must be independent. Clustered or hierarchical designs require cluster adjustments (design effects) to avoid underestimating standard error.
- Sample Size and Distributional Normality: Constructing symmetric normal confidence intervals requires an adequate sample size (typically n ≥ 30) under the Central Limit Theorem.
Common mistakes in research practice include:
- Conflating Precision with Accuracy: A large sample size produces a small sampling error, but severe non-response bias or poor measurement still produces a biased estimate.
- Omitting the Finite Population Correction: When sampling over 5% of a finite population, omitting the FPC overstates the standard error.
- Misinterpreting Margin of Error as Total Error: Stating a survey has an error of ±3% without clarifying that this covers only random sampling error, excluding non-sampling error.
How to Report Sampling Error in APA Style
APA 7th edition guidelines require reporting point estimates, sample sizes, and measures of precision. Statistical symbols must be italicized (M, SD, SE, CI, n, N, p), and confidence intervals are reported in brackets.
A stratified random sample of clinical investigators (n = 400) from a population of 5,000 completed the compliance audit. The mean score was 72.40 points (SD = 14.00, SE = 0.67), with an adjusted 95% confidence interval of [71.08, 73.72]. The margin of error was ±1.32 points.
Parenthetical format: (M = 72.40, SE = 0.67, 95% CI [71.08, 73.72], n = 400).
How to Calculate Sampling Error in Excel, R, or Python
Excel Formulas
With data in cells A2:A401, population size 5000 in D1, and confidence 0.95 in D2:
=STDEV.S(A2:A401) / SQRT(COUNT(A2:A401))
=SQRT((D1 - COUNT(A2:A401)) / (D1 - 1))
=CONFIDENCE.NORM(1 - D2, STDEV.S(A2:A401), COUNT(A2:A401)) * SQRT((D1 - COUNT(A2:A401)) / (D1 - 1))
R Script
calc_sampling_error <- function(x, N = NULL, conf = 0.95) {
n <- length(x)
se <- sd(x) / sqrt(n)
if (!is.null(N) && (n / N > 0.05)) {
se <- se * sqrt((N - n) / (N - 1))
}
moe <- qnorm(1 - (1 - conf) / 2) * se
list(mean = mean(x), se = se, moe = moe, ci = mean(x) + c(-moe, moe))
}
scores <- rnorm(400, mean = 72.4, sd = 14.0)
calc_sampling_error(scores, N = 5000)
Python Script
import math
from scipy import stats
def sampling_error(data, N=None, conf=0.95):
n = len(data)
mean_val = sum(data) / n
variance = sum((x - mean_val) ** 2 for x in data) / (n - 1)
se = math.sqrt(variance / n)
if N is not None and (n / N > 0.05):
se *= math.sqrt((N - n) / (N - 1))
z = stats.norm.ppf(1 - (1 - conf) / 2)
moe = z * se
return {"mean": mean_val, "se": se, "moe": moe, "ci": (mean_val - moe, mean_val + moe)}
Frequently Asked Questions About Sampling Errors
What is sampling error?
Sampling error is the numerical difference between an estimated sample statistic and the true population parameter that occurs because data are collected from a random sample rather than the entire population.
What are sampling errors?
Sampling errors refer to the random variations observed across multiple probability samples drawn from the same population. Unlike operational non-sampling errors, they are quantifiable using sampling distributions and standard errors.
What is the main cause of sampling error in research?
The main cause of sampling error is sampling variability: the chance differences between members of a population who are selected into a sample and those who are not.
What are the four types of sampling?
The four primary probability probability and non-probability sampling methods are simple random sampling, systematic sampling, stratified random sampling, and cluster sampling.
What are type 3 errors?
In statistics, a Type III error occurs when a researcher correctly rejects the null hypothesis but reaches the wrong directional conclusion (e.g., inferring a positive effect when the true effect is negative). In decision theory, it refers to solving the wrong problem correctly.
What are five types of errors?
In the Total Survey Error framework, the five primary types of error are sampling error, coverage error, nonresponse error, measurement error, and data processing error.
Sources and Methodological References
- Office of Management and Budget. (2006). Standards and Guidelines for Statistical Surveys. The White House. https://obamawhitehouse.archives.gov/sites/default/files/omb/inforeg/statpolicy/standards_stat_surveys.pdf
- NIST/SEMATECH. (2012). e-Handbook of Statistical Methods. Section 7.2.2.2: “Sample sizes required” & Section 3.3.3: “Define Sampling Plan”. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/prc/section2/prc222.htm
- U.S. Census Bureau. (2023). American Community Survey: Accuracy of the Data. U.S. Department of Commerce. https://www.census.gov/programs-surveys/acs/technical-documentation/code-lists.html
- American Psychological Association. (2020). Publication Manual of the American Psychological Association (7th ed.). Sections 6.43 and 6.44.
- Cochran, W. G. (1977). Sampling Techniques (3rd ed.). John Wiley & Sons.
- Groves, R. M., Fowler, F. J., Couper, M. P., Lepkowski, J. M., Singer, E., & Tourangeau, R. (2009). Survey Methodology (2nd ed.). John Wiley & Sons.







