Confidence Interval for the Mean
The confidence interval for the mean of a population with a confidence level (1 − α) is:
![]()
x is the mean of a sample of size n.
σ is the standard deviation of the population.
The maximum error is:
![]()
The larger the sample size, n, the lower the error.
The sample size is:

Example
The time it takes for a supermarket cashier to serve customers follows a normal distribution with an unknown mean and a standard deviation of 0.5 minutes. From a random sample of 25 customers, the average time is 5.2 minutes.
1.Calculate the confidence interval at 95% for the average time it takes to serve customers.
For a confidence level of 95%, the critical value is zα/2 = 1.96.
2.Indicate the sample size needed to estimate the average time with an error of ± 0.5 minutes and a confidence level of 95%.
![]()
n ≥ 4