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 products being tested. In this sample, the manufacturer decides to move forward with of them. If a confidence interval is , this means we can be confident that the true percentage of products the manufacturer would move forward with (in the overall population or long run) is between and . This does not mean there is a probability that the true percentage is in the interval. The true percentage is a single fixed value. It is either inside the interval (between and ) 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, , , and 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.
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 ), the distribution of sample means is approximately normal.
Confidence intervals for a proportion
If we want to estimate a population proportion using a sample proportion , it helps to remember the key facts about the sampling distribution of :
Conditions for using the normal model
- To use the normal approximation methods, we need:
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 of the sampling distribution of sample proportions is equal to , the population proportion.
Spread
The standard deviation of the sampling distribution is approximately:
Once those conditions are satisfied, we can use the sampling distribution to build an interval around our sample estimate.
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 students from the University of Michigan is surveyed. Suppose that of them have at least some student loans.
Part a.
Determine a confidence interval for the true proportion of students from this university who have student loans.
From the problem:
- Sample size:
- Sample proportion:
- Confidence level:
Check the large-counts condition:
Both are at least , so using the normal model is reasonable.
For a confidence interval, the two-tailed critical z-value is .
Now compute the standard error and margin of error:
Construct the interval:
Solution:
Lower bound:
Upper bound:
So, we can be confident that the true proportion of University of Michigan students with student loans is between and .
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 of all students at the University of Michigan have student loans?
Solution:
No. The entire confidence interval is well below . Since even the upper bound is far less than , the interval does not support the claim that at least 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 confidence interval next. Would you expect this interval to be larger or smaller than the one calculated in Part (a.)? Why?
Solution:
You’d expect the 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:
The values are:
Since
The margin of error is larger, which makes the confidence interval wider.