MathLabs

Probability and statistics

Estimation

Using sample data to infer unknown values of a population, with point and interval estimates.

IntuitionFrom a Handful to the Whole

Imagine tasting one spoonful from a large pot of soup to judge how salty the whole pot is. You don't drink the entire pot -- a single representative spoonful (a sample) is enough to guess the salt level of the whole thing (the population). Estimation is the mathematics of turning that spoonful into a trustworthy guess, together with a sense of how far off the guess might be.

Bell-shaped curve illustrating a sampling distribution narrowing around a mean as sample size grows.
Standard normal sampling distribution N(0,1)\mathcal{N}(0,1) with the central confidence interval [−z,+z][-z, +z] shaded in green; slide pp to widen or narrow the confidence level.

SchoolPoint Estimates: A Single Best Guess

Definition: Point estimator

A point estimator is a single number, computed from sample data, used as a best guess for an unknown population parameter. For estimating the population mean μ\mu, the natural point estimator is the sample mean Xˉ\bar X: the average of the observed values X1,…,XnX_1,\dots,X_n.

Xˉ=1n∑i=1nXi\bar X = \frac{1}{n}\sum_{i=1}^{n} X_i

Here nn is the sample size, X1,…,XnX_1,\dots,X_n are the individual sample observations, and Xˉ\bar X is their average. Because different samples give different values of Xˉ\bar X, it is itself a random variable with its own distribution -- called the sampling distribution of the mean -- whose spread shrinks as nn grows.

Xˉ−zα/2σn≤μ≤Xˉ+zα/2σn\bar X - z_{\alpha/2}\frac{\sigma}{\sqrt{n}} \le \mu \le \bar X + z_{\alpha/2}\frac{\sigma}{\sqrt{n}}

This is the 100(1−α)%100(1-\alpha)\% confidence interval for μ\mu when the population standard deviation σ\sigma is known: zα/2z_{\alpha/2} is the standard-normal critical value that leaves probability α/2\alpha/2 in each tail, and σn\frac{\sigma}{\sqrt n} is the standard error of Xˉ\bar X, the typical distance between Xˉ\bar X and μ\mu.

Common confidence levels and their zz-critical values
Confidence levelzα/2z_{\alpha/2}
90%zα/2=1.645z_{\alpha/2}=1.645
95%zα/2=1.960z_{\alpha/2}=1.960
99%zα/2=2.576z_{\alpha/2}=2.576

UndergraduateWhy the Confidence Interval Works

If X1,…,XnX_1,\dots,X_n are independent, identically distributed with E[Xi]=μE[X_i] = \mu for every ii, then the sample mean Xˉ=1n∑i=1nXi\bar X = \frac{1}{n}\sum_{i=1}^{n} X_i satisfies E[Xˉ]=μE[\bar X] = \mu.

Why is it true?

Averaging removes systematic bias: on average, across many hypothetical samples, Xˉ\bar X lands exactly on the true population mean μ\mu, neither systematically too high nor too low.

Proof

By definition, Xˉ=1n∑i=1nXi\bar X = \frac{1}{n}\sum_{i=1}^{n} X_i. Expectation is a linear operator, so it distributes over the sum and the constant factor 1n\frac{1}{n}: E[Xˉ]=1n∑i=1nE[Xi]E[\bar X] = \frac{1}{n}\sum_{i=1}^{n} E[X_i].

Since every XiX_i comes from the same population, E[Xi]=μE[X_i] = \mu for each of the nn terms, so the sum collapses to 1n∑i=1nμ=1n(nμ)=μ\frac{1}{n}\sum_{i=1}^{n} \mu = \frac{1}{n}(n\mu) = \mu.

Therefore E[Xˉ]=μE[\bar X] = \mu for every sample size nn: the sample mean is unbiased no matter how small or large the sample is. This is a statement about the center of its sampling distribution only -- the spread of that distribution, Var⁡(Xˉ)=σ2/n\operatorname{Var}(\bar X) = \sigma^2/n, still shrinks as nn grows, which is what the confidence interval below uses.

If X1,…,XnX_1,\dots,X_n are independent, identically distributed with mean μ\mu and finite variance σ2\sigma^2, then for large nn the confidence interval Xˉ−zα/2σn≤μ≤Xˉ+zα/2σn\bar X - z_{\alpha/2}\frac{\sigma}{\sqrt n} \le \mu \le \bar X + z_{\alpha/2}\frac{\sigma}{\sqrt n} contains μ\mu with probability approximately 1−α1-\alpha.

Why is it true?

The Central Limit Theorem says the standardized sample mean behaves like a standard normal variable once nn is large, so we can use normal quantiles zα/2z_{\alpha/2} to bracket μ\mu with a known long-run success rate, regardless of the shape of the original population.

Proof

By the Central Limit Theorem, Xˉ−μσ/n\frac{\bar X - \mu}{\sigma/\sqrt n} converges in distribution to N(0,1)N(0,1) as nn→∞\to\infty. So for large nn, −zα/2≤Xˉ−μσ/n≤zα/2-z_{\alpha/2} \le \frac{\bar X - \mu}{\sigma/\sqrt n} \le z_{\alpha/2} holds with probability approximately 1−α1-\alpha, where zα/2z_{\alpha/2} is the value cutting probability α/2\alpha/2 from each tail of N(0,1)N(0,1).

Multiply all three sides of the inequality by σn\frac{\sigma}{\sqrt n}>0>0 (this preserves the inequality direction): −zα/2σn≤Xˉ−μ≤zα/2σn-z_{\alpha/2}\frac{\sigma}{\sqrt n} \le \bar X - \mu \le z_{\alpha/2}\frac{\sigma}{\sqrt n}.

Xˉ\bar X is subtracted from all sides, then all sides are multiplied by −1-1 (flipping the inequalities): Xˉ−zα/2σn≤μ≤Xˉ+zα/2σn\bar X - z_{\alpha/2}\frac{\sigma}{\sqrt n} \le \mu \le \bar X + z_{\alpha/2}\frac{\sigma}{\sqrt n}. This is exactly the confidence-interval formula: since the underlying probability statement held with approximate probability 1−α1-\alpha, so does this rearranged interval containing μ\mu.

The margin of error E=zα/2σnE = z_{\alpha/2}\frac{\sigma}{\sqrt n} shrinks only like 1/n1/\sqrt n, not like 1/n1/n: to cut the margin of error in half you must quadruple the sample size nn, and to cut it to a third you need nine times as many observations. Precision is expensive: each extra digit of accuracy costs far more data than the one before it.

UndergraduateReal-World Applications and Worked Examples

Confidence intervals appear wherever a decision must be made from an incomplete sample: quality control on a factory line, opinion polling before an election, dosage trials in medicine, or calibrating a telescope from repeated measurements. In every case, the same formula turns a sample average into a range that is honest about its own uncertainty.

Example: Confidence interval for a bolt's mean diameter

A quality-control engineer samples n=64n=64 bolts and finds a sample mean diameter xˉ=12.02\bar x = 12.02 mm, with known population standard deviation σ=0.16\sigma = 0.16 mm. Construct a 95% confidence interval for the true mean diameter μ\mu, using z0.025=1.96z_{0.025}=1.96.

Solution

The standard error is 0.1664=0.02\frac{0.16}{\sqrt{64}} = 0.02 mm.

The margin of error is 1.96×0.02=0.03921.96 \times 0.02 = 0.0392 mm.

The 95% confidence interval is (12.02−0.0392, 12.02+0.0392)=(11.981, 12.059)(12.02 - 0.0392,\ 12.02 + 0.0392) = (11.981,\ 12.059) mm: we are 95% confident that the true mean bolt diameter lies in this range.

Example: Estimating the share of voters supporting a policy

A pollster surveys n=400n=400 randomly chosen voters and finds a sample proportion p^=0.53\hat p = 0.53 in favor of a policy. Treating the sample proportion as a sample mean of 0/1 responses, construct a 95% confidence interval for the true population proportion μ\mu in favor, using z0.025=1.96z_{0.025}=1.96.

Solution

The estimated standard deviation of a single 0/1 response is p^(1−p^)=0.53×0.47≈0.499\sqrt{\hat p(1-\hat p)} = \sqrt{0.53\times 0.47} \approx 0.499, so the standard error of the sample proportion is 0.499400≈0.025\frac{0.499}{\sqrt{400}} \approx 0.025.

The margin of error is 1.96×0.025≈0.0491.96 \times 0.025 \approx 0.049.

The 95% confidence interval is (0.53−0.049, 0.53+0.049)=(0.481, 0.579)(0.53 - 0.049,\ 0.53 + 0.049) = (0.481,\ 0.579): the poll is 95% confident the true support lies between about 48.1% and 57.9%, which is too wide to call the policy majority-supported with certainty -- a larger sample would be needed for a tighter call.

Using the margin-of-error formula E=zα/2σnE = z_{\alpha/2}\frac{\sigma}{\sqrt n}, what is the margin of error when zα/2=1.96z_{\alpha/2}=1.96, σ=8\sigma=8, and n=64n=64?

A 95% confidence interval for the mean daily temperature is computed from one sample. What is the correct interpretation of "95% confidence"?

The property E[Xˉ]=μE[\bar X] = \mu for every sample size nn describes which characteristic of the estimator Xˉ\bar X?

If the sample size nn increases from 100 to 400, with σ\sigma and zα/2z_{\alpha/2} unchanged, the margin of error is multiplied by ...

References

  1. NIST/SEMATECH (2013). Confidence Limits for the Mean
  2. Diez, D.; Cetinkaya-Rundel, M.; Barr, C. (2019). OpenIntro Statistics