Suppose a city wants to know what share of commuters usually travels by bus. It cannot interview everyone. It asks 400 commuters chosen at random, and 248 say that they do. The estimate is 62%. But if the city had selected a different 400 people, would it get exactly 62% again?
Almost certainly not. Sampling creates a small but unavoidable wobble: different samples give different answers, even when the population and the survey method stay the same. Statistical inference is the art of reasoning about that wobble—using the data we observed to say something measured, and appropriately uncertain, about the population we did not fully observe.
Population, sample, parameter, statistic
The population is the full group the question is about: here, all commuters in the city during a defined period. A sample is the subset from which data are collected. The citywide share of commuters who usually travel by bus is a population parameter. The share among the 400 people interviewed is a sample statistic.
We use the statistic to estimate the parameter. For the commuter survey,
The hat reminds us that is an estimate of an unknown population proportion . It is not the exact population value simply because it was calculated precisely. The difference between 0.62 and the true is the estimation error; because is unknown, we cannot observe that error directly in this one survey.
Why another sample would give another answer
Imagine repeating the same procedure many times: draw 400 commuters at random, calculate the bus-travel share, and record the result. The resulting collection of sample shares would form a sampling distribution. It is a distribution of a statistic across repeated samples—not the distribution of individual commuters’ travel choices.
If the sampling process is unbiased, its estimates are centered on the population value over repetitions. They still vary around it. The standard deviation of that sampling distribution is the statistic’s standard error. It measures the typical sampling variation of an estimate under the assumed design.
For independent draws—or when a sample is small relative to a large population so that dependence from sampling without replacement is negligible—the standard error of a sample mean is approximately
where is the population standard deviation and is the sample size. In practice, is usually unknown, so we estimate it using the sample’s standard deviation. For a sample proportion under the same kind of sampling conditions, the standard error is approximately
and, since is unknown, we commonly estimate it by substituting :
The square root matters. If we quadruple the sample size, the standard error is approximately halved—not cut to one quarter. To halve sampling uncertainty by adding observations alone, we need about four times as many observations. That is why getting a larger survey can improve precision, but can also be expensive.
From a standard error to a confidence interval
When a sampling distribution is approximately normal, about 95% of its values lie within 1.96 standard errors of its center. We can use this fact to construct an approximate 95% confidence interval for a proportion:
The estimate is the center; 1.96 standard errors on either side give the margin of error. The procedure is useful when the observations are selected appropriately, are sufficiently independent, and the sample is large enough for the normal approximation to be reasonable. For a proportion, a common quick check is that the sample contains at least about 10 expected “yes” and 10 expected “no” outcomes. More complex survey designs need methods that account for their design.
What does “95% confident” mean? The population parameter is treated as fixed. If we repeatedly drew samples and built an interval in the same way, about 95% of those intervals would contain that fixed parameter, assuming the procedure’s conditions hold. Once we have calculated one particular interval, it either contains the parameter or it does not. The 95% describes the long-run performance of the method, not a 95% probability that the fixed parameter is moving around inside this one interval.
Sampling uncertainty is not every kind of uncertainty
A standard error describes variation caused by drawing different samples under a specified model of sampling. It does not automatically capture every way a study can go wrong.
- Selection and nonresponse: people who answer may differ systematically from those who do not.
- Measurement error: a survey question may be misunderstood, or a recorded value may be wrong.
- Coverage error: some parts of the target population may be missing from the sampling frame.
- Model and design choices: the formula may fail to reflect clustering, repeated observations, weighting, or other features of how the data were collected.
More observations can shrink a standard error while leaving these systematic problems in place. A very precise estimate of the wrong quantity is still wrong. Before interpreting an interval, ask how the sample was selected, what population it represents, and whether the calculation matches the design.
An interval also does not answer a causal question. If bus riders in the survey have higher or lower incomes than other commuters, a confidence interval can describe uncertainty around an income difference, but it cannot tell us whether riding the bus caused that difference. Statistical precision and causal credibility are separate issues.
Worked example
A city randomly samples 400 commuters. Of them, 248 say the bus is their usual way to get to work. Estimate the citywide share and construct an approximate 95% confidence interval. State the assumptions and interpret the result carefully.
Step 1 — identify the population and sample. The population is all commuters in the city during the survey’s reference period. The sample consists of 400 commuters chosen at random. We want the population proportion who usually travel by bus.
Step 2 — calculate the sample estimate. The sample proportion is
The estimate is 62%.
Step 3 — estimate its standard error. Substitute and into the sample-proportion formula:
That is about 2.43 percentage points. It describes the estimated sample-to-sample variation of this proportion under the stated sampling assumptions; it is not a claim that 2.43% of individual answers are wrong.
Step 4 — calculate the margin of error. For the approximate 95% interval, multiply the standard error by 1.96:
The margin is about 4.76 percentage points.
Step 5 — form the interval. Subtract and add the margin to 0.62:
Rounded sensibly, the approximate 95% confidence interval is 57.2% to 66.8%.
Step 6 — interpret what we learned. If the random-sampling and approximation assumptions are reasonable, this interval comes from a method that would cover the true citywide share in about 95% of repeated samples. We would say we are 95% confident that the share is between about 57.2% and 66.8%. The interval does not guarantee that the sample was representative in practice, account for every kind of survey error, or explain why commuters choose the bus.
Where this leads
Descriptive statistics showed us how to summarize observed data; sampling distributions show why those summaries would change across samples. Standard errors and confidence intervals turn that variation into a disciplined statement of uncertainty, provided the design and assumptions are credible. The next topic, regression and ordinary least squares, will describe how two or more measured variables move together. A regression coefficient can be estimated precisely and still not be causal—so the distinction between uncertainty and identification will remain essential.