Paired t test practice: 8 problems with solutions
By Jude Wallis · Published
This set has 8 problems on paired data. You decide whether a design is paired, collapse two columns into one column of differences, and run the one-sample t procedure on those differences. Problem 4 analyzes the same data both correctly and incorrectly so you can see the two answers.
AP Statistics: Unit 4 (topics 4.2 Constructing a Confidence Interval for a Population Mean or Population Mean Difference, 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). Paired data live inside the one-sample topics of Unit 4 in the Fall 2026 AP Statistics course, which is why 4.2, 4.4, and 4.5 all name the population mean difference alongside the population mean. Once the pairs are collapsed into one column of differences, the procedure is the ordinary one-sample t interval or t test with .
What these problems build
A paired design produces two measurements that belong together: the same person before and after, the same specimen tested by two instruments, or two subjects matched on a variable and then split between treatments. The right move is always the same. Collapse each pair into a single number,
throw away the two original columns, and run an ordinary one-sample procedure on the resulting list of differences. There is no separate paired formula to memorize:
Here is the number of pairs, not the number of measurements, (read 'd-bar') is the mean of the differences, and is their sample standard deviation. The parameter is , the true mean difference in the population, and the null hypothesis is almost always .
Problem 1 is pure procedure choice, problems 2 through 6 run full tests and intervals, problem 7 reads a software printout, and problem 8 handles an awkward outlier. To check arithmetic, use the one-sample t test calculator on your column of differences, and read critical values from the t-table. More sets are on the practice page.
Conditions live on the differences
This is the single most common paired-t error after choosing the wrong procedure entirely. Every condition applies to the column of differences, never to the two original columns.
- Random. Either the pairs are a random sample from the population of interest, or the two treatments were randomly assigned within each pair. The second version supports a cause-and-effect conclusion; the first supports generalizing.
- 10%. When the pairs are sampled without replacement, check that the number of pairs is under 10% of the population of pairs.
- Normal or large sample. Either pairs, or the differences are stated to come from a roughly normal population, or a graph of the differences shows no strong skew and no outliers.
The before column and the after column can each be wildly skewed while the differences are perfectly well behaved, which is why graphing the raw columns proves nothing. Problem 8 is the case that matters most in practice: a difference column that carries one clear outlier, which is invisible unless you graph the differences themselves.
One structural giveaway is worth memorizing. A paired design has one difference per pair, so the two columns must have the same length. Unequal sample sizes rule out pairing on sight; see paired vs two-sample t test and when to use a paired t test.
Frequently asked questions
Do I check the conditions on the differences or on the two original columns?
On the differences, every time. The before column and the after column can each be badly skewed while the differences are close to normal, because the pairing removes whatever the two measurements share. A response that graphs the raw columns and declares the condition met earns nothing. Graph the differences, or state that they are assumed roughly normal, and say so explicitly.
What is n in a paired t test, and what are the degrees of freedom?
is the number of pairs, not the number of measurements. Twelve people measured twice give 24 numbers but only 12 differences, so and . Writing or is the standard slip: a paired procedure has already collapsed the data to a single sample of differences, so it uses the same as any one-sample .
Does it matter which order I subtract in?
Not for the conclusion, as long as you are consistent and your alternative hypothesis points the same way. Flipping the order flips the signs of and and mirrors the confidence interval across zero, but , the standard error, , , and the p-value are all unchanged. What you must do is state which way you subtracted, since a reader cannot tell a positive difference from a negative one without it. Problem 5 works through both directions.
Why not just run a two-sample t test on the before and after columns?
Because the two columns are not independent, which is that procedure's core assumption. Worse, its standard error is built from how much subjects differ from each other, and that variation is usually far bigger than the variation in their individual changes. The result is an inflated standard error, a shrunken , and a real effect missed. Problem 4 runs both analyses on one data set and gets paired against unpaired.
Problem 1
For each design, say whether a paired procedure or a two-sample procedure is appropriate, and give the reason.
(a) Twenty runners each run a timed mile in two shoe models, with the order of the models randomized for each runner. (b) Eighteen tomato plants are randomly assigned, nine to fertilizer A and nine to fertilizer B, and yield is recorded. (c) Twelve pairs of identical twins are recruited; within each pair, one twin is randomly assigned to a tutoring program and the other is not. (d) A random sample of 40 seniors and an independent random sample of 35 juniors report weekly study hours.
Show the worked solution
Ask the same question of every design: is each observation in one group tied to one specific observation in the other? If yes, the data are paired and you work with differences. If no, the groups are independent and you work with two samples.
(a) Paired. Each runner supplies both times, so runner 7's two times belong together and their difference is meaningful. Randomizing the order controls for fatigue and learning; it does not make the two times independent.
(b) Two-sample. Nine plants got A and nine different plants got B. Equal group sizes are a coincidence here, not evidence of pairing, because no plant in group A is linked to a particular plant in group B.
(c) Paired. This is a matched-pairs design: the twins are matched on genetics and upbringing, and the treatment is randomly assigned within each pair. There are 12 differences, one per twin pair, so rather than 23.
(d) Two-sample. Different students, different grades, and unequal sizes 40 and 35. Unequal sizes alone settle it, since a paired procedure needs one difference per pair and therefore equal counts.
(a) Paired: each runner gives both times. (b) Two-sample: different plants in each group, so equal sizes do not create pairing. (c) Paired (matched pairs): 12 twin pairs, . (d) Two-sample: different individuals and unequal sizes 40 and 35.
Problem 2
Six office workers are randomly selected for a keyboard-shortcut workshop. Their data-entry speed, in records per hour, is measured before and after the workshop.
| Worker | Before | After |
|---|---|---|
| 1 | 42 | 47 |
| 2 | 55 | 58 |
| 3 | 38 | 46 |
| 4 | 47 | 49 |
| 5 | 51 | 57 |
| 6 | 45 | 45 |
At , is there convincing evidence that the workshop increases mean data-entry speed?
Show the worked solution
Build the differences. Using , the six differences are records per hour. From here the before and after columns are never used again.
State. Let be the true mean change in data-entry speed (after minus before) for workers who take this workshop. versus , with .
Plan. Paired test, which is a one-sample test on the differences. Random: the 6 workers were randomly selected. 10%: 6 pairs is less than 10% of all workers who could take the workshop. Normal/large sample: , so assume the differences come from a roughly normal population; the six values show no strong skew and no outlier.
Find the mean difference. records per hour.
Find the standard deviation of the differences. The squared deviations from 4 are , summing to , so .
Find the standard error and the test statistic. , so with .
Find the p-value. Right-tailed. In the row, falls between (tail ) and (tail ), so the p-value is between and . Technology gives .
Conclude. The p-value is below , so reject . There is convincing evidence that mean data-entry speed is higher after the workshop than before it. Because there is no control group, the increase cannot be separated from practice effects or from anything else that changed over the same period.
Differences (after minus before): . , , , , , one-sided p-value (table bracket to ). Reject ; convincing evidence of a higher mean speed, though the design cannot rule out practice effects.
Problem 3
A shoe company tests a new insole. Ten randomly selected runners each run on a force plate twice, once in their usual insole and once in the new one, with the order randomized. For the differences (usual minus new) in peak impact force, in newtons, the company reports N and N. Construct and interpret a 95% confidence interval for the true mean difference, and say what it implies about the new insole.
Show the worked solution
State. Let be the true mean difference in peak impact force (usual insole minus new insole), in newtons, for runners like these. Estimate with a 95% confidence interval.
Plan. Paired interval, which is a one-sample interval on the differences. Random: the 10 runners are a random sample, and the order of the two insoles was randomized within each runner. 10%: 10 pairs is under 10% of the runners the company could test. Normal/large sample: , so assume the differences are roughly normal with no strong skew or outliers.
Find the standard error. N.
Find the critical value and margin of error. , and the 95% column of the -table gives . Then N.
Build the interval. N.
Interpret. We are 95% confident that the interval from N to N captures the true mean reduction in peak impact force when runners switch from their usual insole to the new one.
Answer the implied question. The whole interval lies above 0, so a true mean difference of zero is not plausible at 95% confidence: the new insole does reduce mean peak impact force. The interval is wide because is only 10, so the size of the reduction is poorly pinned down, anywhere from a token 3 N to a substantial 33 N.
N, , , N. The 95% interval for is N. It excludes 0, so the new insole reduces mean peak impact force, but the interval is too wide to say by how much with any precision.
Problem 4
Eight athletes have their vertical jump measured, in centimeters, before and after a six-week plyometric program.
| Athlete | Before | After |
|---|---|---|
| 1 | 52 | 55 |
| 2 | 58 | 61 |
| 3 | 46 | 51 |
| 4 | 61 | 63 |
| 5 | 55 | 58 |
| 6 | 49 | 53 |
| 7 | 57 | 58 |
| 8 | 50 | 55 |
(a) Run the correct test at for whether the program increases mean vertical jump. (b) A classmate instead treats the 8 before values and the 8 after values as two independent samples and runs a two-sample test with the conservative degrees of freedom. Carry out that analysis too. (c) Explain why the two answers differ so sharply and which one is right.
Show the worked solution
(a) Build the differences. With , the eight differences are cm. Every one is positive, which is the first sign that the pairing is carrying real information.
(a) State and plan. Let be the true mean increase in vertical jump. versus at . Paired test on the 8 differences, with . The athletes are a convenience group rather than a random sample, so treat the conclusion as applying to these athletes; , and the differences show no strong skew and no outliers.
(a) Compute. cm. The squared deviations from 3.25 sum to , so cm. Then and .
(a) Conclude. With , a of lies far beyond every critical value the -table prints in that row, so the p-value is smaller than the smallest tail probability the table carries; technology gives . Reject : there is very strong evidence that mean vertical jump increased.
(b) The incorrect analysis, computed anyway. Treating the columns as independent samples: the after column has cm with , and the before column has cm with . Then and , so cm.
(b) Its test statistic and p-value. , with conservative , giving a one-sided p-value of . That is greater than , so the incorrect analysis fails to reject and finds no convincing evidence of an increase. Even the more generous Welch value only lowers it to , so the decision does not change.
(c) Why they differ. Both analyses have the same numerator: the estimated increase is cm either way. The denominators are what separate them. The paired standard error, , is built from how much the individual changes vary, and the changes range only from 1 to 5 cm. The two-sample standard error, , is built from how much athletes differ from each other, and jump heights range from 46 to 63 cm. Ignoring the pairing throws the between-athlete variation into the error term, inflating the standard error by a factor of about and shrinking by the same factor.
(c) Which is right. The paired analysis. The two columns are not independent, since athlete 3's before and after values are both driven by athlete 3, so the two-sample procedure's independence condition is violated and its p-value is not trustworthy. The practical cost is a Type II error: a real effect that the paired test finds overwhelming evidence for, the two-sample test misses entirely.
(a) Differences ; , , , , , one-sided p-value . Reject . (b) Two-sample: , , conservative , one-sided p-value , fail to reject. (c) The paired procedure is correct; ignoring the pairing pushes between-athlete variation into the standard error, inflating it about 4.7 times and turning an overwhelming result into a null one.
Problem 5
Twelve randomly selected patients have their total cholesterol measured, in mg/dL, before and after eight weeks on a diet. For the differences , the study reports and . (a) At , test whether the diet lowers mean cholesterol. (b) A second analyst subtracts in the other order, . State exactly what changes and what does not in the hypotheses, the statistic, the p-value, and the 95% confidence interval.
Show the worked solution
(a) State. Let be the true mean drop in cholesterol (before minus after), in mg/dL. A diet that lowers cholesterol makes the before value larger, so versus , with .
(a) Plan. Paired test on the 12 differences. Random: the 12 patients are a random sample. 10%: 12 pairs is under 10% of the patients this diet could be given to. Normal/large sample: , so assume the differences are roughly normal with no strong skew or outliers.
(a) Compute. , so with .
(a) p-value and conclusion. Right-tailed. In the row, falls between (tail ) and (tail ), so the p-value is between and ; technology gives . That is below , so reject . There is convincing evidence that mean total cholesterol dropped over the eight weeks. With no control group, the drop cannot be attributed to the diet rather than to the passage of eight weeks.
(b) What changes. Every difference flips sign, so becomes mg/dL and becomes . The alternative must flip with it: a drop in cholesterol now means a negative difference, so the analyst writes and takes a left tail.
(b) What does not change. is unchanged at , since flipping every sign shifts the mean but not the spread. So , , and are all identical, and the left-tail p-value is the same as the right-tail p-value was. The conclusion is word for word the same.
(b) The interval. Using at , mg/dL. The first analyst reports ; the second reports . Same width, same distance from zero, mirrored across it. Both exclude 0 and both say the same thing about cholesterol; only the direction the sign encodes has changed, which is why a response must always state which way it subtracted.
(a) , , , one-sided p-value (table bracket to ). Reject ; convincing evidence of a drop in mean cholesterol over the eight weeks, though with no control group the drop cannot be credited to the diet. (b) and flip sign and flips to ; , , , , the p-value, and the conclusion are unchanged, and the interval becomes .
Problem 6
A driving school matches 15 pairs of students on their initial road-test score. Within each pair, one student is randomly assigned to simulator-based lessons and the other to road-based lessons. For the differences (simulator minus road) in final score, the school reports points and points. (a) At , test whether the two lesson types differ in mean final score. (b) State what the design does and does not allow you to conclude.
Show the worked solution
(a) State. Let be the true mean difference in final score (simulator minus road) for students like these. versus , with . The alternative is two-sided because the school is asking whether the types differ, not whether one is better.
(a) Plan. Paired test on the 15 differences, one per matched pair. Random: the lesson type was randomly assigned within each pair, which is the form the random condition takes in a matched-pairs experiment. The 10% condition does not apply, because the pairs are not a sample drawn from a larger population of pairs. Normal/large sample: , so assume the differences are roughly normal with no strong skew or outliers.
(a) Compute. points, so with .
(a) p-value. Two-sided, so use . In the row it falls between (tail ) and (tail ), so one tail holds between and and the two-sided p-value is between and . Technology gives .
(a) Conclude. The p-value exceeds , so fail to reject . There is not convincing evidence that the two lesson types differ in true mean final score. Note the wording: this is a failure to find a difference, not evidence that none exists, and with only 15 pairs the test has limited power to detect a difference of a couple of points.
(b) Scope of inference. Lesson type was randomly assigned within each pair, so if a difference had been found it could have been attributed to the lesson type rather than to student ability, which the matching already controlled. But the 15 pairs were not randomly selected from any larger population, so no conclusion generalizes beyond students like these. Randomization supports causation; random selection supports generalization, and only the first is present here.
(a) , , , two-sided p-value (table bracket to ). Fail to reject ; not convincing evidence of a difference in true mean final score. (b) Random assignment within pairs would support a cause-and-effect claim, but with no random selection the result does not generalize beyond these students.
Problem 7
A researcher runs a paired test on 20 randomly selected participants who complete a mindfulness course, using . Software reports:
| Quantity | Value |
|---|---|
| 20 | |
| Mean of | 3.6 |
| StDev of | 8.4 |
| SE Mean | 1.878 |
| 1.917 | |
| P (one-sided) | 0.035 |
(a) State the hypotheses this output tests. (b) Interpret the p-value in context. (c) A student writes: 'There is a 3.5% chance that the course has no effect.' Explain what is wrong with that. (d) Build the 95% confidence interval for and reconcile it with the reported p-value.
Show the worked solution
(a) Hypotheses. Let be the true mean change in score (post minus pre). The output is one-sided with a positive , so it tests against , with . Confirm the printout internally: and , both matching.
(b) Interpret the p-value. If the course truly had no effect on mean score, so that , then about 3.5% of random samples of 20 participants would produce a mean improvement of points or more. The probability is computed assuming is true, and it describes results at least as extreme as the one observed.
(c) What is wrong with the student's sentence. A p-value is not the probability that a hypothesis is true. It reverses the conditioning: the correct statement is the probability of data this extreme given that holds, while the student states the probability that holds given the data. In this framework is a fixed unknown number, not a random one, so 'the probability the course has no effect' has no value to report. The sentence also misreads 'no effect' as an event with a probability rather than as an assumption the calculation was made under.
(d) Build the interval. , so the 95% column gives , and points. The interval is points.
(d) Reconcile. The interval contains 0, so at 95% confidence a true mean change of zero is still plausible. That looks like a contradiction with a p-value of until you match the tails: a 95% confidence interval corresponds to a two-sided test at , and the two-sided p-value here is , which exceeds . So the interval and the two-sided test agree, and the one-sided test rejects only because it spends all in one tail. A one-sided alternative must be chosen from the research question before the data are seen, never after seeing which direction the sample went.
(a) versus with . (b) If the course had no effect, about 3.5% of samples of 20 would show a mean gain of 3.6 points or more. (c) A p-value is the probability of data this extreme given , not the probability that is true. (d) , , interval ; it contains 0 because it matches the two-sided p-value of , not the one-sided .
Problem 8
A city measures rush-hour travel time, in minutes, on the same 9 routes before and after installing a new traffic-signal system. The differences (before minus after) are:
(a) Check the conditions for a paired procedure and identify the problem. (b) Build the 95% confidence interval from all 9 routes anyway. (c) Rebuild it from the other 8 routes and compare. (d) State what the city can and cannot report.
Show the worked solution
(a) Random and 10%. The 9 routes are the routes the city studied, not a random sample of routes, so any conclusion is about these routes; the 10% condition is not relevant for the same reason.
(a) The shape condition, and the problem. With , the differences themselves must show no strong skew and no outliers. Sorted, they are . The median is , and with the median excluded and , so and the upper fence is . The value sits well beyond it, so it is an outlier and the shape condition fails. A procedure here is not fully justified, and anything computed from it should be reported with that caveat.
(b) All 9 routes. minutes. The squared deviations from sum to , so and minutes.
(b) The interval. , so and minutes. The interval is minutes.
(c) The other 8 routes. Dropping gives minutes, squared deviations summing to , so and minutes. With and , and the interval is minutes.
(c) Compare. One route moved the center from to minutes and inflated from to , more than tripling it. The interval went from minutes wide to minutes wide. Both intervals lie entirely above 0, so the direction of the finding is stable, but the estimated size of the improvement is not.
(d) What to report. Both intervals exclude 0, so travel time on these routes fell after the new signals went in, and the finding does not hinge on the outlier. What the city cannot report is a precise figure: the estimate is minutes with all routes and minutes without one of them, so the honest statement names both and identifies route 7 as unusual. Dropping a data point to get a tidier answer is not allowed; the outlier should be investigated, since a route that improved by 8.7 minutes probably had something else change too. And because the routes were not randomly selected and no control routes were tracked, the improvement cannot be attributed to the signal system alone.
(a) The random condition is not met (these are not a random sample of routes), and the differences contain an outlier at , above the upper fence of , so the shape condition fails. (b) , , , , , interval minutes. (c) Without that route, , , , , interval minutes. (d) Both exclude 0, so the direction is stable, but the size is not; report both, flag the outlier, and claim no causal effect.