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

Running a one-sample or paired t-test

Compute the t statistic and p-value, interpret the p-value, decide, and write a conclusion for a one-sample or paired t-test.

In one minute

After you set up hypotheses and check conditions, a t-test follows a fixed path: compute the test statistic, find the p-value, compare it to the significance level, and write a conclusion in context. The same steps work for a single sample and for matched pairs, since pairs are just one sample of differences.

The skill that earns most credit is interpretation: saying what the p-value means and what the decision says about the population, in careful wording.

Key terms

Test statistic
A number measuring how many standard errors the sample result is from the null value: t=xˉ−μ0s/nt = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}}.
p-value
The probability, computed assuming H0H_0 is true, of getting a sample result at least as extreme as the one observed, in the direction of HaH_a.
Significance level α\alpha
The cutoff chosen in advance for deciding whether the p-value is small enough to reject H0H_0. Common values are 0.05 and 0.01.
Degrees of freedom
df=n−1df = n - 1 for a one-sample test, where n is the number of observations or the number of pairs.
Reject H0H_0
The decision when the p-value is at most α\alpha. It means the data give convincing evidence for HaH_a.
Fail to reject H0H_0
The decision when the p-value is greater than α\alpha. It means the data do not give convincing evidence for HaH_a; it does not show that H0H_0 is true.
Matched pairs test
A one-sample t-test on the differences, using xˉd\bar{x}_d and sds_d, with H0:μd=0H_0: \mu_d = 0.
Standard error
The estimated spread of xˉ\bar{x}, equal to s/ns/\sqrt{n}, used as the divisor in the t statistic.

Step 1: the test statistic

The statistic is t=xˉ−μ0s/nt = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}} with df=n−1df = n - 1. For paired data, use t=xˉd−0sd/nt = \dfrac{\bar{x}_d - 0}{s_d/\sqrt{n}}, where n is the number of pairs. The numerator is how far the sample mean is from the claimed value. The denominator is the standard error, so t counts standard errors from the null value.

Use t, not z. Because s estimates σ\sigma, the statistic follows a t-distribution, whose heavier tails matter most when n is small.

Step 2: the p-value and its meaning

The p-value is the area in the tail or tails of the t-distribution beyond the observed t. For Ha:μ>μ0H_a: \mu > \mu_0 use the upper tail, for Ha:μ<μ0H_a: \mu < \mu_0 the lower tail, and for Ha:μ≠μ0H_a: \mu \ne \mu_0 double the tail area. Find it with technology or bracket it with a t-table.

Interpret it in context, assuming H0H_0 is true: "If the true mean were 50 minutes, the probability of getting a sample mean at least this far from 50, by random sampling alone, is about 0.146" (from the worked example below). It is not the probability that H0H_0 is true, and it is not the probability that you made an error.

Step 3: decision and conclusion

Compare the p-value with α\alpha. If p-value ≤α\le \alpha, reject H0H_0 and say there is convincing evidence for HaH_a. If p-value >α> \alpha, fail to reject H0H_0 and say there is not convincing evidence for HaH_a.

A good conclusion links the decision to the p-value and α\alpha, names the parameter, and refers to the population in context. Never "accept H0H_0" and never "prove" anything. A large p-value means the sample result is consistent with H0H_0, but a small sample can hide a real difference.

Step-by-step summary
StepWhat to write
Procedure and parameterOne-sample (or paired) t-test for μ\mu (or μd\mu_d), with the parameter in context
Hypotheses and conditionsH0H_0 and HaH_a, then randomization, 10% and normality in context
Test statistic and dfFormula, substituted values, t value, df=n−1df = n - 1
p-valueValue from technology or table, in the direction of HaH_a
Decision and conclusionCompare to α\alpha, then state convincing or not convincing evidence for HaH_a in context

Worked example: a test that fails to reject

A ski shop (invented numbers) says assembling a standard snowboard takes 50 minutes on average. A manager suspects the true mean differs from 50. She times a random sample of 16 assemblies out of many hundreds; the times show no strong skew or outliers. The sample has xˉ=52.3\bar{x} = 52.3 minutes and s=6s = 6 minutes. Use α=0.05\alpha = 0.05.

Hypotheses: let μ\mu be the true mean assembly time, in minutes, of all standard snowboard assemblies at this shop. H0:μ=50H_0: \mu = 50 and Ha:μ≠50H_a: \mu \ne 50. Conditions: random sample, 16 is under 10% of all assemblies, and no strong skew or outliers in a small sample.

Test statistic: t=52.3−506/16=2.31.5=1.5333t = \dfrac{52.3 - 50}{6/\sqrt{16}} = \dfrac{2.3}{1.5} = 1.5333 with df=15df = 15.

p-value: the two-sided area beyond 1.5333 for df = 15 is about 0.146.

Conclusion: the p-value of 0.146 is greater than 0.05, so we fail to reject H0H_0. There is not convincing evidence that the true mean assembly time differs from 50 minutes. The data are consistent with 50 minutes, but this does not prove it. If the manager had instead used Ha:μ>50H_a: \mu > 50 chosen beforehand, the p-value would be about 0.073 and the decision at 0.05 would be the same.

How it connects

  • Back to 4.4: the hypotheses and the condition checks come first and must match the test you run here.
  • Back to 4.3: a two-sided test at level α\alpha agrees with a confidence interval at level 1−α1 - \alpha about whether μ0\mu_0 is plausible.
  • Forward to 4.10: the two-sample t-test uses the same decision rule and conclusion wording, with a different standard error.

Common mistakes

  • Using z for the test statistic. With s in place of σ\sigma the right model is t with n−1n - 1 degrees of freedom.
  • Misreading the p-value. It is computed assuming H0H_0 is true. It is not the probability that H0H_0 is true.
  • **Writing "accept H0H_0" or "prove."** Say fail to reject, and talk about evidence for HaH_a.
  • Using the wrong tail or forgetting to double. The direction of HaH_a determines the tail; a two-sided test doubles one tail.
  • **Using nn as the number of raw values for pairs.** Use the number of pairs and the differences.

How it shows up on the exam

  • Given summary statistics, carry out the full test: hypotheses, conditions, statistic, p-value, decision and conclusion in context.
  • Interpret a p-value from technology output in a sentence about the specific context.
  • Explain what a decision to reject or fail to reject says about the population, and what it does not say.

Check yourself

  1. How many standard errors from the null value is xˉ=52.3\bar{x} = 52.3 in the worked example, and how do you know?
  2. Write the correct sentence interpreting a p-value of 0.03 for a one-sided test in a context you invent.
  3. If p-value equals 0.07 and α=0.05\alpha = 0.05, what is your decision? What if α=0.10\alpha = 0.10?
  4. Why does a larger sample, with the same difference, usually give a smaller p-value?

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