University of Illinois Urbana-Champaign · FACULTY OF STATISTICS

STAT 400 Chap.9 Confidence Intervals and Sample Size

- one subject, every graph, every model, every mark
6 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 9 of 11 · STAT 400

Confidence Intervals and Sample Size

Sampling distributions come first

An interval estimate needs to know how a statistic varies from sample to sample. For a normal population three results do the work. The standardised sample mean with known σ is standard normal. The scaled sample variance (n − 1)S²/σ² follows a chi-square distribution with n − 1 degrees of freedom.

And replacing σ with S in the standardised mean gives Student's t distribution with n − 1 degrees of freedom. The course introduces the chi-square and t distributions in their own right, including reading their tables, before building any interval.

Degrees of freedom in plain terms

The deviations of the observations from the sample mean always sum to zero, so once n − 1 of them are known the last is fixed.

That is the sense in which estimating the mean costs one degree of freedom, and it is why the sample variance divides by n − 1. A t distribution with few degrees of freedom has heavier tails than the normal, so its critical values are larger; as the degrees of freedom grow, it approaches the standard normal.

Intervals for a mean, a proportion and a variance

Every interval in this chapter has the shape estimate plus or minus a critical value times a standard error, except the variance interval, which divides by two different chi-square values because the chi-square distribution is not symmetric.

For a mean, use z when σ is known and t with n − 1 degrees of freedom when it is estimated. For a proportion, the large-sample interval uses the sample proportion in its standard error.

The course also asks for one-sided confidence bounds, which put all of α in one tail and so use z_α rather than z_α/2.

Interpreting confidence

A 95% confidence level describes the method: across repeated samples, 95% of intervals built this way contain the parameter. A single computed interval either contains it or does not.

The correct sentence is that you are 95% confident the interval captures the population mean, not that the mean has a 95% probability of lying inside it.

Planning the sample size

Solving the margin-of-error formula for n turns an interval into a planning tool.

For a mean with known σ, n = (zσ/ε)²; for a proportion, n = z²p*(1 − p*)/ε², using p* = 0.5 when no prior estimate is available because it gives the largest, safest n. Always round up. Halving the margin requires four times the sample.

In this chapter

What this chapter covers

  • 01

    Chi-square and t distributions

  • 02

    Degrees of freedom

  • 03

    Intervals for a mean with σ known or unknown

  • 04

    Intervals and bounds for a proportion

  • 05

    Interval for a variance

  • 06

    Sample size for a target margin

Worked example · free

A t interval from summary statistics

Q [6 marks]. AskSia-authored practice. Twenty lab measurements give x̄ = 3.42 and s = 0.58. Construct a 95% confidence interval for the population mean and interpret it. Use the weighting for self-assessment only; it is not an official scheme.
Figure.Figure. Twenty 95% t intervals from twenty simulated samples of size 16. The method captures μ about 95% of the time; any single interval either contains μ or does not (misses in red).4045505560interval for μtrue μ = 5019 of 20 cover μ
Figure. Twenty 95% t intervals from twenty simulated samples of size 16. The method captures μ about 95% of the time; any single interval either contains μ or does not (misses in red).
  • 2σ is unknown, so use t with 19 degrees of freedom; the upper 2.5% critical value is 2.093.
  • 2Standard error = 0.58/√20 = 0.1297, so the margin is 2.093 × 0.1297 = 0.271.
  • 2Interval: 3.42 ± 0.271 = (3.15, 3.69), read as the method capturing μ in 95% of samples.
The 95% interval is (3.15, 3.69). We are 95% confident it contains the population mean measurement, meaning the procedure captures μ in 95% of repeated samples.
Sia tip — Decide z or t by asking whether σ was given or estimated from the same data; if it came from the data, use t.
Glossary

Key terms

Confidence Interval
An interval computed from sample data by a method that captures the parameter in a stated proportion of repeated samples.
Degrees of Freedom
The number of independent pieces of information behind an estimate; n − 1 for the sample variance of n observations.
Student's t Distribution
The distribution of the standardised sample mean when σ is replaced by S, symmetric with heavier tails than the normal.
Chi-Square Distribution
The distribution of a sum of squared independent standard normals, used for inference about a normal variance.
Margin of Error
The half-width of a symmetric confidence interval, equal to a critical value times the standard error.
FAQ

Confidence Intervals and Sample Size FAQ

When should I use t instead of z for a mean?

Use t whenever the population standard deviation is estimated from the same sample, which is the usual case. Use z only when σ is genuinely known from outside the data.

Why is the variance interval not centred on the sample variance?

The chi-square distribution is skewed to the right, so the two critical values sit at different distances from the centre, and dividing by them produces an interval that is longer above s² than below it.

Why use 0.5 for the proportion when planning a sample size?

The product p(1 − p) is largest at p = 0.5, so that choice gives the biggest required sample and guarantees the margin of error whatever the true proportion turns out to be.

Study strategy

Exam move

Write the general shape, estimate plus or minus critical value times standard error, then fill it in for each of the four intervals. Practise reading the t and chi-square tables with the upper-tail convention until the two chi-square values for a variance interval come out in the right order.

Working through Confidence Intervals and Sample Size in STAT 400? Sia is AskSia’s AI Statistics tutor — ask any STAT 400 Confidence Intervals and Sample Size question and get a clear, step-by-step explanation grounded in how STAT 400 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 6 of your University of Illinois Urbana-Champaign subjects - and 1,000+ Bibles across every Australian university.
Sia - your STAT400 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works