t-test practice problems (one-sample and paired)

By Jude Wallis · Published

This set has 8 problems on one-sample and paired t-tests. Each is a full four-step run: hypotheses and conditions, the standard error and t statistic, degrees of freedom, and a p-value range read from a t-table, then a conclusion in context. Solve each on paper before opening the steps.

AP Statistics: Unit 4 (topics 4.4 Setting Up a Test for a Population Mean or Population Mean Difference, 4.5 Carrying Out a Test for a Population Mean or Population Mean Difference). These problems cover the one-sample t-test for a population mean and the paired t-test for a population mean difference (Unit 4 topics 4.4 and 4.5) in the Fall 2026 AP Statistics course. Unit 4 is 10 to 20% of the multiple-choice section, and the exam supplies the t-table you use to bound each p-value.

What these problems build

These 8 problems build the full workflow of a t-test for a mean: writing the null and alternative hypotheses, checking the random, 10%, and Normal/large-sample conditions, computing the standard error and the standardized test statistic tt, finding the degrees of freedom, bounding the p-value from a t-table, and stating a conclusion in context. The first problems use a one-sample t-test, which compares a single sample mean xˉ\bar{x} (read 'x-bar') against a claimed population mean μ0\mu_0 ('mu-naught'). The later problems use a paired t-test, which works on one column of differences from matched pairs and tests the true mean difference μd\mu_d against 0. Both use the same test statistic t=statisticparameterSEt = \frac{\text{statistic} - \text{parameter}}{SE}, where the standard error is SE=snSE = \frac{s}{\sqrt{n}} with ss the sample standard deviation and nn the sample size.

Because the exam hands you a t-table rather than software, each solution bounds the p-value between two table columns instead of reporting one exact number, and technology would give the precise value. Work each problem with the four-step State, Plan, Do, Conclude structure and record the degrees of freedom df=n1df = n - 1 every time. To review when a mean calls for a t procedure instead of a z procedure, read t test vs z test; to bound a p-value by hand, use the t table; and to check your arithmetic, open the one-sample t test calculator. More sets are on the practice page.

Problem 1

A bottling machine is set to fill sports-drink bottles with a mean of 500 mL. A quality inspector takes a random sample of 16 bottles and finds xˉ=497\bar{x} = 497 mL with sample standard deviation s=8s = 8 mL. At α=0.05\alpha = 0.05, is there convincing evidence that the machine's true mean fill differs from 500 mL?

Show the worked solution
  1. State. Let μ\mu be the machine's true mean fill in milliliters. H0:μ=500H_0: \mu = 500 versus Ha:μ500H_a: \mu \ne 500, with α=0.05\alpha = 0.05.

  2. Plan. One-sample t-test for a mean. Random: the 16 bottles are a random sample. 10%: 16 is less than 10% of all bottles the machine fills. Normal/large sample: with n=16<30n = 16 < 30, assume the fill amounts are roughly normal with no strong skew or outliers.

  3. Find the standard error. SE=sn=816=84=2SE = \frac{s}{\sqrt{n}} = \frac{8}{\sqrt{16}} = \frac{8}{4} = 2 mL.

  4. Find the test statistic and degrees of freedom. t=xˉμ0SE=4975002=32=1.50t = \frac{\bar{x} - \mu_0}{SE} = \frac{497 - 500}{2} = \frac{-3}{2} = -1.50, with df=n1=15df = n - 1 = 15.

  5. Bound the p-value. This is two-sided, so use t=1.50|t| = 1.50. In the df=15df = 15 row, 1.501.50 falls between 1.3411.341 (tail 0.100.10) and 1.7531.753 (tail 0.050.05), so one tail holds between 0.050.05 and 0.100.10. Doubling, the two-sided p-value is between 0.100.10 and 0.200.20.

  6. Conclude. Since the p-value is greater than 0.100.10, which exceeds 0.050.05, fail to reject H0H_0. There is not convincing evidence that the machine's true mean fill differs from 500 mL.

t=1.50t = -1.50, df=15df = 15, two-sided p-value between 0.100.10 and 0.200.20. Fail to reject H0H_0 at α=0.05\alpha = 0.05; no convincing evidence the mean fill differs from 500 mL.

Problem 2

A meal-kit company advertises that its dinner recipes take a mean of 30 minutes to cook. A food writer suspects the true mean is longer, times a random sample of 25 recipes, and gets xˉ=33\bar{x} = 33 minutes with s=7.5s = 7.5 minutes. At α=0.05\alpha = 0.05, is there convincing evidence that the mean cook time exceeds 30 minutes?

Show the worked solution
  1. State. Let μ\mu be the true mean cook time in minutes. H0:μ=30H_0: \mu = 30 versus Ha:μ>30H_a: \mu > 30, with α=0.05\alpha = 0.05.

  2. Plan. One-sample t-test. Random: the 25 recipes are a random sample. 10%: 25 is less than 10% of all the company's recipes. Normal/large sample: with n=25<30n = 25 < 30, assume the cook times are roughly normal with no strong skew or outliers.

  3. Find the standard error. SE=sn=7.525=7.55=1.5SE = \frac{s}{\sqrt{n}} = \frac{7.5}{\sqrt{25}} = \frac{7.5}{5} = 1.5 minutes.

  4. Find the test statistic and degrees of freedom. t=33301.5=31.5=2.00t = \frac{33 - 30}{1.5} = \frac{3}{1.5} = 2.00, with df=251=24df = 25 - 1 = 24.

  5. Bound the p-value. Right-tailed. In the df=24df = 24 row, 2.002.00 falls between 1.7111.711 (tail 0.050.05) and 2.0642.064 (tail 0.0250.025), so the p-value is between 0.0250.025 and 0.050.05.

  6. Conclude. Since the p-value is less than 0.050.05, reject H0H_0. There is convincing evidence that the true mean cook time exceeds 30 minutes.

t=2.00t = 2.00, df=24df = 24, one-sided p-value between 0.0250.025 and 0.050.05. Reject H0H_0 at α=0.05\alpha = 0.05; convincing evidence the mean cook time exceeds 30 minutes.

Problem 3

A ceramics studio's kiln is supposed to reach a mean peak temperature of 1200°F on its high setting. An artist logs the peak temperature on a random sample of 9 firings and finds xˉ=1215\bar{x} = 1215°F with s=15s = 15°F. At α=0.05\alpha = 0.05, is there convincing evidence that the kiln's true mean peak temperature differs from 1200°F?

Show the worked solution
  1. State. Let μ\mu be the kiln's true mean peak temperature in degrees Fahrenheit. H0:μ=1200H_0: \mu = 1200 versus Ha:μ1200H_a: \mu \ne 1200, with α=0.05\alpha = 0.05.

  2. Plan. One-sample t-test. Random: the 9 firings are a random sample. 10%: 9 is less than 10% of all firings. Normal/large sample: with n=9<30n = 9 < 30, assume the peak temperatures are roughly normal with no strong skew or outliers.

  3. Find the standard error. SE=sn=159=153=5SE = \frac{s}{\sqrt{n}} = \frac{15}{\sqrt{9}} = \frac{15}{3} = 5 degrees.

  4. Find the test statistic and degrees of freedom. t=121512005=155=3.00t = \frac{1215 - 1200}{5} = \frac{15}{5} = 3.00, with df=91=8df = 9 - 1 = 8.

  5. Bound the p-value. Two-sided, so use t=3.00|t| = 3.00. In the df=8df = 8 row, 3.003.00 falls between 2.8962.896 (tail 0.010.01) and 3.3553.355 (tail 0.0050.005), so one tail holds between 0.0050.005 and 0.010.01. Doubling, the two-sided p-value is between 0.010.01 and 0.020.02.

  6. Conclude. Since the p-value is less than 0.020.02, which is below 0.050.05, reject H0H_0. There is convincing evidence that the kiln's true mean peak temperature differs from 1200°F.

t=3.00t = 3.00, df=8df = 8, two-sided p-value between 0.010.01 and 0.020.02. Reject H0H_0 at α=0.05\alpha = 0.05; convincing evidence the mean peak temperature differs from 1200°F.

Problem 4

A physical therapist records the increase in grip strength (after minus before), in kilograms, for a random sample of 7 patients who complete a 4-week resistance program: 1, 3, 0, 2, 4, 1, 3. At α=0.05\alpha = 0.05, is there convincing evidence that the program increases mean grip strength?

Show the worked solution
  1. State. Let μd\mu_d be the true mean increase in grip strength (after minus before). H0:μd=0H_0: \mu_d = 0 versus Ha:μd>0H_a: \mu_d > 0, with α=0.05\alpha = 0.05.

  2. Plan. Paired t-test on the 7 differences. Random: the 7 patients are a random sample. 10%: 7 is less than 10% of all such patients. Normal/large sample: with n=7<30n = 7 < 30, assume the differences are roughly normal with no strong skew or outliers.

  3. Find the mean difference. dˉ=1+3+0+2+4+1+37=147=2\bar{d} = \frac{1 + 3 + 0 + 2 + 4 + 1 + 3}{7} = \frac{14}{7} = 2 kg.

  4. Find the standard deviation of the differences. The squared deviations from 2 are 1,1,4,0,4,1,11, 1, 4, 0, 4, 1, 1, summing to 1212, so sd=1271=126=2=1.414s_d = \sqrt{\frac{12}{7 - 1}} = \sqrt{\frac{12}{6}} = \sqrt{2} = 1.414 kg.

  5. Find the standard error, test statistic, and df. SE=sdn=1.4147=1.4142.646=0.535SE = \frac{s_d}{\sqrt{n}} = \frac{1.414}{\sqrt{7}} = \frac{1.414}{2.646} = 0.535, so t=dˉSE=20.535=3.74t = \frac{\bar{d}}{SE} = \frac{2}{0.535} = 3.74 with df=71=6df = 7 - 1 = 6.

  6. Bound the p-value. Right-tailed. In the df=6df = 6 row, 3.743.74 falls between 3.7073.707 (tail 0.0050.005) and 4.3174.317 (tail 0.00250.0025), so the p-value is between 0.00250.0025 and 0.0050.005.

  7. Conclude. Since the p-value is less than 0.0050.005, which is below 0.050.05, reject H0H_0. There is convincing evidence that the program increases mean grip strength.

dˉ=2\bar{d} = 2, sd=1.414s_d = 1.414, t3.74t \approx 3.74, df=6df = 6, one-sided p-value between 0.00250.0025 and 0.0050.005. Reject H0H_0; convincing evidence the program increases mean grip strength.

Problem 5

A researcher measures systolic blood pressure on the same 6 volunteers with two monitor brands and records the difference (Brand A minus Brand B), in mmHg: 2, -1, 3, -2, 4, 0. At α=0.05\alpha = 0.05, is there convincing evidence that the two brands give different mean readings?

Show the worked solution
  1. State. Let μd\mu_d be the true mean difference in readings (Brand A minus Brand B). H0:μd=0H_0: \mu_d = 0 versus Ha:μd0H_a: \mu_d \ne 0, with α=0.05\alpha = 0.05.

  2. Plan. Paired t-test on the 6 differences, one per volunteer measured on both monitors. Random: the problem does not state the 6 volunteers were randomly selected, so treat them as a volunteer (convenience) sample; the conclusion applies to these volunteers and does not generalize to a wider population. Normal/large sample: with n=6<30n = 6 < 30, assume the differences are roughly normal with no strong skew or outliers.

  3. Find the mean difference. dˉ=2+(1)+3+(2)+4+06=66=1\bar{d} = \frac{2 + (-1) + 3 + (-2) + 4 + 0}{6} = \frac{6}{6} = 1 mmHg.

  4. Find the standard deviation of the differences. The squared deviations from 1 are 1,4,4,9,9,11, 4, 4, 9, 9, 1, summing to 2828, so sd=2861=5.6=2.366s_d = \sqrt{\frac{28}{6 - 1}} = \sqrt{5.6} = 2.366 mmHg.

  5. Find the standard error, test statistic, and df. SE=sdn=2.3666=2.3662.449=0.966SE = \frac{s_d}{\sqrt{n}} = \frac{2.366}{\sqrt{6}} = \frac{2.366}{2.449} = 0.966, so t=dˉSE=10.966=1.04t = \frac{\bar{d}}{SE} = \frac{1}{0.966} = 1.04 with df=61=5df = 6 - 1 = 5.

  6. Bound the p-value. Two-sided, so use t=1.04|t| = 1.04. In the df=5df = 5 row, 1.041.04 falls between 0.9200.920 (tail 0.200.20) and 1.1561.156 (tail 0.150.15), so one tail holds between 0.150.15 and 0.200.20. Doubling, the two-sided p-value is between 0.300.30 and 0.400.40.

  7. Conclude. Since the p-value is greater than 0.300.30, which exceeds 0.050.05, fail to reject H0H_0. There is not convincing evidence that the two monitor brands give different mean readings.

dˉ=1\bar{d} = 1, sd2.366s_d \approx 2.366, t1.04t \approx 1.04, df=5df = 5, two-sided p-value between 0.300.30 and 0.400.40. Fail to reject H0H_0; no convincing evidence the two brands give different mean readings.

Problem 6

A snack company claims its single-serve almond packs contain a mean of 25 g. A consumer group suspects the packs are underfilled, weighs a random sample of 12 packs, and finds xˉ=24.2\bar{x} = 24.2 g with s=1.2s = 1.2 g. (a) State the hypotheses. (b) Check the conditions. (c) Find the test statistic, degrees of freedom, and p-value range. (d) At α=0.05\alpha = 0.05, state a conclusion in context.

Show the worked solution
  1. (a) Let μ\mu be the true mean weight of the packs in grams. Because the group suspects underfilling, H0:μ=25H_0: \mu = 25 versus Ha:μ<25H_a: \mu < 25, with α=0.05\alpha = 0.05.

  2. (b) One-sample t-test. Random: the 12 packs are a random sample. 10%: 12 is less than 10% of all packs produced. Normal/large sample: with n=12<30n = 12 < 30, assume the weights are roughly normal with no strong skew or outliers.

  3. (c) Standard error. SE=sn=1.212=1.23.464=0.346SE = \frac{s}{\sqrt{n}} = \frac{1.2}{\sqrt{12}} = \frac{1.2}{3.464} = 0.346 g.

  4. (c) Test statistic and degrees of freedom. t=xˉμ0SE=24.2250.346=0.80.346=2.31t = \frac{\bar{x} - \mu_0}{SE} = \frac{24.2 - 25}{0.346} = \frac{-0.8}{0.346} = -2.31, with df=121=11df = 12 - 1 = 11.

  5. (c) p-value. Left-tailed, so use t=2.31|t| = 2.31. In the df=11df = 11 row, 2.312.31 falls between 2.2012.201 (tail 0.0250.025) and 2.3282.328 (tail 0.020.02), so the p-value is between 0.020.02 and 0.0250.025.

  6. (d) Conclude. Since the p-value is less than 0.0250.025, which is below 0.050.05, reject H0H_0. There is convincing evidence that the packs' true mean weight is less than 25 g, supporting the underfilling claim.

(a) H0:μ=25H_0: \mu = 25, Ha:μ<25H_a: \mu < 25; (c) t2.31t \approx -2.31, df=11df = 11, one-sided p-value between 0.020.02 and 0.0250.025; (d) reject H0H_0, convincing evidence of underfilling below 25 g.

Problem 7

An agronomist pairs 8 plots by location, applies a soil additive to one plot in each pair at random, and records the yield difference (treated minus untreated), in kg: 2, 0, 3, -1, 1, 4, 1, 2. (a) State the hypotheses and check the conditions. (b) Find the test statistic, degrees of freedom, and p-value range. (c) State a conclusion at α=0.05\alpha = 0.05. (d) Would the conclusion change at α=0.01\alpha = 0.01?

Show the worked solution
  1. (a) Let μd\mu_d be the true mean yield difference (treated minus untreated). H0:μd=0H_0: \mu_d = 0 versus Ha:μd0H_a: \mu_d \ne 0, with α=0.05\alpha = 0.05. This is a matched-pairs design: plots are paired by location and the additive is randomly assigned within each pair, so inference rests on that random assignment. With n=8<30n = 8 < 30, assume the differences are roughly normal with no strong skew or outliers.

  2. (b) Mean difference. dˉ=2+0+3+(1)+1+4+1+28=128=1.5\bar{d} = \frac{2 + 0 + 3 + (-1) + 1 + 4 + 1 + 2}{8} = \frac{12}{8} = 1.5 kg.

  3. (b) Standard deviation of the differences. The squared deviations from 1.5 are 0.25,2.25,2.25,6.25,0.25,6.25,0.25,0.250.25, 2.25, 2.25, 6.25, 0.25, 6.25, 0.25, 0.25, summing to 1818, so sd=1881=2.571=1.604s_d = \sqrt{\frac{18}{8 - 1}} = \sqrt{2.571} = 1.604 kg.

  4. (b) Standard error, test statistic, and df. SE=sdn=1.6048=1.6042.828=0.567SE = \frac{s_d}{\sqrt{n}} = \frac{1.604}{\sqrt{8}} = \frac{1.604}{2.828} = 0.567, so t=dˉSE=1.50.567=2.65t = \frac{\bar{d}}{SE} = \frac{1.5}{0.567} = 2.65 with df=81=7df = 8 - 1 = 7.

  5. (b) p-value. Two-sided, so use t=2.65|t| = 2.65. In the df=7df = 7 row, 2.652.65 falls between 2.5172.517 (tail 0.020.02) and 2.9982.998 (tail 0.010.01), so one tail holds between 0.010.01 and 0.020.02. Doubling, the two-sided p-value is between 0.020.02 and 0.040.04.

  6. (c) Conclude at α=0.05\alpha = 0.05. Since the p-value is less than 0.040.04, which is below 0.050.05, reject H0H_0. There is convincing evidence that the additive changes mean yield.

  7. (d) At α=0.01\alpha = 0.01, the p-value is between 0.020.02 and 0.040.04, which is greater than 0.010.01, so you fail to reject H0H_0. The conclusion changes: at the stricter level there is not convincing evidence of a change in mean yield.

dˉ=1.5\bar{d} = 1.5, sd1.604s_d \approx 1.604, t2.65t \approx 2.65, df=7df = 7, two-sided p-value between 0.020.02 and 0.040.04. Reject H0H_0 at α=0.05\alpha = 0.05, but fail to reject at α=0.01\alpha = 0.01, so the conclusion changes.

Problem 8

In a sleep study, each of 15 randomly selected participants performs a reaction-time task after a normal night and after a night of restricted sleep. The difference (restricted minus normal), in milliseconds, has mean dˉ=12\bar{d} = 12 and standard deviation sd=20s_d = 20. (a) State the hypotheses and check the conditions. (b) Find the test statistic, degrees of freedom, and p-value range. (c) State a conclusion at α=0.05\alpha = 0.05. (d) Interpret the p-value in context and name the error the decision could be.

Show the worked solution
  1. (a) Let μd\mu_d be the true mean change in reaction time (restricted minus normal); because researchers expect restricted sleep to slow reactions, H0:μd=0H_0: \mu_d = 0 versus Ha:μd>0H_a: \mu_d > 0 at α=0.05\alpha = 0.05. Paired t-test on the 15 differences, each participant measured under both conditions. Random: the 15 participants are a random sample; 10%: 15 is less than 10% of all people the sample represents. Normal/large sample: with n=15<30n = 15 < 30, assume the differences are roughly normal with no strong skew or outliers.

  2. (b) Standard error. SE=sdn=2015=203.873=5.164SE = \frac{s_d}{\sqrt{n}} = \frac{20}{\sqrt{15}} = \frac{20}{3.873} = 5.164 ms.

  3. (b) Test statistic and degrees of freedom. t=dˉSE=125.164=2.32t = \frac{\bar{d}}{SE} = \frac{12}{5.164} = 2.32, with df=151=14df = 15 - 1 = 14.

  4. (b) p-value. Right-tailed. In the df=14df = 14 row, 2.322.32 falls between 2.2642.264 (tail 0.020.02) and 2.6242.624 (tail 0.010.01), so the p-value is between 0.010.01 and 0.020.02.

  5. (c) Conclude. Since the p-value is less than 0.020.02, which is below 0.050.05, reject H0H_0. There is convincing evidence that restricted sleep increases mean reaction time.

  6. (d) Interpret. If restricted sleep truly had no effect on mean reaction time, there would be between a 1% and 2% chance of getting a sample mean difference at least as large as 12 ms in the slower direction from random variation alone. Because you rejected H0H_0, the decision could be a Type I error: concluding restricted sleep slows reactions when in truth it makes no difference.

t2.32t \approx 2.32, df=14df = 14, one-sided p-value between 0.010.01 and 0.020.02. Reject H0H_0 at α=0.05\alpha = 0.05; convincing evidence restricted sleep raises mean reaction time. A wrong rejection here would be a Type I error.