AP Statistics · Topic 4.2 · Reading guide, about 5 min

t-intervals for one mean or paired differences

How to build a one-sample t-interval for a mean or for a mean difference from matched pairs, including conditions.

In one minute

Usually you do not know the population standard deviation σ\sigma, so you cannot use it in σ/n\sigma/\sqrt{n}. Instead you use the sample standard deviation s, and the price is extra uncertainty that the t-distribution accounts for. A t-interval estimates a population mean with a margin of error built from that distribution.

The same procedure covers matched pairs data. Compute the difference for each pair, and treat those differences as one sample.

Key terms

t-distribution
A symmetric, bell-shaped family of distributions centered at 0, with heavier tails than the standard normal. Used when s replaces σ\sigma.
Degrees of freedom
The number that picks which t-distribution to use. For one sample, df=n−1df = n - 1. More df means the curve looks more like the standard normal.
Standard error
The estimated standard deviation of xˉ\bar{x}, computed as s/ns/\sqrt{n}.
Critical value t∗t^*
The t-value that captures the middle C% of the t-distribution with the given df, such as 95%.
Margin of error
The amount added and subtracted from the estimate: t∗⋅s/nt^* \cdot s/\sqrt{n}.
Matched pairs
A design where each individual is measured twice, or each subject is paired with a similar subject, so values come in natural pairs.
Mean difference μd\mu_d
The population mean of the paired differences. Say clearly which value is subtracted from which.
Confidence interval
A range of plausible values for a parameter, built from sample data with a method that captures the parameter at a stated long-run rate.

Why t and not z

A z-interval would need the true σ\sigma. When s stands in for it, the standardized value (xˉ−μ)/(s/n)(\bar{x}-\mu)/(s/\sqrt{n}) varies more than a normal variable, because s itself changes from sample to sample. The t-distributions have heavier tails to reflect this. For a small df the tails are noticeably heavy, so t∗t^* is larger than the matching z value. For example, a 95% interval uses z∗=1.96z^* = 1.96 but t∗=2.306t^* = 2.306 at df = 8 and t∗=1.984t^* = 1.984 at df = 99. As df grows, t approaches the standard normal.

The degrees of freedom for one sample or one set of differences is n−1n - 1. Technology or a t-table gives t∗t^* for the confidence level and df.

Naming the procedure and the parameter

Start by naming the procedure: a one-sample t-interval for μ\mu, or a one-sample t-interval for μd\mu_d (matched pairs). Then define the parameter in words and context, for example "μ\mu = the true mean battery life, in hours, of all phones of this model."

For pairs, also state the order of subtraction, for example "μd\mu_d = the true mean of (score after minus score before) for all students who take the course." Everything that follows, including the sign of the interval, depends on that order.

Checking conditions

State each condition and check it with facts from the problem.

Randomization. The data come from a random sample, or from a randomized experiment (for pairs, such as random order of the two treatments).

10% condition. When sampling without replacement, the sample is less than 10% of the population. This is not needed for a randomized experiment.

Normality. The sampling distribution of xˉ\bar{x} should be approximately normal. This holds if the population is normal, or n≥30n \ge 30, or, for a small sample, the data show no strong skew or outliers (a dotplot, histogram or boxplot helps). For matched pairs, apply the normality check to the differences, not to the two original columns.

Procedure at a glance
PieceOne sampleMatched pairs
Parameterμ\muμd\mu_d, with order of subtraction
Data usedThe n valuesThe n differences, summarized by xˉd\bar{x}_d and sds_d
Standard errors/ns/\sqrt{n}sd/ns_d/\sqrt{n}
Intervalxˉ±t∗sn\bar{x} \pm t^* \dfrac{s}{\sqrt{n}}xˉd±t∗sdn\bar{x}_d \pm t^* \dfrac{s_d}{\sqrt{n}}
Degrees of freedomn−1n - 1n−1n - 1 (n pairs)

Worked example: matched pairs

A coach (invented data) randomly selects 9 runners from a large team and times each one in the 400 meter dash before and after a four week program. For each runner the difference is (time before minus time after), in seconds. The 9 differences have xˉd=2.4\bar{x}_d = 2.4 and sd=3.0s_d = 3.0, and a dotplot of them shows no strong skew or outliers. Find a 95% confidence interval.

Procedure and parameter: a one-sample t-interval for μd\mu_d, where μd\mu_d is the true mean of (time before minus time after), in seconds, for all runners on the team.

Conditions: the 9 runners were randomly selected, and 9 is less than 10% of a large team. The sample is small, but the dotplot of the differences shows no strong skew or outliers, so a normal model is reasonable.

Calculation: df=9−1=8df = 9 - 1 = 8 and t∗=2.306t^* = 2.306. The standard error is sd/n=3.0/9=1.0s_d/\sqrt{n} = 3.0/\sqrt{9} = 1.0. The margin of error is 2.306×1.0=2.3062.306 \times 1.0 = 2.306. The interval is 2.4±2.3062.4 \pm 2.306, which is (0.094,4.706)(0.094, 4.706) seconds.

Conclusion: we are 95% confident that the true mean improvement (before minus after) for all runners on the team is between about 0.09 and 4.71 seconds. Because the order is before minus after, positive values mean the runners got faster.

How it connects

  • Back to 4.1: σ/n\sigma/\sqrt{n} becomes the standard error s/ns/\sqrt{n}, and the normal shape of xˉ\bar{x} is checked with the same sample-size ideas.
  • Forward to 4.3: this guide builds the interval and the next one explains what it means.
  • Forward to 4.5: the same conditions and standard error appear in the one-sample and paired t-test.

Common mistakes

  • Treating paired data as two independent samples. If the same runner is timed twice, the two columns are dependent. Work with one sample of differences.
  • Checking normality of the original columns for pairs. The condition applies to the differences.
  • **Using nn instead of n−1n - 1 for df,** or reading t∗t^* for the wrong confidence level.
  • Forgetting the order of subtraction. An interval of (0.09, 4.71) means something opposite if the differences were computed after minus before.

How it shows up on the exam

  • A scenario with summary statistics (n, xˉ\bar{x}, s) asking you to name the procedure, check conditions in context and build the interval, often with a table or technology output.
  • A data description where you must decide whether the situation is paired or two independent samples, and explain from the design.
  • A graph of the data or differences used to justify the normality condition for a small sample.

Check yourself

  1. What changes between a z-interval and a t-interval, and why does it change?
  2. For a before-and-after study on the same people, what is the parameter and what two choices must you state?
  3. A sample of 12 has a strong outlier. What does that do to your conditions check?
  4. How would the interval change if the sample had n = 36 instead of 9 with the same xˉ\bar{x} and s?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.