← Economics
Universityeconometrics

Uncertainty, Sampling, and Statistical Inference

Use samples to estimate economic population values, quantify sampling uncertainty with standard errors and confidence intervals, and recognize what those intervals cannot repair or prove.

Before this, you should know:

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,

p^=248400=0.62.\hat{p} = \frac{248}{400} = 0.62.

The hat reminds us that p^\hat{p} is an estimate of an unknown population proportion pp. It is not the exact population value simply because it was calculated precisely. The difference between 0.62 and the true pp is the estimation error; because pp 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

SE(xˉ)=σn,SE(\bar{x}) = \frac{\sigma}{\sqrt{n}},

where σ\sigma is the population standard deviation and nn is the sample size. In practice, σ\sigma 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

SE(p^)=p(1−p)n,SE(\hat{p}) = \sqrt{\frac{p(1-p)}{n}},

and, since pp is unknown, we commonly estimate it by substituting p^\hat{p}:

SE^(p^)=p^(1−p^)n.\widehat{SE}(\hat{p}) = \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}.

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.

A sampling distribution centered on the unknown population proportion p, showing the central 95 percent of repeated sample estimates within about 1.96 standard errors, and a separate example confidence interval from 57.2 to 66.8 percent around a sample estimate of 62 percent.

A confidence interval is produced by a procedure that would capture the fixed population value in most repeated samples, when its assumptions are met. The one interval we calculate is only one realization of that procedure.

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:

p^±1.96 SE^(p^).\hat{p} \pm 1.96\,\widehat{SE}(\hat{p}).

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.

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 pp who usually travel by bus.

Step 2 — calculate the sample estimate. The sample proportion is

p^=248400=0.62.\hat{p} = \frac{248}{400} = 0.62.

The estimate is 62%.

Step 3 — estimate its standard error. Substitute p^=0.62\hat{p}=0.62 and n=400n=400 into the sample-proportion formula:

SE^(p^)=0.62(1−0.62)400=0.2356400≈0.0243.\widehat{SE}(\hat{p}) = \sqrt{\frac{0.62(1-0.62)}{400}} = \sqrt{\frac{0.2356}{400}} \approx 0.0243.

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:

ME=1.96(0.0243)≈0.0476.ME = 1.96(0.0243) \approx 0.0476.

The margin is about 4.76 percentage points.

Step 5 — form the interval. Subtract and add the margin to 0.62:

0.62±0.0476=[0.5724, 0.6676].0.62 \pm 0.0476 = [0.5724,\ 0.6676].

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.

Check yourself

4 questions

  1. A survey records the share of sampled commuters who usually travel by bus. Which is the sample statistic and which is the population parameter?

  2. If the sample size is multiplied by four and the observations are otherwise independent and similarly distributed, what happens approximately to the standard error of a sample mean?

  3. A researcher constructs a 95% confidence interval using a valid sampling procedure. What does the 95% describe?

  4. A poll receives many responses, but it was advertised on a site used mostly by frequent bus riders. What is the central concern?