Statistics & Probability · Grade 12 and undergraduate

t-Intervals and t-Tests for a Mean

Quick answer

Inference for a mean with the z formula needs the population standard deviation σ, which is almost never known. Replacing it with the sample standard deviation s adds uncertainty, and the statistic t = (x̄ − μ₀)/(s/√n) follows a t distribution with n − 1 degrees of freedom. The t curve looks like the normal curve with heavier tails, so critical values t* are larger than z*, most of all for small samples. Intervals are x̄ ± t* · s/√n, and paired data are analyzed as one sample of differences.

What you'll learn

  • Explain why t replaces z when σ is estimated by s
  • Find t* for a confidence level and degrees of freedom
  • Build and interpret a one-sample t interval
  • Carry out one-sample and paired t-tests

When σ is unknown

The z-test for a mean uses the standard error σn\tfrac{\sigma}{\sqrt{n}}, but the population standard deviation σ\sigma is almost never known. Using the sample standard deviation ss instead gives the t statistic:

t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}

It follows a t distribution with n−1n - 1 degrees of freedom. Confidence intervals become

xˉ±t∗⋅sn\bar{x} \pm t^* \cdot \frac{s}{\sqrt{n}}
dft∗t^* for 90%t∗t^* for 95%t∗t^* for 99%
91.8332.2623.250
151.7532.1312.947
241.7112.0642.797
351.6902.0302.724
∞ (z)1.6451.9602.576

Why the tails are heavier

ss is itself a random quantity. In some samples it comes out smaller than σ\sigma, which makes the denominator too small and tt too large. That extra wobble puts more probability far from 0 than the normal curve allows, so a result must be farther out to count as unusual. With more data, ss settles near σ\sigma and the t curve closes in on the normal: at 3535 degrees of freedom, t∗=2.030t^* = 2.030 is already close to 1.9601.960.

The t distribution with 3 df against the normal Two bell curves centered at 0. The standard normal curve is taller in the middle. The t curve with 3 degrees of freedom is lower at the peak and stays higher in both tails, beyond about 2 in either direction. −4−224ty
  • standard normal
  • t, 3 df
The t distribution with 3 df against the normal

Worked examples

Common mistakes

Practice problems

  1. Find t∗t^* for a 95%95\% interval with a sample of 1010.

    Answer

    2.2622.262

    Full solution

    df=10−1=9\text{df} = 10 - 1 = 9.

  2. A sample of 99 has xˉ=20\bar{x} = 20 and s=6s = 6. Find a 95%95\% confidence interval for μ\mu. (t∗=2.306t^* = 2.306 for 88 df.)

    Answer

    (15.39, 24.61)(15.39,\ 24.61)

    Full solution

    The standard error is 63=2\tfrac{6}{3} = 2, and 20±2.306×2=20±4.6120 \pm 2.306 \times 2 = 20 \pm 4.61.

  3. A sample of 3636 has xˉ=10.9\bar{x} = 10.9 and s=3s = 3. Test H0:μ=10H_0: \mu = 10 against Ha:μ≠10H_a: \mu \ne 10 at α=0.05\alpha = 0.05.

    Answer

    t=1.8t = 1.8, p-value ≈0.08\approx 0.08; fail to reject.

    Full solution

    The standard error is 36=0.5\tfrac{3}{6} = 0.5, so t=0.90.5=1.8t = \tfrac{0.9}{0.5} = 1.8 with 3535 df.

  4. Twelve body temperatures average 98.298.2°F with s=0.5s = 0.5. Test H0:μ=98.6H_0: \mu = 98.6 against Ha:μ≠98.6H_a: \mu \ne 98.6.

    Answer

    t≈−2.77t \approx -2.77, p-value ≈0.018\approx 0.018; reject at α=0.05\alpha = 0.05.

    Full solution

    The standard error is 0.512≈0.144\tfrac{0.5}{\sqrt{12}} \approx 0.144, and t=−0.40.144t = \tfrac{-0.4}{0.144} with 1111 df.

  5. Which is larger, t∗t^* for 95%95\% with 55 df or with 5050 df? Why?

    Answer

    With 55 df

    Full solution

    Fewer degrees of freedom means a less reliable ss and heavier tails, so the cutoff sits farther out.

  6. In Example 1, how would the interval change with a 99%99\% confidence level?

    Answer

    Wider: 52.3±2.947×1.252.3 \pm 2.947 \times 1.2, about (48.76, 55.84)(48.76,\ 55.84)

    Full solution

    Higher confidence needs a larger t∗t^*; with 1515 df it is 2.9472.947.

  7. Twins are randomly assigned, one to each of two diets. Which test compares the diets?

    Answer

    A paired t-test on the within-pair differences

    Full solution

    Each pair is matched, so the differences remove what the twins share.

  8. A student builds Example 1’s interval as 52.3±1.96×1.252.3 \pm 1.96 \times 1.2. What went wrong?

    Answer

    With ss in the standard error, t∗=2.131t^* = 2.131 must replace 1.961.96.

    Full solution

    The z value understates the uncertainty from estimating σ\sigma, giving an interval narrower than 95%95\% confidence allows.

Frequently asked questions

When do you use t instead of z?

For a mean whenever the population standard deviation σ is unknown and estimated by the sample standard deviation s, which is nearly always.

What are degrees of freedom?

For a one-sample t procedure, df = n − 1. Smaller df means heavier tails and larger critical values.

How is the t distribution different from the normal?

It is also symmetric and bell-shaped around 0, but with more area in the tails. As df grows it approaches the standard normal.

What is a paired t-test?

A test for data in matched pairs, such as before and after measurements on the same people. Take the difference in each pair and run a one-sample t-test on the differences.

What conditions does a t procedure need?

A random sample or randomized experiment, independent observations, and a population that is roughly normal or a sample large enough (about 30 or more) for the central limit theorem.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSS.IC.B.4Making Inferences and Justifying ConclusionsUse data from a sample survey to estimate a population mean or proportion; develop a margin of error through the use of simulation models for random sampling.