How to construct a confidence interval for a mean
A confidence interval for a population mean provides a range of values that is likely to contain the true population mean. It applies when you have a simple random sample and either the population is normally distributed or the sample size is large enough () for the Central Limit Theorem to apply.
The setup
Identify the sample mean , the sample size , and the desired confidence level . Determine whether the population standard deviation is known. If is known, you will use the standard normal distribution (). If is unknown, use the sample standard deviation and the Student's t-distribution () with degrees of freedom .
The steps
- Find the critical value. For a known , find corresponding to the middle area of the standard normal distribution. For an unknown , find for the middle area with .
- Calculate the Standard Error (SE). or .
- Calculate the Margin of Error (ME). .
- Construct the interval. Subtract and add the ME to the sample mean: .
Checking the result
Verify that the sample mean is exactly in the center of the calculated interval. The distance from the lower bound to must equal the distance from to the upper bound. Increasing the confidence level or decreasing the sample size should result in a wider interval.
Common errors
A frequent error is using a -score instead of a -score when the population standard deviation is unknown. Always use the -distribution if you computed the standard deviation from the sample data. Another error is dividing by instead of when calculating the Standard Error.
Worked example
A random sample of 36 apples yields a sample mean weight of 150 grams and a sample standard deviation of 12 grams. Construct a 95% confidence interval for the true mean weight of the apples.
- Identify parameters: , , , .
- Since is unknown, use the t-distribution. .
- Find the critical value for 95% confidence and . Using a t-table, .
- Calculate the Standard Error: .
- Calculate the Margin of Error: .
- Construct the interval: .
The 95% confidence interval is grams.
FAQ
Run your own problem
References: OpenStax Introductory Statistics, Chapter 8: Confidence Intervals · Mathematical Statistics with Applications by Wackerly, Mendenhall, and Scheaffer
See also