7.3: Confidence Interval for a Mean
( \newcommand{\kernel}{\mathrm{null}\,}\)
You have determined to turn your dusty backyard into a flower paradise. Before you start any work, you want to know if this idea is worth it. You visit the local park and have noticed that certain flowers do not last for very long after blooming. Seeking scientific proof to make your decision, you have collected data on the number of days you notice the flowers are in full bloom. What should you do with this data?
You can quickly calculate the mean number of days of full bloom. But you have decided that this single number does not determine the range of possible days that a full bloom occurs. To do so, you will need to build a confidence interval for mean.
The following is the confidence interval for a population mean:
ˉx−tα/2⋅s√n<μ<ˉx+tα/2⋅s√n
where the lower bound = ˉx−tα/2⋅s√n and the upper bound = ˉx+tα/2⋅s√n, and a margin of error = ˉx+tα/2⋅s√n.
Requirement: X is normally distributed or n≥30
Notice, the new notation of tα/2. This critical value refers to the Student's t-distribution which is described in more detail below.
Student’s t-distribution with n−1 degrees of freedom. Student’s t-distribution is very much like the standard normal distribution in that it is centered at 0 and has the same qualitative bell shape, but it has heavier tails than the standard normal distribution does, as indicated by Figure 7.3.1 , in which the curve (in brown) that meets the dashed vertical line at the lowest point is the t-distribution with two degrees of freedom, the next curve (in blue) is the t-distribution with five degrees of freedom, and the thin curve (in red) is the standard normal distribution. As also indicated by the figure, as the sample size n increases, Student’s t-distribution ever more closely resembles the standard normal distribution. Although there is a different t-distribution for every value of n, once the sample size is 30 or more it is typically acceptable to use the standard normal distribution instead, as we will always do in this text.

Student's t-distribution table relies on the degree of freedom ( df=n−1 ) and the area in the right tail. In the table, the first column gives to the degree of freedom. The first row indicates the subscript value for the Student's t critical values. This subscript represents the area in the right tail.
Use Figure 7.3.1 below to find the number tα/2 needed in construction of a confidence interval:
- when the level of confidence is 90% with n=15
- when the level of confidence is 99% with n=23
Figure 7.3.1 : Critical Values of t
Solution:
- Figure 7.3.1 gives the critical values which is the cut-off value for which area in the right tail. The area in the right tail is defined by α/2. We will start with finding α, which is 1− confidence level =1−0.90=0.10. Now to get α/2, we divide 0.10 by 2. So, α/2=0.05, which is the column we In other words, we need to find t0.05. The subscript 0.05 is the column which we will look under. And, we will look at the degree of freedom=n−1 row. In this example our degree of freedom is 14 (because 15−1). Thus, t0.05=1.761.
- In Figure 7.3.1 t0.005 is the number in the 22nd row and in the column headed 0.005, namely 2.819.
A sample of size 15 drawn from a normally distributed population has sample mean 35 and sample standard deviation 14. Construct a 95% confidence interval for the population mean, and interpret its meaning.
Solution:
Since the population is normally distributed, the sample is small, and the population standard deviation is unknown, the formula that applies is Equation ???.
Confidence level 95% means that
α=1−0.95=0.05
so α/2=0.025. Since the sample size is n=15, there are n−1=14 degrees of freedom. By Figure 7.1.6 t0.025=2.145. Thus
¯x=±tα/2(s√n)=35±2.145(14√15)=35±7.8
One may be 95% confident that the true value of μ is contained in the interval
(35−7.8,35+7.8)=(27.2,42.8).
A random sample of 12 students from a large university yields mean GPA 2.71 with sample standard deviation 0.51. Construct a 90% confidence interval for the mean GPA of all students at the university. Assume that the numerical population of GPAs from which the sample is taken has a normal distribution.
Solution:
Since the population is normally distributed, the sample is small, and the population standard deviation is unknown, the formula that applies is Equation ???
Confidence level 90% means that
α=1−0.90=0.10
so α/2=0.05. Since the sample size is n=12, there are n−1=11 degrees of freedom. By Figure 7.1.6 t0.05=1.796. Thus
¯x=±tα/2(s√n)=2.71±1.796(0.51√12)=2.71±0.26