Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

7.7 t-Interval for a Mean

7.7.1 Student’s T-Distribution

A t-distribution is another symmetric distribution for a continuous random variable.

Black-and-white portrait photograph of William Sealy Gosset, a man with round wire glasses and a mustache, wearing a three-piece tweed suit and tie.

Gosset

William Gosset was a statistician employed at Guinness and performed statistics to find the best yield of barley for their beer. Guinness prohibited its employees to publish papers so Gosset published under the name Student. Gosset’s distribution is called the Student’s t-distribution.

A t-distribution is another special type of distribution for a continuous random variable.

Properties of the t-distribution density curve:

  1. Symmetric, Unimodal (one mode) Bell-shaped.
  2. Centered at the mean μ = median = mode = 0.
  3. The spread of a t-distribution is determined by the degrees of freedom which are determined by the sample size.
  4. As the degrees of freedom increase, the t-distribution approaches the standard normal curve.
  5. The total area under the curve is equal to 1 or 100%.
Four overlaid t-distribution curves centered at zero for d.f. = 3, 5, 15, and 50, showing that smaller degrees of freedom give a lower peak and thicker tails, while larger degrees of freedom approach the standard normal shape.

Figure 7-7

Figure 7-7 shows examples of three different t-distributions with degrees of freedom of 1, 5 and 30. Note that as the degrees of freedom increase the distribution has a smaller standard deviation and will get closer in shape to the normal distribution.

7.7.2 T-Confidence Interval

Note that we rarely have a calculation for the population standard deviation so in most cases we would need to use the sample standard deviation as an estimate for the population standard deviation. If we have a normally distributed population with an unknown population standard deviation then the sampling distribution of the sample mean will follow a t-distribution.

Flowchart starting from the question Is σ known? The Yes branch says use the zα/2 values and σ in the formula; the No branch says use the tα/2 values and s in the formula. A footnote adds that if n < 30, the variable must be normally distributed.

Figure 7-10

A 100(1 - α)% Confidence Interval for a Population Mean μ: (σ unknown)

Choose a simple random sample of size n from a population having unknown mean μ.

The degrees of freedom are the number of values that are free to vary after a sample statistic has been computed. For example, if you know the mean was 50 for a sample size of 4, you could pick any 3 numbers you like, but the 4th value would have to be fixed to have the mean come out to be 50. For this class we just need to know that degrees of freedom will be based on the sample size.

The sample mean x¯ is the point estimate for μ, and the margin of error is tα/2(sn). Where tα/2 is the positive critical value on the t-distribution curve with df = n – 1 and area 1 – α between the critical values –tα/2 and +tα/2, as shown in Figure 7-11.

t-distribution curve with both tails shaded green and labeled: area in lower tail = α/2, middle area = 1 − α, and area in upper tail = α/2, with the tail boundaries marked −tα/2 and tα/2 on the axis.

Figure 7-11

Before we compute a t-interval we will practice getting t critical values using Excel and the TI calculator’s built in t-distribution.

Summary

A t-confidence interval is used to estimate an unknown value of the population mean for a single sample. We need to make sure that the population is normally distributed or the sample size is 30 or larger. Once this is verified we use the interval x¯tα/2,n1(sn)<μ<x¯+tα/2,n1(sn) to estimate the true population mean. Most of the time we will be using the t-interval, not the z-interval, when estimating a mean since we rarely know the population standard deviation. It is important to interpret the confidence interval correctly. A general interpretation where you would change what is in the parentheses to fit the context of the problem is: “One can be 100(1 – α)% confident that between (lower boundary) and (upper boundary) contains the population mean of (random variable in words using context and units from problem).”

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.