Wize Engineering Mathematics Textbook > Confidence Intervals and Hypothesis Testing

Confidence Intervals on the Mean of a Normal Distribution

Confidence Intervals on the Mean of a Normal Distribution

A confidence interval (CI) gives a range of plausible values for an unknown population mean μ\mu, built from a sample. The width of the interval reflects how much sampling uncertainty remains after collecting data.

Case 1: Population variance σ2\sigma^2 known

If the population is normal, the sampling distribution of xˉ\bar{x} is normal. If the population is non-normal but nn is large enough for the CLT, the sampling distribution of xˉ\bar{x} is approximately normal, so a two-sided (1−α)100%(1-\alpha)100\% CI is


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}}


where zα/2z_{\alpha/2} cuts off area α/2\alpha/2 in each tail of the standard normal curve (see the figure).

Standard normal density with critical values at \pm z_{\alpha/2}, each cutting off tail area \alpha/2; the criticals are drawn at the 95% position purely as an illustration. The bar beneath marks the interval on the standardized scale, which maps back to \bar{x}\pm z_{\alpha/2}\sigma/\sqrt{n} on the measurement scale.

Standard normal density with critical values at ±zα/2\pm z_{\alpha/2}, each cutting off tail area α/2\alpha/2; the criticals are drawn at the 95% position purely as an illustration. The bar beneath marks the interval on the standardized scale, which maps back to xˉ±zα/2σ/n\bar{x}\pm z_{\alpha/2}\sigma/\sqrt{n} on the measurement scale.

Case 2: Population variance unknown

When σ\sigma is unknown, replace it with the sample standard deviation ss and switch to the t-distribution with n−1n-1 degrees of freedom, because estimating σ\sigma adds extra uncertainty:


xˉ−tα/2, n−1sn≤μ≤xˉ+tα/2, n−1sn\bar{x} - t_{\alpha/2,\,n-1}\frac{s}{\sqrt{n}} \le \mu \le \bar{x} + t_{\alpha/2,\,n-1}\frac{s}{\sqrt{n}}

Worked example

A sample of n=25n=25 parts has xˉ=48.2 mm\bar{x}=48.2\ \text{mm} and known σ=6 mm\sigma = 6\ \text{mm}. For a 90% CI, z0.05=1.645z_{0.05}=1.645, so the margin of error is 1.645(6/25)=1.974 mm1.645(6/\sqrt{25}) = 1.974\ \text{mm}, giving the interval 48.2±1.974 mm48.2 \pm 1.974\ \text{mm}.

Margin of error versus sample size for a 95% z-interval with sigma = 4

Margin of error versus sample size for a 95% z-interval with sigma = 4



The graph shows how the 95% margin of error z0.025σ/nz_{0.025}\sigma/\sqrt{n} shrinks as sample size increases, for a population with σ=4\sigma = 4. Reading the trend on the graph, which value is closest to the margin of error at n=60n = 60?

Standard normal density with critical values at \pm z_{\alpha/2}, each cutting off tail area \alpha/2; the criticals are drawn at the 95% position purely as an illustration. The bar beneath marks the interval on the standardized scale, which maps back to \bar{x}\pm z_{\alpha/2}\sigma/\sqrt{n} on the measurement scale.

Standard normal density with critical values at ±zα/2\pm z_{\alpha/2}, each cutting off tail area α/2\alpha/2; the criticals are drawn at the 95% position purely as an illustration. The bar beneath marks the interval on the standardized scale, which maps back to xˉ±zα/2σ/n\bar{x}\pm z_{\alpha/2}\sigma/\sqrt{n} on the measurement scale.

Margin of error versus sample size for a 95% z-interval with sigma = 4

Margin of error versus sample size for a 95% z-interval with sigma = 4

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A quality engineer samples n=12n = 12 bolts from a normal population and computes only the sample standard deviation ss; the population standard deviation σ\sigma is not known. Which distribution should be used to build a confidence interval for the mean bolt length?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Using the construction shown in the figure, a lab measures n=36n = 36 samples of a chemical concentration with known σ=3 mg/L\sigma = 3\ \text{mg/L} and finds xˉ=25.4 mg/L\bar{x} = 25.4\ \text{mg/L}. For a 90% confidence interval, z0.05=1.645z_{0.05} = 1.645. Which interval below is correct?

Standard normal density with critical values at \pm z_{\alpha/2}, each cutting off tail area \alpha/2; the criticals are drawn at the 95% position purely as an illustration. The bar beneath marks the interval on the standardized scale, which maps back to \bar{x}\pm z_{\alpha/2}\sigma/\sqrt{n} on the measurement scale.

Standard normal density with critical values at ±zα/2\pm z_{\alpha/2}, each cutting off tail area α/2\alpha/2; the criticals are drawn at the 95% position purely as an illustration. The bar beneath marks the interval on the standardized scale, which maps back to xˉ±zα/2σ/n\bar{x}\pm z_{\alpha/2}\sigma/\sqrt{n} on the measurement scale.

Margin of error versus sample size for a 95% z-interval with sigma = 4

Margin of error versus sample size for a 95% z-interval with sigma = 4

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors