Achievable logoAchievable logo
AP Statistics
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. One variable data
2. Two variable data
3. Data collection
4. Probability and random variables
5. Sampling distributions
6. Categorical data
6.1 Introduction to confidence intervals
6.2 Introduction to significance testing
6.3 Confidence intervals for difference of two proportions
6.4 Significance tests for difference of two proportions
7. Quantitative data
8. Chi-square
9. Linear regression
Wrapping up
Achievable logoAchievable logo
6.1 Introduction to confidence intervals
Achievable AP Statistics
6. Categorical data
Our AP Statistics course is currently in development and is a work-in-progress.

Introduction to confidence intervals

6 min read
Font
Discuss
Share
Feedback

Confidence intervals

A confidence interval gives a range of plausible values for a population parameter (such as a true proportion or a true mean), based on sample data.

Example:

Suppose there are 100 products being tested. In this sample, the manufacturer decides to move forward with 6 of them. If a 90% confidence interval is (3,9), this means we can be 90% confident that the true percentage of products the manufacturer would move forward with (in the overall population or long run) is between 3% and 9%. This does not mean there is a 90% probability that the true percentage is in the interval. The true percentage is a single fixed value. It is either inside the interval (between 3% and 9%) or it is not.

As the confidence level increases, the interval must get wider to capture the true value more often. As the confidence level decreases, the interval can be narrower because we’re willing to be less certain. In practice, 90%, 95%, and 99% confidence intervals are the most common, but you can construct a confidence interval for any confidence level.

Conditions for inference

Before constructing a confidence interval, we need to verify that certain conditions are met so that our inference methods are valid.

Definitions
Independence
The trials in the sample or experiment must be independent of one another. For samples, this means using random sampling methods and having a relatively large sample size. Also, the sample size n should typically be no larger than 10% of the overall population (because sampling without replacement can create dependence when the sample is too large). For experiments, subjects should be randomly assigned to treatments, and there should be a control group.
Normality
Inference for proportions uses the normal model. When you run multiple independent trials with two outcomes, the underlying model is binomial, but the binomial distribution is approximately normal as long as np^​ and n(1−p^​) are both at least 10 (where p^​ is the sample proportion and n is the number of trials).

Inference for means also uses the normal model. This is exact when the population is normal. Even when the population is not normal, the central limit theorem says that if the sample size is large enough (typically at least 30), the distribution of sample means is approximately normal.

Confidence intervals for a proportion

If we want to estimate a population proportion p using a sample proportion p^​, it helps to remember the key facts about the sampling distribution of p^​:

Conditions for using the normal model

  • To use the normal approximation methods, we need:

np^​n(1−p^​)​≥10≥10​

Otherwise, the sampling distribution may not be approximately normal.

Shape and center

  • The set of all sample proportions is approximately normally distributed (by the central limit theorem).
  • The mean pμ​^​ of the sampling distribution of sample proportions is equal to p^​, the population proportion.

Spread

The standard deviation pσ​^​ of the sampling distribution is approximately:

pσ​^​​=np^​(1−p^​)​​​

Once those conditions are satisfied, we can use the sampling distribution to build an interval around our sample estimate.

A confidence interval is equal to the estimate ± the margin of error.

Margin of Error (ME)​=z∗×SE​

Practice problem

The example below walks through constructing a confidence interval for a proportion, using it to evaluate a claim, and thinking about how the confidence level affects the width of the interval.

Example 1:

Suppose a sample of 1000 students from the University of Michigan is surveyed. Suppose that 330 of them have at least some student loans.

Part a.

Determine a 90% confidence interval for the true proportion of students from this university who have student loans.

From the problem:

  • Sample size: n=1000
  • Sample proportion: p^​=1000330​=0.33
  • Confidence level: 90%

Check the large-counts condition:

np^​​=1000×1000330​=330​

n(1−p^​)​=1000×1000670​=670​

Both are at least 10, so using the normal model is reasonable.

For a 90% confidence interval, the two-tailed critical z-value is 1.645.

Now compute the standard error and margin of error:

SE​=np^​(1−p^​)​​=10000.33×0.67​​=0.0002211​=0.01487​

ME​=z∗×SE=1.645×0.01487=0.0245​

Construct the interval:

p^​±ME​=0.33±0.0245​

Solution:

(spoiler)

Lower bound:

0.33−0.0245​=0.3055​

Upper bound:

0.33+0.0245​=0.3545​

So, we can be 90% confident that the true proportion of University of Michigan students with student loans is between 30.5% and 35.5%.

With the interval in hand, we can now use it to evaluate specific claims about the population proportion.

Part b.

Does your answer from Part (a.) support the claim that at least 50% of all students at the University of Michigan have student loans?

Solution:

(spoiler)

No. The entire confidence interval is well below 50%. Since even the upper bound is far less than 50%, the interval does not support the claim that at least 50% of students have student loans.

Finally, let’s think about how changing the confidence level would change the width of the interval itself.

Part c.

Suppose you were to calculate a 95% confidence interval next. Would you expect this interval to be larger or smaller than the 90% one calculated in Part (a.)? Why?

Solution:

(spoiler)

You’d expect the 95% confidence interval to be wider.

Conceptually, higher confidence means you want your method to capture the true parameter more often, so you need a wider range of plausible values.

Mathematically, the width depends on the margin of error:

ME​=z∗×SE​

The z∗ values are:

90%95%​:z∗=1.645:z∗=1.96​

Since

1.96​>1.645​

The margin of error is larger, which makes the confidence interval wider.

Confidence intervals: definition and interpretation

  • Range of plausible values for a population parameter based on sample data
  • Confidence level (e.g., 90%) reflects how often intervals from repeated samples would capture the true parameter
  • Does not represent probability that the true value is in the interval (true value is fixed)

Confidence level and interval width

  • Higher confidence level → wider interval
  • Lower confidence level → narrower interval
  • Common levels: 90%, 95%, 99%

Conditions for inference

  • Independence:
    • Random sampling or random assignment
    • Sample size ≤ 10% of population (to avoid dependence)
  • Normality:
    • For proportions: np^​≥10 and n(1−p^​)≥10
    • For means: population normal or sample size ≥ 30 (central limit theorem)

Sampling distribution of sample proportion (p^​)

  • Approximately normal if large counts condition is met
  • Mean: population proportion p
  • Standard deviation: np^​(1−p^​)​​

Confidence interval formula for proportions

  • Confidence interval = estimate ± margin of error (ME)
  • ME=z∗×SE, where SE=np^​(1−p^​)​​
  • z∗: critical value for chosen confidence level

Example application

  • Check large counts condition before using normal model
  • Calculate sample proportion, standard error, margin of error, and construct interval
  • Wider intervals for higher confidence (e.g., 95% vs. 90%)
  • Interval interpretation: if entire interval is below a value (e.g., 50%), data does not support claims above that value

Sign up for free to take 8 quiz questions on this topic

Previous
Next  | 6.2 Introduction to significance testing
All rights reserved ©2016 - 2026 Achievable, Inc.

Introduction to confidence intervals

Confidence intervals

A confidence interval gives a range of plausible values for a population parameter (such as a true proportion or a true mean), based on sample data.

Example:

Suppose there are 100 products being tested. In this sample, the manufacturer decides to move forward with 6 of them. If a 90% confidence interval is (3,9), this means we can be 90% confident that the true percentage of products the manufacturer would move forward with (in the overall population or long run) is between 3% and 9%. This does not mean there is a 90% probability that the true percentage is in the interval. The true percentage is a single fixed value. It is either inside the interval (between 3% and 9%) or it is not.

As the confidence level increases, the interval must get wider to capture the true value more often. As the confidence level decreases, the interval can be narrower because we’re willing to be less certain. In practice, 90%, 95%, and 99% confidence intervals are the most common, but you can construct a confidence interval for any confidence level.

Conditions for inference

Before constructing a confidence interval, we need to verify that certain conditions are met so that our inference methods are valid.

Definitions
Independence
The trials in the sample or experiment must be independent of one another. For samples, this means using random sampling methods and having a relatively large sample size. Also, the sample size n should typically be no larger than 10% of the overall population (because sampling without replacement can create dependence when the sample is too large). For experiments, subjects should be randomly assigned to treatments, and there should be a control group.
Normality
Inference for proportions uses the normal model. When you run multiple independent trials with two outcomes, the underlying model is binomial, but the binomial distribution is approximately normal as long as np^​ and n(1−p^​) are both at least 10 (where p^​ is the sample proportion and n is the number of trials).

Inference for means also uses the normal model. This is exact when the population is normal. Even when the population is not normal, the central limit theorem says that if the sample size is large enough (typically at least 30), the distribution of sample means is approximately normal.

Confidence intervals for a proportion

If we want to estimate a population proportion p using a sample proportion p^​, it helps to remember the key facts about the sampling distribution of p^​:

Conditions for using the normal model

  • To use the normal approximation methods, we need:

np^​n(1−p^​)​≥10≥10​

Otherwise, the sampling distribution may not be approximately normal.

Shape and center

  • The set of all sample proportions is approximately normally distributed (by the central limit theorem).
  • The mean pμ​^​ of the sampling distribution of sample proportions is equal to p^​, the population proportion.

Spread

The standard deviation pσ​^​ of the sampling distribution is approximately:

pσ​^​​=np^​(1−p^​)​​​

Once those conditions are satisfied, we can use the sampling distribution to build an interval around our sample estimate.

A confidence interval is equal to the estimate ± the margin of error.

Margin of Error (ME)​=z∗×SE​

Practice problem

The example below walks through constructing a confidence interval for a proportion, using it to evaluate a claim, and thinking about how the confidence level affects the width of the interval.

Example 1:

Suppose a sample of 1000 students from the University of Michigan is surveyed. Suppose that 330 of them have at least some student loans.

Part a.

Determine a 90% confidence interval for the true proportion of students from this university who have student loans.

From the problem:

  • Sample size: n=1000
  • Sample proportion: p^​=1000330​=0.33
  • Confidence level: 90%

Check the large-counts condition:

np^​​=1000×1000330​=330​

n(1−p^​)​=1000×1000670​=670​

Both are at least 10, so using the normal model is reasonable.

For a 90% confidence interval, the two-tailed critical z-value is 1.645.

Now compute the standard error and margin of error:

SE​=np^​(1−p^​)​​=10000.33×0.67​​=0.0002211​=0.01487​

ME​=z∗×SE=1.645×0.01487=0.0245​

Construct the interval:

p^​±ME​=0.33±0.0245​

Solution:

(spoiler)

Lower bound:

0.33−0.0245​=0.3055​

Upper bound:

0.33+0.0245​=0.3545​

So, we can be 90% confident that the true proportion of University of Michigan students with student loans is between 30.5% and 35.5%.

With the interval in hand, we can now use it to evaluate specific claims about the population proportion.

Part b.

Does your answer from Part (a.) support the claim that at least 50% of all students at the University of Michigan have student loans?

Solution:

(spoiler)

No. The entire confidence interval is well below 50%. Since even the upper bound is far less than 50%, the interval does not support the claim that at least 50% of students have student loans.

Finally, let’s think about how changing the confidence level would change the width of the interval itself.

Part c.

Suppose you were to calculate a 95% confidence interval next. Would you expect this interval to be larger or smaller than the 90% one calculated in Part (a.)? Why?

Solution:

(spoiler)

You’d expect the 95% confidence interval to be wider.

Conceptually, higher confidence means you want your method to capture the true parameter more often, so you need a wider range of plausible values.

Mathematically, the width depends on the margin of error:

ME​=z∗×SE​

The z∗ values are:

90%95%​:z∗=1.645:z∗=1.96​

Since

1.96​>1.645​

The margin of error is larger, which makes the confidence interval wider.

Key points

Confidence intervals: definition and interpretation

  • Range of plausible values for a population parameter based on sample data
  • Confidence level (e.g., 90%) reflects how often intervals from repeated samples would capture the true parameter
  • Does not represent probability that the true value is in the interval (true value is fixed)

Confidence level and interval width

  • Higher confidence level → wider interval
  • Lower confidence level → narrower interval
  • Common levels: 90%, 95%, 99%

Conditions for inference

  • Independence:
    • Random sampling or random assignment
    • Sample size ≤ 10% of population (to avoid dependence)
  • Normality:
    • For proportions: np^​≥10 and n(1−p^​)≥10
    • For means: population normal or sample size ≥ 30 (central limit theorem)

Sampling distribution of sample proportion (p^​)

  • Approximately normal if large counts condition is met
  • Mean: population proportion p
  • Standard deviation: np^​(1−p^​)​​

Confidence interval formula for proportions

  • Confidence interval = estimate ± margin of error (ME)
  • ME=z∗×SE, where SE=np^​(1−p^​)​​
  • z∗: critical value for chosen confidence level

Example application

  • Check large counts condition before using normal model
  • Calculate sample proportion, standard error, margin of error, and construct interval
  • Wider intervals for higher confidence (e.g., 95% vs. 90%)
  • Interval interpretation: if entire interval is below a value (e.g., 50%), data does not support claims above that value

More from Categorical data

  • Introduction to significance testing
  • Confidence intervals for difference of two proportions
  • Significance tests for difference of two proportions