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
7. Quantitative data
7.1 Significance test for the difference of two means
7.2 The t distribution
7.3 Confidence intervals for the mean
7.4 Significance test for the mean
7.5 Confidence intervals for the difference of two means
7.6 Hypothesis testing errors
7.7 Paired data
8. Chi-square
9. Linear regression
Wrapping up
Achievable logoAchievable logo
7.3 Confidence intervals for the mean
Achievable AP Statistics
7. Quantitative data
Our AP Statistics course is currently in development and is a work-in-progress.

Confidence intervals for the mean

7 min read
Font
Discuss
Share
Feedback

The purpose of a confidence interval

The purpose of a confidence interval for the mean is to estimate the population mean μ using a single sample mean xˉ. In most real situations, the population standard deviation σ is unknown, so we use the sample standard deviation s as an estimate of σ.

Definitions
Confidence interval for a mean
An interval that gives a range of plausible values for the true population mean μ, based on the sample mean xˉ. When σ is unknown, we use the t-distribution.
Standard error of the mean
An estimate of the standard deviation of the sampling distribution of xˉ.

SE​=n​s​​

Margin of error (ME)
The amount we add and subtract from the sample mean to form the confidence interval.

ME​=t∗⋅SE​

Before using a t-interval, check these conditions:

  • Randomness: The sample should be random (ideally a simple random sample).
  • Independence: The sample should be no more than 10% of the population.
  • Normality (for t-procedures): The population is approximately normal, or the sample size is large enough for the central limit theorem to apply.

A t-confidence interval for a mean has the form:

xˉ±t∗⋅n​s​​

Practice problem

Example:

A manufacturer is testing a new laptop model’s battery life. A simple random sample of 12 laptops were timed and showed a sample mean battery life of xˉ=52.4 hours with a sample standard deviation s=3.1 hours. Assume that the population of battery lives is approximately normally distributed.

Part a.

Give a 95% confidence interval for the true mean battery life of this model.

Method 1: Without a TI-84 calculator

Start by calculating the standard error:

SE​=n​s​=12​3.1​≈0.895​

Next, find the critical value from a t-table. Use t0.975,11​≈2.2 because:

  • The degrees of freedom are df=n−1=12−1=11.
  • A 95% confidence interval keeps the middle 95% of the t-distribution, leaving 2.5% in each tail.
  • That’s why we use 1−0.025=0.975 (not 0.95) when locating the critical value.

Use the standard error and critical value to find the margin of error:

ME95​​=t∗⋅SE≈2.2×0.895≈1.97​

Construct the interval:

xˉ±ME​=52.4±1.97​

Method 2: With a TI-84 calculator

  • Choose STAT, then TESTS, then 8: TInterval.
  • Choose Stats and enter xˉ=52.4, Sx​=3.1, and n=12.
  • Set C-Level =0.95 and select Calculate, then ENTER.

Solution:

(spoiler)

Lower bound:

52.4−1.97​=50.43​

Upper bound:

52.4+1.97​=54.37​

The 95% confidence interval is approximately (50.43,54.37).

(The TI-84 returns (50.43035411,54.36964589), which rounds to the same interval.)

Part b.

Based on this interval, do you think the true mean battery life is different from 50 hours? Explain your reasoning.

To answer this, check whether 50 falls inside the 95% confidence interval (50.43,54.37).

A TI-84 can also confirm the answer with a one-sample t-test:

  • Choose STAT, then TESTS, then 2: T-Test.
  • Choose Stats. Input μ0​=50, xˉ=52.4, Sx​=3.1, n=12.
  • Choose test type =μ0​.
  • Go to Calculate, then ENTER.

Solution:

(spoiler)

Since 50 is not in the interval, the interval suggests the true mean is different from 50. In fact, the entire interval is above 50, which suggests the true mean is greater than 50. At the 5% significance level, we would reject the null hypothesis that the true mean is 50.

The TI-84 output shows t≈2.6829, df=11, p≈0.021. Since p<0.05, we reject H0​, which agrees with the conclusion from the confidence interval.

Part c.

Determine a 99% confidence interval. What effect does moving from 95% to 99% have on this interval and why?

Method 1: Without a TI-84 calculator

The standard error stays the same:

SE​≈0.895​

Find the new critical value from a t-table. Use t0.995,11​≈3.1 because:

  • The degrees of freedom are still df=n−1=12−1=11.
  • A 99% confidence interval keeps the middle 99% of the distribution, leaving 0.5% in each tail.
  • That’s why we use 1−0.005=0.995 (not 0.99) when locating the critical value.

Compute the new margin of error:

ME99​​=t∗⋅SE≈3.1×0.895≈2.779​

Construct the interval:

xˉ±ME​=52.4±2.779​

Method 2: With a TI-84 calculator

Follow the same steps as in Part a, but set C-Level =0.99.

Moving from 95% to 99% makes the interval wider. A higher confidence level requires capturing more of the t-distribution, which increases the critical value t∗ and therefore increases the margin of error.

Solution:

(spoiler)

Lower bound:

52.4−2.779​=49.621​

Upper bound:

52.4+2.779​=55.179​

The 99% confidence interval is approximately (49.621,55.179).

(The TI-84 returns (49.6206,55.1794).)

Part d.

If the sample mean remained 52.4 and the sample standard deviation remained 3.1 but the sample size was 24 instead of 12, what would the 95% confidence interval be? How does changing the sample size impact the confidence interval and why does this occur?

Method 1: Without a TI-84 calculator

The only change is that n=24, which affects the degrees of freedom, the standard error, and the margin of error.

Find the new standard error:

SE24​​=24​3.1​≈0.633​

Find the new degrees of freedom:

df​=n−1=24−1=23​

From the t-table:

t0.975,23​​≈2.068657​

Compute the margin of error:

ME​=t∗⋅SE24​=2.068657⋅0.633≈1.3​

Construct the interval:

xˉ±ME​=52.4±1.3​

Method 2: With a TI-84 calculator

Follow the same steps as in Part a, but use n=24 instead of n=12.

Solution:

(spoiler)

Lower bound:

52.4−1.3​=51.1​

Upper bound:

52.4+1.3​=53.7​

The 95% confidence interval is (51.1,53.7), which is narrower than the earlier interval of (50.43,54.37) based on n=12. With a larger sample size, the standard error n​s​ gets smaller, so the margin of error shrinks and the estimate becomes more precise.

(The TI-84 returns (51.09098519,53.70901481).)

Purpose and Construction of t-Intervals

  • Estimate population mean μ using sample mean xˉ
  • Use sample standard deviation s when σ is unknown
  • Standard error: n​s​

Conditions for Using t-Intervals

  • Random sample required
  • Independence: sample ≤10% of population
  • Normality: population normal or large n (Central Limit Theorem)

Steps for Calculating a t-Interval

  • Compute standard error: n​s​
  • Find critical t-value (t∗) using degrees of freedom df=n−1
  • Margin of error: t∗⋅SE
  • Confidence interval: xˉ± margin of error

Effect of Confidence Level

  • Higher confidence level (e.g., 99% vs 95%) increases t∗ and widens interval
  • Wider interval captures more plausible values for μ

Effect of Sample Size

  • Larger n decreases standard error and margin of error
  • Confidence interval becomes narrower, estimate more precise

Interpreting Confidence Intervals

  • If hypothesized value (e.g., 50) is outside interval, evidence suggests true mean differs
  • Correct interpretation: “C% confident true mean is between [lower, upper]”

Key Formula

  • Confidence interval for mean: xˉ±t∗⋅n​s​

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

Previous
Next  | 7.4 Significance test for the mean
All rights reserved ©2016 - 2026 Achievable, Inc.

Confidence intervals for the mean

The purpose of a confidence interval

The purpose of a confidence interval for the mean is to estimate the population mean μ using a single sample mean xˉ. In most real situations, the population standard deviation σ is unknown, so we use the sample standard deviation s as an estimate of σ.

Definitions
Confidence interval for a mean
An interval that gives a range of plausible values for the true population mean μ, based on the sample mean xˉ. When σ is unknown, we use the t-distribution.
Standard error of the mean
An estimate of the standard deviation of the sampling distribution of xˉ.

SE​=n​s​​

Margin of error (ME)
The amount we add and subtract from the sample mean to form the confidence interval.

ME​=t∗⋅SE​

Before using a t-interval, check these conditions:

  • Randomness: The sample should be random (ideally a simple random sample).
  • Independence: The sample should be no more than 10% of the population.
  • Normality (for t-procedures): The population is approximately normal, or the sample size is large enough for the central limit theorem to apply.

A t-confidence interval for a mean has the form:

xˉ±t∗⋅n​s​​

Practice problem

Example:

A manufacturer is testing a new laptop model’s battery life. A simple random sample of 12 laptops were timed and showed a sample mean battery life of xˉ=52.4 hours with a sample standard deviation s=3.1 hours. Assume that the population of battery lives is approximately normally distributed.

Part a.

Give a 95% confidence interval for the true mean battery life of this model.

Method 1: Without a TI-84 calculator

Start by calculating the standard error:

SE​=n​s​=12​3.1​≈0.895​

Next, find the critical value from a t-table. Use t0.975,11​≈2.2 because:

  • The degrees of freedom are df=n−1=12−1=11.
  • A 95% confidence interval keeps the middle 95% of the t-distribution, leaving 2.5% in each tail.
  • That’s why we use 1−0.025=0.975 (not 0.95) when locating the critical value.

Use the standard error and critical value to find the margin of error:

ME95​​=t∗⋅SE≈2.2×0.895≈1.97​

Construct the interval:

xˉ±ME​=52.4±1.97​

Method 2: With a TI-84 calculator

  • Choose STAT, then TESTS, then 8: TInterval.
  • Choose Stats and enter xˉ=52.4, Sx​=3.1, and n=12.
  • Set C-Level =0.95 and select Calculate, then ENTER.

Solution:

(spoiler)

Lower bound:

52.4−1.97​=50.43​

Upper bound:

52.4+1.97​=54.37​

The 95% confidence interval is approximately (50.43,54.37).

(The TI-84 returns (50.43035411,54.36964589), which rounds to the same interval.)

Part b.

Based on this interval, do you think the true mean battery life is different from 50 hours? Explain your reasoning.

To answer this, check whether 50 falls inside the 95% confidence interval (50.43,54.37).

A TI-84 can also confirm the answer with a one-sample t-test:

  • Choose STAT, then TESTS, then 2: T-Test.
  • Choose Stats. Input μ0​=50, xˉ=52.4, Sx​=3.1, n=12.
  • Choose test type =μ0​.
  • Go to Calculate, then ENTER.

Solution:

(spoiler)

Since 50 is not in the interval, the interval suggests the true mean is different from 50. In fact, the entire interval is above 50, which suggests the true mean is greater than 50. At the 5% significance level, we would reject the null hypothesis that the true mean is 50.

The TI-84 output shows t≈2.6829, df=11, p≈0.021. Since p<0.05, we reject H0​, which agrees with the conclusion from the confidence interval.

Part c.

Determine a 99% confidence interval. What effect does moving from 95% to 99% have on this interval and why?

Method 1: Without a TI-84 calculator

The standard error stays the same:

SE​≈0.895​

Find the new critical value from a t-table. Use t0.995,11​≈3.1 because:

  • The degrees of freedom are still df=n−1=12−1=11.
  • A 99% confidence interval keeps the middle 99% of the distribution, leaving 0.5% in each tail.
  • That’s why we use 1−0.005=0.995 (not 0.99) when locating the critical value.

Compute the new margin of error:

ME99​​=t∗⋅SE≈3.1×0.895≈2.779​

Construct the interval:

xˉ±ME​=52.4±2.779​

Method 2: With a TI-84 calculator

Follow the same steps as in Part a, but set C-Level =0.99.

Moving from 95% to 99% makes the interval wider. A higher confidence level requires capturing more of the t-distribution, which increases the critical value t∗ and therefore increases the margin of error.

Solution:

(spoiler)

Lower bound:

52.4−2.779​=49.621​

Upper bound:

52.4+2.779​=55.179​

The 99% confidence interval is approximately (49.621,55.179).

(The TI-84 returns (49.6206,55.1794).)

Part d.

If the sample mean remained 52.4 and the sample standard deviation remained 3.1 but the sample size was 24 instead of 12, what would the 95% confidence interval be? How does changing the sample size impact the confidence interval and why does this occur?

Method 1: Without a TI-84 calculator

The only change is that n=24, which affects the degrees of freedom, the standard error, and the margin of error.

Find the new standard error:

SE24​​=24​3.1​≈0.633​

Find the new degrees of freedom:

df​=n−1=24−1=23​

From the t-table:

t0.975,23​​≈2.068657​

Compute the margin of error:

ME​=t∗⋅SE24​=2.068657⋅0.633≈1.3​

Construct the interval:

xˉ±ME​=52.4±1.3​

Method 2: With a TI-84 calculator

Follow the same steps as in Part a, but use n=24 instead of n=12.

Solution:

(spoiler)

Lower bound:

52.4−1.3​=51.1​

Upper bound:

52.4+1.3​=53.7​

The 95% confidence interval is (51.1,53.7), which is narrower than the earlier interval of (50.43,54.37) based on n=12. With a larger sample size, the standard error n​s​ gets smaller, so the margin of error shrinks and the estimate becomes more precise.

(The TI-84 returns (51.09098519,53.70901481).)

Key points

Purpose and Construction of t-Intervals

  • Estimate population mean μ using sample mean xˉ
  • Use sample standard deviation s when σ is unknown
  • Standard error: n​s​

Conditions for Using t-Intervals

  • Random sample required
  • Independence: sample ≤10% of population
  • Normality: population normal or large n (Central Limit Theorem)

Steps for Calculating a t-Interval

  • Compute standard error: n​s​
  • Find critical t-value (t∗) using degrees of freedom df=n−1
  • Margin of error: t∗⋅SE
  • Confidence interval: xˉ± margin of error

Effect of Confidence Level

  • Higher confidence level (e.g., 99% vs 95%) increases t∗ and widens interval
  • Wider interval captures more plausible values for μ

Effect of Sample Size

  • Larger n decreases standard error and margin of error
  • Confidence interval becomes narrower, estimate more precise

Interpreting Confidence Intervals

  • If hypothesized value (e.g., 50) is outside interval, evidence suggests true mean differs
  • Correct interpretation: “C% confident true mean is between [lower, upper]”

Key Formula

  • Confidence interval for mean: xˉ±t∗⋅n​s​

More from Quantitative data

  • Significance test for the difference of two means
  • The t distribution
  • Significance test for the mean
  • Confidence intervals for the difference of two means
  • Hypothesis testing errors