Two-sample t test practice problems and intervals

By Jude Wallis · Published

This set has 8 problems on two-sample t procedures for a difference of means. Each is a full run: hypotheses and conditions on both samples, the standard error, the t statistic with conservative or technology degrees of freedom, then a conclusion in context. Solve each before opening the steps.

AP Statistics: Unit 4 (topics 4.9 Setting Up a Test for the Difference Between Two Population Means, 4.10 Carrying Out a Test for the Difference Between Two Population Means). These problems cover the two-sample t-test for a difference of population means (Unit 4 topics 4.9 and 4.10) in the Fall 2026 AP Statistics course, together with the two-sample t-interval from topics 4.7 and 4.8 that several parts build on.

What these problems build

These 8 problems build the full workflow of a two-sample t procedure: writing hypotheses about μ1μ2\mu_1 - \mu_2, checking conditions on both samples, computing the standard error of the difference, choosing degrees of freedom, bounding a p-value or building an interval, and stating a conclusion in context.

A two-sample procedure uses two independent samples, one from each group, each with its own size nn, sample mean xˉ\bar{x} (read 'x-bar'), and sample standard deviation ss. The standard error of the difference adds the two variances, never the two standard deviations:

SE=s12n1+s22n2SE = \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}

The test statistic and the interval both hang off that one quantity, with tt^* ('t-star') the critical value from the t-table:

t=(xˉ1xˉ2)0SE,(xˉ1xˉ2)±tSEt = \frac{(\bar{x}_1 - \bar{x}_2) - 0}{SE}, \qquad (\bar{x}_1 - \bar{x}_2) \pm t^* \cdot SE

Reading a t-table by hand gives a bracket rather than a single number, so each solution below bounds the p-value between two of its tail-probability columns; a calculator reports the exact value instead. Either is accepted, as long as you say which one you used. Work each problem with the four-step State, Plan, Do, Conclude structure and record which degrees of freedom you used every time. To check your arithmetic afterward, open the two-sample t test calculator, and to read critical values by hand use the t table. More sets are on the practice page.

Conservative df versus technology df

A two-sample t statistic does not follow an exact t distribution, so its degrees of freedom are approximated. Two approximations are accepted, and you must say which one you used.

Conservative (by hand)Technology (calculator)
dfdfmin(n1,n2)1\min(n_1, n_2) - 1Welch value, usually a decimal
Effect on p-valuelargersmaller
Effect on intervalwidernarrower

The technology value comes from the Welch formula, which you are never asked to evaluate by hand:

df=(s12n1+s22n2)21n11(s12n1)2+1n21(s22n2)2df = \frac{\left(\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}\right)^2}{\frac{1}{n_1 - 1}\left(\frac{s_1^2}{n_1}\right)^2 + \frac{1}{n_2 - 1}\left(\frac{s_2^2}{n_2}\right)^2}

It always lands between min(n1,n2)1\min(n_1, n_2) - 1 and n1+n22n_1 + n_2 - 2, so the conservative choice never overstates the evidence. Problem 7 is built so the two choices give opposite decisions at α=0.05\alpha = 0.05, which is exactly why reporting the df matters. For why your calculator prints something like 17.84, read why df is a decimal in a two-sample t test.

Conditions, checked twice

Every condition gets checked once per sample, not once per problem. A response that checks Normality for group 1 and stops loses the point.

  • Random. Each group must come from a random sample, or the two groups must come from random assignment in an experiment. Random assignment supports a cause-and-effect claim; random sampling supports generalizing to the population.
  • 10%. Only when sampling without replacement from a population: check n1<0.10N1n_1 < 0.10 N_1 and n2<0.10N2n_2 < 0.10 N_2 separately. Randomized experiments do not need it, because the groups are not samples from a larger population.
  • Normal or large sample. For each group, either n30n \ge 30, or the population is stated to be roughly normal, or a graph of that group shows no strong skew and no outliers.
  • Independent groups. The two samples must be independent of each other. If each value in one group is linked to a specific value in the other, the data are matched pairs and this whole procedure is wrong; see paired vs two-sample t test and the t-test practice set for the paired workflow.

Unequal sample sizes are instant proof that a design is not paired. The AP course uses the unpooled two-sample t procedure throughout, so equal population standard deviations are never assumed; see pooled or not.

Frequently asked questions

Which degrees of freedom should I use on the AP exam?

Either is accepted. By hand, use the conservative df=min(n1,n2)1df = \min(n_1, n_2) - 1; with a calculator, use the Welch value it reports, decimals and all. What you cannot do is compute one and decide with the other. Report the df you used, and make the conclusion follow the p-value that df produced. The conservative choice gives a larger p-value and a wider interval, so it never overstates the evidence.

How do I tell a two-sample t test from a paired t test?

Look at how the data were collected, not at the numbers. If each observation in one group is linked to a specific observation in the other, by the same subject, the same twin, or the same plot, the design is paired and you work with one column of differences. If the groups are separate sets of individuals with no such link, it is a two-sample procedure. Unequal sample sizes rule out pairing immediately.

Do the two populations need equal standard deviations?

No. The AP course uses the unpooled two-sample t procedure, which adds s12n1\frac{s_1^2}{n_1} and s22n2\frac{s_2^2}{n_2} and never assumes the two population standard deviations match. On a TI-84 that means answering No to the Pooled prompt. Choosing Pooled changes the df to n1+n22n_1 + n_2 - 2 and can produce a different p-value from the one the rubric expects.

Why does my p-value land in a range instead of on one number?

A t-table carries only a fixed set of tail-probability columns, so when you work by hand a t statistic almost always falls between two entries in its df row. Reading the two neighboring columns gives an upper and a lower bound, which is enough to compare against α\alpha. Technology reports the exact value. A bound that straddles α\alpha means the evidence is borderline and you should compute the exact p-value before deciding.

Problem 1

A lab tests two brands of AA battery in the same model of wireless mouse. A random sample of 12 Brand A batteries lasts a mean of 41.041.0 hours with s1=3.0s_1 = 3.0 hours, and an independent random sample of 12 Brand B batteries lasts a mean of 36.536.5 hours with s2=4.0s_2 = 4.0 hours. At α=0.05\alpha = 0.05, is there convincing evidence that the two brands differ in true mean lifetime? Use the conservative degrees of freedom.

Show the worked solution
  1. State. Let μ1\mu_1 be the true mean lifetime of Brand A batteries and μ2\mu_2 the true mean lifetime of Brand B batteries, in hours. H0:μ1μ2=0H_0: \mu_1 - \mu_2 = 0 versus Ha:μ1μ20H_a: \mu_1 - \mu_2 \ne 0, with α=0.05\alpha = 0.05.

  2. Plan. Two-sample t-test for a difference of means. Random: both are random samples, selected independently of each other. 10%: 12 is less than 10% of all batteries of each brand. Normal/large sample: n1=n2=12<30n_1 = n_2 = 12 < 30, so assume each brand's lifetimes are roughly normal with no strong skew or outliers.

  3. Find the standard error. s12n1=912=0.7500\frac{s_1^2}{n_1} = \frac{9}{12} = 0.7500 and s22n2=1612=1.3333\frac{s_2^2}{n_2} = \frac{16}{12} = 1.3333, so SE=0.7500+1.3333=2.0833=1.4434SE = \sqrt{0.7500 + 1.3333} = \sqrt{2.0833} = 1.4434 hours.

  4. Find the test statistic and degrees of freedom. t=(41.036.5)01.4434=4.51.4434=3.12t = \frac{(41.0 - 36.5) - 0}{1.4434} = \frac{4.5}{1.4434} = 3.12. Conservative df=min(12,12)1=11df = \min(12, 12) - 1 = 11.

  5. Bound the p-value. Two-sided, so use t=3.12|t| = 3.12. In the df=11df = 11 row, 3.123.12 falls between 3.1063.106 (tail 0.0050.005) and 3.4973.497 (tail 0.00250.0025), so one tail holds between 0.00250.0025 and 0.0050.005. Doubling, the two-sided p-value is between 0.0050.005 and 0.010.01.

  6. Conclude. Since the p-value is less than 0.010.01, which is below 0.050.05, reject H0H_0. There is convincing evidence that the true mean lifetimes of the two battery brands differ, with Brand A lasting longer in this sample.

SE=1.4434SE = 1.4434, t3.12t \approx 3.12, conservative df=11df = 11, two-sided p-value between 0.0050.005 and 0.010.01. Reject H0H_0 at α=0.05\alpha = 0.05; convincing evidence the two brands differ in true mean battery lifetime.

Problem 2

A researcher records daily screen time, in hours. A random sample of 15 students at School A gives xˉ1=3.4\bar{x}_1 = 3.4 and s1=1.1s_1 = 1.1; an independent random sample of 20 students at School B gives xˉ2=2.8\bar{x}_2 = 2.8 and s2=0.9s_2 = 0.9. Construct and interpret a 95% confidence interval for μ1μ2\mu_1 - \mu_2 using the conservative degrees of freedom, and say what it implies about the claim that the two schools have the same true mean screen time.

Show the worked solution
  1. State. Estimate μ1μ2\mu_1 - \mu_2, the difference in true mean daily screen time (School A minus School B), in hours, at 95% confidence.

  2. Plan. Two-sample t-interval for a difference of means. Random: two independent random samples, one at each school. 10%: 15 and 20 are each less than 10% of the students at their own school. Normal/large sample: both samples are under 30, so assume each school's screen times are roughly normal with no strong skew or outliers.

  3. Find the point estimate and standard error. xˉ1xˉ2=3.42.8=0.6\bar{x}_1 - \bar{x}_2 = 3.4 - 2.8 = 0.6 hours. s12n1=1.2115=0.08067\frac{s_1^2}{n_1} = \frac{1.21}{15} = 0.08067 and s22n2=0.8120=0.04050\frac{s_2^2}{n_2} = \frac{0.81}{20} = 0.04050, so SE=0.08067+0.04050=0.12117=0.3481SE = \sqrt{0.08067 + 0.04050} = \sqrt{0.12117} = 0.3481 hours.

  4. Find the critical value and margin of error. Conservative df=min(15,20)1=14df = \min(15, 20) - 1 = 14. A 95% interval is two-tailed, so read the df=14df = 14 row in the 0.0250.025 tail column: t=2.145t^* = 2.145. Then ME=2.145×0.3481=0.747ME = 2.145 \times 0.3481 = 0.747 hours.

  5. Build the interval. 0.6±0.7470.6 \pm 0.747 gives (0.147, 1.347)(-0.147,\ 1.347) hours.

  6. Interpret. We are 95% confident that the interval from 0.147-0.147 to 1.3471.347 hours captures the true difference in mean daily screen time between School A students and School B students.

  7. Conclude about the claim. Because 00 lies inside the interval, a true difference of zero is a plausible value, so the interval gives no convincing evidence against the claim that the two schools have the same true mean daily screen time.

xˉ1xˉ2=0.6\bar{x}_1 - \bar{x}_2 = 0.6, SE=0.3481SE = 0.3481, df=14df = 14, t=2.145t^* = 2.145, ME=0.747ME = 0.747. The 95% interval is (0.147, 1.347)(-0.147,\ 1.347) hours. It contains 0, so there is no convincing evidence of a difference in true mean screen time.

Problem 3

A district compares two review programs. A random sample of 20 students in the online program scores a mean of 78.478.4 on a common final with s1=8.2s_1 = 8.2; an independent random sample of 18 students in the in-person program scores a mean of 73.173.1 with s2=9.6s_2 = 9.6. At α=0.05\alpha = 0.05, is there convincing evidence that the online program has a higher true mean score? Bound the p-value with the conservative degrees of freedom, then compare with technology, which reports df=33.67df = 33.67 and p=0.039p = 0.039.

Show the worked solution
  1. State. Let μ1\mu_1 be the true mean final score for the online program and μ2\mu_2 the true mean for the in-person program. H0:μ1μ2=0H_0: \mu_1 - \mu_2 = 0 versus Ha:μ1μ2>0H_a: \mu_1 - \mu_2 > 0, with α=0.05\alpha = 0.05.

  2. Plan. Two-sample t-test for a difference of means. Random: two independent random samples, one from each program. 10%: 20 and 18 are each less than 10% of the students enrolled in their own program. Normal/large sample: both samples are under 30, so assume scores in each program are roughly normal with no strong skew or outliers.

  3. Find the standard error. s12n1=67.2420=3.3620\frac{s_1^2}{n_1} = \frac{67.24}{20} = 3.3620 and s22n2=92.1618=5.1200\frac{s_2^2}{n_2} = \frac{92.16}{18} = 5.1200, so SE=3.3620+5.1200=8.4820=2.9124SE = \sqrt{3.3620 + 5.1200} = \sqrt{8.4820} = 2.9124 points.

  4. Find the test statistic and conservative degrees of freedom. t=(78.473.1)02.9124=5.32.9124=1.82t = \frac{(78.4 - 73.1) - 0}{2.9124} = \frac{5.3}{2.9124} = 1.82. Conservative df=min(20,18)1=17df = \min(20, 18) - 1 = 17.

  5. Bound the p-value. Right-tailed. In the df=17df = 17 row, 1.821.82 falls between 1.7401.740 (tail 0.050.05) and 2.1102.110 (tail 0.0250.025), so the p-value is between 0.0250.025 and 0.050.05.

  6. Compare with technology. The Welch value df=33.67df = 33.67 gives p=0.039p = 0.039, which sits inside the same bracket the table produced. The exact conservative p-value is larger than that, because fewer degrees of freedom means heavier tails, and the conservative approach always returns the bigger p-value. Here both fall below 0.050.05, so the decision is the same either way.

  7. Conclude. Since the p-value is less than 0.050.05, reject H0H_0. There is convincing evidence that the true mean final score is higher for the online program. Because students were sampled from programs they had already joined rather than randomly assigned, this is observational: the higher mean cannot be attributed to the program itself.

SE=2.9124SE = 2.9124, t1.82t \approx 1.82, conservative df=17df = 17, one-sided p-value between 0.0250.025 and 0.050.05 (technology: df=33.67df = 33.67, p=0.039p = 0.039). Reject H0H_0 at α=0.05\alpha = 0.05; convincing evidence of a higher true mean score for the online program, but no causal claim from an observational study.

Problem 4

Wait times, in minutes, are recorded at two coffee shops. A random sample of 13 customers at Shop A gives xˉ1=4.2\bar{x}_1 = 4.2 and s1=1.5s_1 = 1.5; an independent random sample of 17 customers at Shop B gives xˉ2=3.1\bar{x}_2 = 3.1 and s2=1.1s_2 = 1.1. (a) Build a 90% confidence interval for μ1μ2\mu_1 - \mu_2 using the conservative degrees of freedom. (b) Technology reports df=21.21df = 21.21, for which t=1.720t^* = 1.720. Build that interval too. (c) Say which interval is wider and why, and what both imply about a difference of 0.

Show the worked solution
  1. State. Let μ1\mu_1 and μ2\mu_2 be the true mean wait times, in minutes, at Shop A and Shop B. Estimate μ1μ2\mu_1 - \mu_2 at 90% confidence.

  2. Plan. Two-sample t-interval for a difference of means. Random: two independent random samples of customers. 10%: 13 and 17 are each less than 10% of the customers each shop serves. Normal/large sample: both samples are under 30, so assume wait times at each shop are roughly normal with no strong skew or outliers.

  3. (a) Point estimate and standard error. xˉ1xˉ2=4.23.1=1.1\bar{x}_1 - \bar{x}_2 = 4.2 - 3.1 = 1.1 minutes. s12n1=2.2513=0.17308\frac{s_1^2}{n_1} = \frac{2.25}{13} = 0.17308 and s22n2=1.2117=0.07118\frac{s_2^2}{n_2} = \frac{1.21}{17} = 0.07118, so SE=0.17308+0.07118=0.24426=0.4942SE = \sqrt{0.17308 + 0.07118} = \sqrt{0.24426} = 0.4942 minutes.

  4. (a) Conservative interval. df=min(13,17)1=12df = \min(13, 17) - 1 = 12. A 90% interval leaves 0.050.05 in each tail, so the df=12df = 12 row and the 0.050.05 column give t=1.782t^* = 1.782. Then ME=1.782×0.4942=0.881ME = 1.782 \times 0.4942 = 0.881, and the interval is 1.1±0.881=(0.219, 1.981)1.1 \pm 0.881 = (0.219,\ 1.981) minutes.

  5. (b) Technology interval. With df=21.21df = 21.21 and t=1.720t^* = 1.720, ME=1.720×0.4942=0.850ME = 1.720 \times 0.4942 = 0.850, and the interval is 1.1±0.850=(0.250, 1.950)1.1 \pm 0.850 = (0.250,\ 1.950) minutes.

  6. (c) Compare the widths. The conservative interval is 2×0.881=1.7622 \times 0.881 = 1.762 minutes wide; the technology interval is 2×0.850=1.7002 \times 0.850 = 1.700 minutes wide. Both are centered at the same 1.11.1. The conservative one is wider because df=12df = 12 describes a t distribution with heavier tails than df=21.21df = 21.21, so its tt^* is larger.

  7. (c) Conclude. Both intervals lie entirely above 0, so 0 is not a plausible value for μ1μ2\mu_1 - \mu_2 at 90% confidence either way. We are 90% confident that Shop A's true mean wait is longer than Shop B's by between 0.2190.219 and 1.9811.981 minutes on the conservative interval.

SE=0.4942SE = 0.4942. (a) df=12df = 12, t=1.782t^* = 1.782, interval (0.219, 1.981)(0.219,\ 1.981) minutes. (b) df=21.21df = 21.21, t=1.720t^* = 1.720, interval (0.250, 1.950)(0.250,\ 1.950) minutes. (c) The conservative interval is wider (1.7621.762 vs 1.7001.700 minutes) because fewer df means a larger tt^*; both exclude 0, so both show Shop A's true mean wait is longer.

Problem 5

Twelve volunteers are randomly assigned, six to each of two study methods, and then tested on a 20-word list. Words recalled are:

  • Method A: 12, 15, 11, 14, 13, 13
  • Method B: 10, 13, 9, 11, 8, 9

At α=0.05\alpha = 0.05, is there convincing evidence of a difference in true mean recall? Use the conservative degrees of freedom.

Show the worked solution
  1. State. Let μ1\mu_1 be the true mean number of words recalled under Method A and μ2\mu_2 the true mean under Method B. H0:μ1μ2=0H_0: \mu_1 - \mu_2 = 0 versus Ha:μ1μ20H_a: \mu_1 - \mu_2 \ne 0, with α=0.05\alpha = 0.05.

  2. Plan. Two-sample t-test for a difference of means. Random: the 12 volunteers were randomly assigned to the two methods, which satisfies the random condition for an experiment. The 10% condition does not apply, because these groups are not samples drawn from a larger population. Normal/large sample: n1=n2=6<30n_1 = n_2 = 6 < 30, and because the raw data are given this condition has to be checked on the graphs rather than assumed. Ordered, Method A is 11,12,13,13,14,1511, 12, 13, 13, 14, 15 and Method B is 8,9,9,10,11,138, 9, 9, 10, 11, 13. A dotplot of each group is single-peaked with no strong skew, and the 1.5×IQR1.5 \times IQR rule flags no outliers in either group, so a t procedure is reasonable.

  3. Summarize Method A. xˉ1=12+15+11+14+13+136=786=13\bar{x}_1 = \frac{12 + 15 + 11 + 14 + 13 + 13}{6} = \frac{78}{6} = 13 words. The squared deviations from 13 are 1,4,4,1,0,01, 4, 4, 1, 0, 0, summing to 1010, so s1=1061=2=1.414s_1 = \sqrt{\frac{10}{6 - 1}} = \sqrt{2} = 1.414 words.

  4. Summarize Method B. xˉ2=10+13+9+11+8+96=606=10\bar{x}_2 = \frac{10 + 13 + 9 + 11 + 8 + 9}{6} = \frac{60}{6} = 10 words. The squared deviations from 10 are 0,9,1,1,4,10, 9, 1, 1, 4, 1, summing to 1616, so s2=1661=3.2=1.789s_2 = \sqrt{\frac{16}{6 - 1}} = \sqrt{3.2} = 1.789 words.

  5. Find the standard error, test statistic, and degrees of freedom. s12n1=26=0.3333\frac{s_1^2}{n_1} = \frac{2}{6} = 0.3333 and s22n2=3.26=0.5333\frac{s_2^2}{n_2} = \frac{3.2}{6} = 0.5333, so SE=0.8667=0.9309SE = \sqrt{0.8667} = 0.9309 words. Then t=13100.9309=30.9309=3.22t = \frac{13 - 10}{0.9309} = \frac{3}{0.9309} = 3.22, with conservative df=min(6,6)1=5df = \min(6, 6) - 1 = 5.

  6. Bound the p-value. Two-sided, so use t=3.22|t| = 3.22. In the df=5df = 5 row, 3.223.22 falls between 2.7572.757 (tail 0.020.02) and 3.3653.365 (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.

  7. Conclude. Since the p-value is less than 0.040.04, which is below 0.050.05, reject H0H_0. There is convincing evidence of a difference in true mean recall between the two study methods. Random assignment lets you attribute that difference to the method for these 12 volunteers, but because they are volunteers rather than a random sample, the result does not generalize to a wider population.

xˉ1=13\bar{x}_1 = 13, s1=1.414s_1 = 1.414, xˉ2=10\bar{x}_2 = 10, s2=1.789s_2 = 1.789, SE=0.9309SE = 0.9309, t3.22t \approx 3.22, conservative df=5df = 5, two-sided p-value between 0.020.02 and 0.040.04. Reject H0H_0; convincing evidence of a difference in true mean recall, with Method A higher here. Causal for these volunteers but not generalizable.

Problem 6

A typing tutor is tested by randomly assigning 24 volunteers to two versions of the software. After four weeks, the 13 who used the new version type a mean of 54.654.6 words per minute with s1=6.2s_1 = 6.2; the 11 who used the old version type a mean of 49.849.8 with s2=5.4s_2 = 5.4. (a) Explain why a two-sample t procedure fits here rather than a paired one. (b) Check the conditions. (c) At α=0.05\alpha = 0.05, test whether the new version gives a higher true mean typing speed, using the conservative degrees of freedom. (d) State a conclusion in context and say what the design does and does not let you claim.

Show the worked solution
  1. (a) The two groups contain different people, and no volunteer in one group is linked to a particular volunteer in the other, so the data are two independent samples rather than matched pairs. The unequal group sizes 13 and 11 settle it on their own: a paired procedure needs one difference per pair, which requires equal counts.

  2. (b) Conditions. Random: the 24 volunteers were randomly assigned to the two versions, which is the form the random condition takes in an experiment. Independence: random assignment makes the two groups independent of each other, and no 10% condition is needed because the groups are not samples drawn from a larger population. Normal/large sample: n1=13n_1 = 13 and n2=11n_2 = 11 are both under 30, so assume typing speeds under each version are roughly normal with no strong skew or outliers.

  3. (c) State. Let μ1\mu_1 be the true mean typing speed with the new version and μ2\mu_2 the true mean with the old version, in words per minute. H0:μ1μ2=0H_0: \mu_1 - \mu_2 = 0 versus Ha:μ1μ2>0H_a: \mu_1 - \mu_2 > 0, with α=0.05\alpha = 0.05.

  4. (c) Standard error. s12n1=38.4413=2.9569\frac{s_1^2}{n_1} = \frac{38.44}{13} = 2.9569 and s22n2=29.1611=2.6509\frac{s_2^2}{n_2} = \frac{29.16}{11} = 2.6509, so SE=2.9569+2.6509=5.6078=2.3681SE = \sqrt{2.9569 + 2.6509} = \sqrt{5.6078} = 2.3681 words per minute.

  5. (c) Test statistic and degrees of freedom. t=(54.649.8)02.3681=4.82.3681=2.03t = \frac{(54.6 - 49.8) - 0}{2.3681} = \frac{4.8}{2.3681} = 2.03, with conservative df=min(13,11)1=10df = \min(13, 11) - 1 = 10.

  6. (c) p-value. Right-tailed. In the df=10df = 10 row, 2.032.03 falls between 1.8121.812 (tail 0.050.05) and 2.2282.228 (tail 0.0250.025), so the p-value is between 0.0250.025 and 0.050.05.

  7. (d) Conclude. Since the p-value is less than 0.050.05, reject H0H_0. There is convincing evidence that the new version of the tutor produces a higher true mean typing speed than the old version. Because the version was randomly assigned, a cause-and-effect conclusion about the software is justified for these volunteers. Because they are volunteers rather than a random sample, the result does not generalize to all typists.

(a) Different people in each group and unequal sizes 13 and 11, so two independent samples. (b) Random assignment of the 24 volunteers satisfies the random condition and makes the two groups independent; no 10% condition is needed, because the groups are not samples drawn from a larger population; both n<30n < 30, so assume typing speeds under each version are roughly normal with no strong skew or outliers. (c) SE=2.3681SE = 2.3681, t2.03t \approx 2.03, conservative df=10df = 10, one-sided p-value between 0.0250.025 and 0.050.05. (d) Reject H0H_0; convincing evidence the new version raises true mean typing speed, causal for these volunteers but not generalizable.

Problem 7

A materials lab measures breaking strength, in kilonewtons, of steel cable from two suppliers. A random sample of 10 lengths from Supplier 1 gives xˉ1=81.5\bar{x}_1 = 81.5 and s1=5.0s_1 = 5.0; an independent random sample of 10 lengths from Supplier 2 gives xˉ2=76.4\bar{x}_2 = 76.4 and s2=5.5s_2 = 5.5. (a) Test at α=0.05\alpha = 0.05 whether the true mean breaking strengths differ, using the conservative degrees of freedom. (b) Technology reports df=17.84df = 17.84 and a two-sided p-value of 0.0440.044. State the decision that follows from it. (c) Explain why the two approaches disagree and what an AP response has to do about it.

Show the worked solution
  1. (a) State. Let μ1\mu_1 and μ2\mu_2 be the true mean breaking strengths, in kilonewtons, of cable from Supplier 1 and Supplier 2. H0:μ1μ2=0H_0: \mu_1 - \mu_2 = 0 versus Ha:μ1μ20H_a: \mu_1 - \mu_2 \ne 0, with α=0.05\alpha = 0.05.

  2. (a) Plan. Two-sample t-test for a difference of means. Random: two independent random samples, one from each supplier's shipment. 10%: 10 lengths is less than 10% of each supplier's production. Normal/large sample: both samples are under 30, so assume breaking strengths from each supplier are roughly normal with no strong skew or outliers.

  3. (a) Standard error and test statistic. s12n1=2510=2.500\frac{s_1^2}{n_1} = \frac{25}{10} = 2.500 and s22n2=30.2510=3.025\frac{s_2^2}{n_2} = \frac{30.25}{10} = 3.025, so SE=5.525=2.3505SE = \sqrt{5.525} = 2.3505 kN. Then t=81.576.42.3505=5.12.3505=2.17t = \frac{81.5 - 76.4}{2.3505} = \frac{5.1}{2.3505} = 2.17, with conservative df=min(10,10)1=9df = \min(10, 10) - 1 = 9.

  4. (a) Bound the p-value and decide. Two-sided, so use t=2.17|t| = 2.17. In the df=9df = 9 row, 2.172.17 falls between 1.8331.833 (tail 0.050.05) and 2.2622.262 (tail 0.0250.025), so one tail holds between 0.0250.025 and 0.050.05, and the two-sided p-value is between 0.050.05 and 0.100.10. Since that exceeds 0.050.05, fail to reject H0H_0: there is not convincing evidence that the two suppliers differ in true mean breaking strength.

  5. (b) Technology decision. With df=17.84df = 17.84 the two-sided p-value is 0.0440.044, which is less than 0.050.05, so reject H0H_0: there is convincing evidence that the true mean breaking strengths differ.

  6. (c) Why they disagree. The test statistic is identical; only the reference distribution changed. The conservative df=9df = 9 has heavier tails than df=17.84df = 17.84, so the same t=2.17t = 2.17 cuts off more area and the p-value grows from 0.0440.044 past 0.050.05. The conservative method is built to err this way, never claiming more evidence than the data support.

  7. (c) What a response must do. Either method is acceptable, but the response has to report the degrees of freedom it used and state the conclusion that actually follows from that p-value. Mixing a conservative bound with a technology decision earns no credit. With a result this close to α\alpha, the honest reading is that the evidence is borderline: the samples differ by 5.15.1 kN, and larger samples would settle the question.

SE=2.3505SE = 2.3505, t2.17t \approx 2.17. (a) Conservative df=9df = 9, two-sided p-value between 0.050.05 and 0.100.10, fail to reject H0H_0. (b) Technology df=17.84df = 17.84, p=0.044p = 0.044, reject H0H_0. (c) Fewer df means heavier tails and a larger p-value; either method is acceptable if you report the df you used and match the conclusion to it.

Problem 8

Two paint formulas are compared for drying time, in minutes. A random sample of 16 boards painted with Formula X dries in a mean of 112112 minutes with sX=14s_X = 14; an independent random sample of 21 boards painted with Formula Y dries in a mean of 126126 minutes with sY=18s_Y = 18. Use the conservative degrees of freedom throughout. (a) At α=0.01\alpha = 0.01, is there convincing evidence that Formula X has a shorter true mean drying time? (b) Construct a 95% confidence interval for μXμY\mu_X - \mu_Y. (c) Explain how that interval relates to a two-sided test at α=0.05\alpha = 0.05. (d) Name the error the decision in (a) could be, and describe it in context.

Show the worked solution
  1. (a) State. Let μX\mu_X and μY\mu_Y be the true mean drying times, in minutes, for Formula X and Formula Y. H0:μXμY=0H_0: \mu_X - \mu_Y = 0 versus Ha:μXμY<0H_a: \mu_X - \mu_Y < 0, with α=0.01\alpha = 0.01.

  2. (a) Plan. Two-sample t-test for a difference of means. Random: two independent random samples of boards. 10%: 16 and 21 are each less than 10% of all boards that could be painted with that formula. Normal/large sample: both samples are under 30, so assume drying times for each formula are roughly normal with no strong skew or outliers.

  3. (a) Standard error. sX2nX=19616=12.2500\frac{s_X^2}{n_X} = \frac{196}{16} = 12.2500 and sY2nY=32421=15.4286\frac{s_Y^2}{n_Y} = \frac{324}{21} = 15.4286, so SE=12.2500+15.4286=27.6786=5.2610SE = \sqrt{12.2500 + 15.4286} = \sqrt{27.6786} = 5.2610 minutes.

  4. (a) Test statistic and degrees of freedom. t=(112126)05.2610=145.2610=2.66t = \frac{(112 - 126) - 0}{5.2610} = \frac{-14}{5.2610} = -2.66, with conservative df=min(16,21)1=15df = \min(16, 21) - 1 = 15.

  5. (a) Bound the p-value and conclude. Left-tailed, so use t=2.66|t| = 2.66. In the df=15df = 15 row, 2.662.66 falls between 2.6022.602 (tail 0.010.01) and 2.9472.947 (tail 0.0050.005), so the p-value is between 0.0050.005 and 0.010.01. Since the p-value is less than 0.010.01, reject H0H_0. There is convincing evidence that Formula X has a shorter true mean drying time than Formula Y.

  6. (b) Interval. For 95% confidence with df=15df = 15, the 0.0250.025 column gives t=2.131t^* = 2.131, so ME=2.131×5.2610=11.21ME = 2.131 \times 5.2610 = 11.21 minutes. The interval is 14±11.21-14 \pm 11.21, that is (25.21, 2.79)(-25.21,\ -2.79) minutes.

  7. (c) Relation to a two-sided test. The whole interval lies below 0, so 0 is not a plausible value for μXμY\mu_X - \mu_Y at 95% confidence, and a two-sided test at α=0.05\alpha = 0.05 with df=15df = 15 would reject H0H_0. That agrees with part (a): a one-sided p-value between 0.0050.005 and 0.010.01 doubles to a two-sided p-value between 0.010.01 and 0.020.02, which is below 0.050.05.

  8. (d) Error. Because H0H_0 was rejected, the decision could be a Type I error: concluding that Formula X dries faster on average when in truth the two formulas have the same true mean drying time. The probability of that error is at most α=0.01\alpha = 0.01.

SE=5.2610SE = 5.2610, t2.66t \approx -2.66, conservative df=15df = 15. (a) One-sided p-value between 0.0050.005 and 0.010.01; reject H0H_0 at α=0.01\alpha = 0.01, convincing evidence Formula X dries faster on average. (b) 95% interval (25.21, 2.79)(-25.21,\ -2.79) minutes. (c) It excludes 0, matching a two-sided rejection at α=0.05\alpha = 0.05. (d) A Type I error, with probability at most 0.010.01.