STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Confidence intervals, explained with examples

A confidence interval gives a range of plausible values for a population parameter, based on a sample. It is one of the two main tools of statistical inference in AP Statistics, alongside significance tests.

On this page
  1. The big idea
  2. Interval for a population proportion
  3. Interval for a population mean
  4. The four steps (PANIC or State-Plan-Do-Conclude)
  5. How to interpret the interval
  6. What the confidence level means
  7. Margin of error and sample size
  8. Intervals for a difference
  9. Using an interval to judge a claim
  10. Common mistakes
  11. Practice questions
  12. Frequently asked questions
  13. Key takeaways
  14. Related guides

The big idea

A sample statistic, such as the proportion of 500 voters who support a policy, is our best single estimate of the population value. But a different sample would give a slightly different answer. A confidence interval reflects that uncertainty by giving a range instead of a single number.

Every confidence interval in AP Statistics has the same structure:

statistic ± (critical value) × (standard error)

The part after ± is the margin of error. The critical value depends on the confidence level, and the standard error measures how much the statistic typically varies from sample to sample.

0.540.580.620.660.70p̂ = 0.620.5720.668
A 95% confidence interval: the estimate plus and minus the margin of error.

Interval for a population proportion

p̂ ± z* √(p̂(1 − p̂)/n)

Common critical values: z* = 1.645 for 90%, 1.96 for 95% and 2.576 for 99% confidence.

Example 1: a proportion

In a random sample of 400 students, 248 say they use a revision app. Construct a 95% confidence interval for the proportion of all students who use one.

Interval for a population mean

When the population standard deviation is unknown, which is almost always, use the t distribution:

x̄ ± t* (s/√n), with degrees of freedom n − 1.

The t distribution has heavier tails than the normal, so t* is a little larger than z*, especially for small samples. As n grows, t* gets closer to z*.

Example 2: a mean

A random sample of 25 batteries has mean life 41.2 hours and standard deviation 3.5 hours. Construct a 95% confidence interval for the mean life of all such batteries.

The four steps (PANIC or State-Plan-Do-Conclude)

  1. State the parameter and confidence level in context.
  2. Plan: name the procedure, such as a one-sample z interval for p, and check the conditions: random, 10%, and large counts or normality.
  3. Do the calculation.
  4. Conclude with an interpretation in context.

How to interpret the interval

A correct interpretation: “We are 95% confident that the interval from 0.572 to 0.668 captures the true proportion of all students who use a revision app.”

Avoid saying “there is a 95% probability that the true proportion is in this interval”. Once the interval is calculated, the true value is either in it or not; the 95% describes how reliable the method is.

What the confidence level means

The confidence level describes the method, not a single interval. If we took many random samples and built a 95% interval from each one, about 95% of those intervals would capture the true parameter. AP questions frequently ask for this interpretation separately, so learn both.

Margin of error and sample size

Example 3: choosing a sample size

How large a sample is needed to estimate a proportion within ±0.03 at 95% confidence, with no prior estimate?

Intervals for a difference

AP Statistics also uses intervals to compare two groups. For two proportions, the interval is (p̂1 − p̂2) ± z*√(p̂1(1 − p̂1)/n1 + p̂2(1 − p̂2)/n2). For two means, it uses x̄1 − x̄2 with a t critical value. Check the conditions for each sample separately, and make sure the samples are independent of each other.

The key interpretation skill is looking at zero. If the interval for a difference contains 0, there is no convincing evidence of a difference between the groups. If the whole interval is above 0, the first group's parameter appears larger; if it is entirely below 0, it appears smaller. For paired data, such as before-and-after scores for the same students, do not use two-sample methods: work with the differences and build a one-sample t interval.

Using an interval to judge a claim

If a claimed value lies outside a 95% interval, the data give convincing evidence against it at the 5% significance level (for a two-sided test). If it lies inside, the claimed value is plausible. In Example 1, a claim that half of all students use an app is not supported, because 0.5 is below the interval.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. What is z* for a 99% confidence interval?

Show answer
2.576.

Q2. p̂ = 0.3 and n = 100. Find the 95% margin of error.

Show answer
1.96√(0.21/100) ≈ 0.090.

Q3. An interval for a mean is (12.1, 15.9). What are the sample mean and margin of error?

Show answer
Mean = 14.0, margin = 1.9.

Q4. What happens to a confidence interval if the sample size is multiplied by 4?

Show answer
Its width is halved.

Frequently asked questions

Are confidence intervals on the AP Statistics exam?

Yes. They appear in Units 6 and 7 for proportions and means, and in Unit 9 for slopes, and they almost always appear on the free-response section.

Are confidence intervals in A level Maths?

Not in A level Maths. They appear in some A level Further Maths statistics options.

Key takeaways