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 . In most real situations, the population standard deviation is unknown, so we use the sample standard deviation as an estimate of .
Practice problem
Example:
A manufacturer is testing a new laptop model’s battery life. A simple random sample of laptops were timed and showed a sample mean battery life of hours with a sample standard deviation hours. Assume that the population of battery lives is approximately normally distributed.
Part a.
Give a confidence interval for the true mean battery life of this model.
Method 1: Without a TI-84 calculator
Start by calculating the standard error:
Next, find the critical value from a t-table. Use because:
- The degrees of freedom are .
- A confidence interval keeps the middle of the t-distribution, leaving in each tail.
- That’s why we use (not ) when locating the critical value.
Use the standard error and critical value to find the margin of error:
Construct the interval:
Method 2: With a TI-84 calculator
- Choose STAT, then TESTS, then 8: TInterval.
- Choose Stats and enter , , and .
- Set C-Level and select Calculate, then ENTER.
Solution:
Lower bound:
Upper bound:
The confidence interval is approximately .
(The TI-84 returns , which rounds to the same interval.)
Part b.
Based on this interval, do you think the true mean battery life is different from hours? Explain your reasoning.
To answer this, check whether falls inside the confidence interval .
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 , , , .
- Choose test type .
- Go to Calculate, then ENTER.
Solution:
Since is not in the interval, the interval suggests the true mean is different from . In fact, the entire interval is above , which suggests the true mean is greater than . At the significance level, we would reject the null hypothesis that the true mean is .
The TI-84 output shows , , . Since , we reject , which agrees with the conclusion from the confidence interval.
Part c.
Determine a confidence interval. What effect does moving from to have on this interval and why?
Method 1: Without a TI-84 calculator
The standard error stays the same:
Find the new critical value from a t-table. Use because:
- The degrees of freedom are still .
- A confidence interval keeps the middle of the distribution, leaving in each tail.
- That’s why we use (not ) when locating the critical value.
Compute the new margin of error:
Construct the interval:
Method 2: With a TI-84 calculator
Follow the same steps as in Part a, but set C-Level .
Moving from to makes the interval wider. A higher confidence level requires capturing more of the t-distribution, which increases the critical value and therefore increases the margin of error.
Solution:
Lower bound:
Upper bound:
The confidence interval is approximately .
(The TI-84 returns .)
Part d.
If the sample mean remained and the sample standard deviation remained but the sample size was instead of , what would the 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 , which affects the degrees of freedom, the standard error, and the margin of error.
Find the new standard error:
Find the new degrees of freedom:
From the t-table:
Compute the margin of error:
Construct the interval:
Method 2: With a TI-84 calculator
Follow the same steps as in Part a, but use instead of .
Solution:
Lower bound:
Upper bound:
The confidence interval is , which is narrower than the earlier interval of based on . With a larger sample size, the standard error gets smaller, so the margin of error shrinks and the estimate becomes more precise.
(The TI-84 returns .)