Skip to main content
United StatesStatisticsSyllabus dot point

How do you compute the t test statistic and P-value and conclude a test about a population mean?

Topic 7.5 Carrying Out a Test for a Population Mean: compute the t test statistic with n minus 1 degrees of freedom, find the P-value, compare to the significance level, and state a conclusion in context.

A focused answer to AP Statistics Topic 7.5, on computing the one-sample t statistic with n minus 1 degrees of freedom, finding the P-value, comparing to alpha, and stating a conclusion in context, with a full worked t-test.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The t test statistic
  3. From t to the P-value and decision
  4. Test and interval agree
  5. Try this

What this topic is asking

The College Board (Topic 7.5) wants you to carry out and conclude a one-sample mean test: compute the tt statistic with n1n - 1 degrees of freedom, find the P-value from the tt-distribution, compare to α\alpha, and state a conclusion in context, completing the test set up in Topic 7.4.

The t test statistic

The numerator is the gap between the observed mean and the claimed mean; the denominator is the standard error s/ns/\sqrt{n}, which uses the sample standard deviation ss because σ\sigma is unknown. That substitution is why the statistic follows a tt-distribution with n1n - 1 degrees of freedom, not the normal. Using the right dfdf is essential, because it sets how heavy the tails are and hence the P-value.

From t to the P-value and decision

Match the tail to HaH_a and double for a two-sided test. The P-value is the area beyond tt in the appropriate tail of the tdft_{df} curve, read from a calculator or table. The conclusion sentence states the decision, ties it to the PP-versus-α\alpha comparison, and translates it into context ("there is convincing evidence that the mean ... is less than ..."). Never write "accept H0H_0"; the choices are "reject" or "fail to reject."

Test and interval agree

A two-sided t-test at level α\alpha and a C=1αC = 1 - \alpha t-interval reach the same verdict: H0:μ=μ0H_0: \mu = \mu_0 is rejected exactly when μ0\mu_0 falls outside the interval. Because both procedures use the same standard error s/ns/\sqrt{n} (unlike the proportion case, where the test and interval used different standard deviations), this agreement is exact. So a confidence interval doubles as a two-sided test, a frequently examined connection and a useful self-check.

Try this

Q1. For xˉ=52\bar{x} = 52, μ0=50\mu_0 = 50, s=8s = 8, n=16n = 16, find tt and the degrees of freedom. [2 points]

  • Cue. t=52508/16=22=1.00t = \dfrac{52 - 50}{8/\sqrt{16}} = \dfrac{2}{2} = 1.00; df=15df = 15.

Q2. A one-sided lower test gives t=1.80t = -1.80 with df=20df = 20. Roughly, is the P-value above or below 0.050.05? [1 point]

  • Cue. P(t20<1.80)P(t_{20} < -1.80) is about 0.0430.043, just below 0.050.05, so it would reject at α=0.05\alpha = 0.05.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2018 (style)1 marksSection I (multiple choice). A test of H0:μ=100H_0: \mu = 100 uses n=25n = 25, xˉ=104\bar{x} = 104, s=10s = 10. The t statistic is (A) 0.400.40 (B) 2.002.00 (C) 4.004.00 (D) 0.040.04
Show worked answer →

The correct answer is (B).

t=xˉμ0s/n=10410010/25=410/5=42=2.00t = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}} = \dfrac{104 - 100}{10/\sqrt{25}} = \dfrac{4}{10/5} = \dfrac{4}{2} = 2.00, with df=24df = 24.

(A) divides by ss instead of the standard error. (C) forgets to divide by the standard error term properly. (D) misplaces a factor. The statistic is 2.002.00.

AP 2022 (style)4 marksSection II (free response). A bakery claims its loaves have a mean mass of 800800 grams. A random sample of n=16n = 16 loaves has xˉ=788\bar{x} = 788 grams and s=20s = 20 grams; a dotplot is roughly symmetric. Test at α=0.05\alpha = 0.05 whether the true mean mass is less than 800800 grams. State hypotheses, check conditions, compute the t statistic and P-value (use df=15df = 15), and conclude in context (justify in context).
Show worked answer →

A 4-point complete one-sample t-test.

(1) (1 point) Let μ\mu be the true mean mass. H0:μ=800H_0: \mu = 800 versus Ha:μ<800H_a: \mu < 800.
(2) (1 point) Random sample stated; n=16<30n = 16 < 30 but the dotplot is roughly symmetric with no outliers; 10%10\% condition reasonable. One-sample t-test appropriate.
(3) (1 point) t=78880020/16=1220/4=125=2.40t = \dfrac{788 - 800}{20/\sqrt{16}} = \dfrac{-12}{20/4} = \dfrac{-12}{5} = -2.40, df=15df = 15. P-value =P(t15<2.40)0.015= P(t_{15} < -2.40) \approx 0.015.
(4) (1 point) Since P-value 0.015<0.05\approx 0.015 < 0.05, reject H0H_0. There is convincing evidence that the true mean mass of the loaves is less than 800800 grams.

Markers reward the t statistic with df=15df = 15, the lower-tail P-value, and a contextual reject conclusion.

Related dot points

Sources & how we know this