9.4 Matched or Paired Samples
SLO 4
Demonstrate an understanding of, and ability to use, basic ideas of statistical processes, including hypothesis tests and confidence interval estimation.
Paired data breaks the independence every other test in the chapter assumes, and the fix is a reduction rather than a new formula: subtract within each pair and the two samples collapse into one, testable with the single-sample t from Chapter 8.
SLO 5
Identify appropriate statistical techniques and use technology-based statistical analysis to describe, interpret, and communicate results.
Choosing the technique is the whole skill — recognizing that two columns measured on the same subjects are paired, counting pairs rather than measurements for df, and fixing the direction of subtraction before writing the hypotheses so the reported tail matches the claim.
Learning Objectives
By the end of this section, you will be able to:
- recognize a matched-pairs design and distinguish it from two independent samples;
- reduce paired data to a single list of differences and compute \(\overline{x}_{d}\) and \(s_{d}\);
- carry out a Student's t-test on the differences with \(n - 1\) degrees of freedom;
- choose the direction of subtraction deliberately, and read the sign of the result correctly;
- judge when a very small paired sample is too fragile to trust.
Everything so far in this chapter has compared two separate groups of subjects. This section compares one group of subjects to itself. Measure blood pressure before a medication and again after; measure how far a student throws with each hand; measure system failures before a patch and after. In each case the two measurements are attached to the same individual, so they are not independent, and the methods of §9.1 through §9.3 do not apply. What makes this section short is the trick at its centre: once you subtract each pair, the two samples collapse into one list of differences, and testing that list is a single-sample problem you already solved in Chapter 8.
9.4.1 Recognizing a Matched-Pairs Design
A hypothesis test uses matched or paired samples when the following characteristics are present:
- Simple random sampling is used.
- Sample sizes are often small.
- Two measurements (samples) are drawn from the same pair of individuals or objects.
- Differences are calculated from the matched or paired samples.
- The differences form the sample that is used for the hypothesis test.
- Either the matched pairs have differences that come from a population that is normal, or the number of differences is large enough that the distribution of the sample mean of differences is approximately normal.
Definition 9.4.1 — Matched or paired samples: linked before/after pairs versus unconnected independent samples.
For each pair, compute a single difference. The population mean of those differences, \(\mu_{d}\), is the parameter being tested; the subscript \(d\) denotes "differences." The sample mean and sample standard deviation of the differences are written \(\overline{x}_{d}\) and \(s_{d}\), and the random variable is \(\overline{X}_{d}\), the mean difference.
Definition 9.4.2 — The difference data: eight before/after pairs collapse into one column of eight differences.
The population mean for the differences, \(\mu_{d}\), is tested using a Student's t-test for a single population mean with \(n - 1\) degrees of freedom, where \(n\) is the number of differences:
$$ t = \frac{\overline{x}_{d} - \mu_{d}}{\left(\frac{s_{d}}{\sqrt{n}}\right)} $$Definition 9.4.3 — Paired-sample t: degrees of freedom count PAIRS, not measurements.
Points 3 through 5 are the whole design. Subjects are matched in pairs, differences are calculated, and the differences are the data. Everything you learned about a single-sample t-test in Chapter 8 then applies unchanged.
It might look as though pairing throws information away — sixteen numbers become eight. It does the opposite. In §9.1 the standard error had to absorb all the variation between people, which is usually large: people differ enormously in blood pressure, in throwing distance, in how many balls they can juggle. Subtracting within a person cancels that variation entirely, leaving only the change you actually care about. That is why an eight-subject paired study can detect an effect that fifty independent subjects would miss.
Compare this with the Aspin–Welch statistic of Definition 9.1.4 and notice what is gone: there is no second sample size, no second standard deviation, and no fractional degrees of freedom. \(df = n - 1\), full stop, where \(n\) counts pairs — not measurements. Eight subjects measured twice give \(n = 8\) and \(df = 7\), never 15.
9.4.2 Testing the Differences
A study was conducted to investigate how effective a new diet was in lowering cholesterol. Results for the randomly selected subjects are shown below. The differences have a normal distribution. Are the subjects' cholesterol levels lower on average after the diet? Test at the 5% level.
| Subject | A | B | C | D | E | F | G | H | I |
|---|---|---|---|---|---|---|---|---|---|
| Before | 209 | 210 | 205 | 198 | 216 | 217 | 238 | 240 | 222 |
| After | 199 | 207 | 189 | 209 | 217 | 202 | 211 | 223 | 201 |
Solution — cholesterol before and after a diet
Step 1 — Recognize the design. The same nine subjects are measured twice, so these are matched pairs, not independent samples.
Step 2 — Compute the differences as "after \(-\) before," so that a lower cholesterol level after the diet shows up as a negative number:
$$ \{-10,\ -3,\ -16,\ 11,\ 1,\ -15,\ -27,\ -17,\ -21\} $$Seven of the nine dropped, one was unchanged in direction by only 1 point, and one subject (D) rose by 11.
Step 3 — Summarize. \(n = 9\), \(\overline{x}_{d} = -10.78\), and \(s_{d} = 11.86\).
Step 4 — Write the hypotheses. "Lower after the diet" means the differences should be negative:
$$ H_{0}: \mu_{d} \geq 0 \qquad H_{a}: \mu_{d} < 0 $$This is a left-tailed test.
Step 5 — Standardize. The distribution is \(t_{8}\), since \(df = 9 - 1 = 8\):
$$ t = \frac{-10.78}{\left(\frac{11.86}{\sqrt{9}}\right)} = -2.73 $$Step 6 — Decide. The left-tail p-value is 0.0130. Since \(0.0130 < 0.05\), reject \(H_{0}\).
Answer: At the 5% level of significance, there is sufficient evidence to conclude that the subjects' cholesterol levels are lower on average after the diet. Note that this would not reject at the 1% level — and that one subject going the wrong way by 11 points is exactly the kind of thing a nine-person study cannot absorb without cost.
Dr. Lucía Bermúdez, who runs a pain clinic with her wife, conducted a study to investigate the effectiveness of hypnotism in reducing pain. Results for randomly selected subjects are shown below; a lower score indicates less pain. The "before" value is matched to an "after" value and the differences are calculated. The differences have a normal distribution. Are the sensory measurements, on average, lower after hypnotism? Test at a 5% significance level.
| Subject | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
| Before | 6.6 | 6.5 | 9.0 | 10.3 | 11.3 | 8.1 | 6.3 | 11.6 |
| After | 6.8 | 2.4 | 7.4 | 8.5 | 8.1 | 6.1 | 3.4 | 2.0 |
Solution — a left-tailed paired t-test
Step 1 — Form the pairs. Corresponding "before" and "after" values form matched pairs. Calculate "after \(-\) before."
| After Data | Before Data | Difference |
|---|---|---|
| 6.8 | 6.6 | 0.2 |
| 2.4 | 6.5 | −4.1 |
| 7.4 | 9.0 | −1.6 |
| 8.5 | 10.3 | −1.8 |
| 8.1 | 11.3 | −3.2 |
| 6.1 | 8.1 | −2.0 |
| 3.4 | 6.3 | −2.9 |
| 2.0 | 11.6 | −9.6 |
Step 2 — The data for the test are the differences: \(\{0.2, -4.1, -1.6, -1.8, -3.2, -2.0, -2.9, -9.6\}\). The sample mean and sample standard deviation of the differences are \(\overline{x}_{d} = -3.13\) and \(s_{d} = 2.91\). Verify these values for yourself — it is the one piece of arithmetic in this section that is genuinely worth doing by hand once.
Step 3 — Name the random variable. \(\overline{X}_{d}\), the mean difference of the sensory measurements. Let \(\mu_{d}\) be the population mean for the differences.
Step 4 — Write the hypotheses.
$$ H_{0}: \mu_{d} \geq 0 \qquad H_{a}: \mu_{d} < 0 $$The null hypothesis is zero or positive, meaning there is the same or more pain felt after hypnotism — the subject shows no improvement. The alternative is negative, meaning there is less pain felt after hypnotism. Because a lower score means less pain, the score should be lower after hypnotism, so the difference ought to be negative to indicate improvement.
Step 5 — Choose the distribution. A Student's t with \(df = n - 1 = 8 - 1 = 7\). Use \(t_{7}\). Notice that the test is for a single population mean.
Step 6 — Compute. The test statistic is \(t = -3.036\) and the p-value is 0.0095.
Step 7 — Compare and decide. \(\alpha = 0.05\) and the p-value is 0.0095, so \(\alpha >\) p-value. Reject \(H_{0}\). This means that \(\mu_{d} < 0\) and there is improvement.
Answer: At a 5% level of significance, from the sample data, there is sufficient evidence to conclude that the sensory measurements are, on average, lower after hypnotism. Hypnotism appears to be effective in reducing pain.
On a TI-83/83+/84/84+: you can either calculate the differences ahead of time (after \(-\) before) and put the differences into a list, or put the "after" data into a first list and the "before" data into a second list, then go to a third list, arrow up to the name, and enter 1st list name - 2nd list name — the calculator does the subtraction and leaves the differences in the third list. Then use your list of differences as the data: press STAT, arrow over to TESTS, and press 2:T-Test. Arrow over to Data and press ENTER. Enter 0 for \(\mu_{0}\), the name of the list holding the differences, and 1 for Freq:. Arrow down to \(\mu\): and arrow to the \(<\mu_{0}\) option. Press ENTER, arrow down to Calculate and press ENTER. The calculator returns p = 0.0094 and the test statistic \(t = -3.04\).
Try it in rāSHio
A paired test is a one-sample t-test, so the panel you want is the same one §9.1 used — you just feed it the differences. In rāSHio paste the eight differences with File → Delimited List, then choose Stats → T Stats, point it at that column, set the claimed mean to 0 and the alternative to less-than. It returns \(t = -3.036\) and the p-value 0.0095, and it takes \(df = 7\) from the count of differences, so the "count pairs, not measurements" trap never comes up. If you would rather not subtract by hand, paste the before and after columns and read \(\overline{x}_{d}\) and \(s_{d}\) off Stats → Summary Statistics for the difference column first.
Figure 9.4.1 — The rāSHio T Stats panel: Stats → T Stats. The walkthrough runs a one-sample t-test against a claimed mean, reading the t-statistic, degrees of freedom and p-value off the panel; for a paired test the input column is the list of differences. Its demonstration numbers are not this example's hypnotism scores.
9.4.3 Choosing the Direction of Subtraction
Nothing in the mathematics forces you to compute "after \(-\) before" rather than "before \(-\) after." Both are correct, and they give test statistics of opposite sign. What matters is that you decide first, write the hypotheses to match, and then read the sign consistently.
Say in words what an improvement would look like as a number. In Example 9.4.1, "less pain after" means a negative "after − before," so improvement lives in the left tail and \(H_{a}: \mu_{d} < 0\). In Example 9.4.2 below, "stronger after" means a positive difference, so \(H_{a}: \mu_{d} > 0\). Get these two decisions out of order and you will run a perfectly correct test on the wrong tail — the single most common error in this section, and one that no calculator will catch for you.
Tayen Runningwater (they/them) designed a new prep class to improve SAT test scores. Four students were selected at random. Their scores on two practice exams were recorded, one before the class and one after. Are the scores, on average, higher after the class? Test at a 5% level.
| SAT Scores | Student 1 | Student 2 | Student 3 | Student 4 |
|---|---|---|---|---|
| Score before class | 1840 | 1960 | 1920 | 2150 |
| Score after class | 1920 | 2160 | 2200 | 2100 |
Solution — SAT scores before and after a prep class
Step 1 — Fix the direction. "Higher after the class" is the claim, so compute "after \(-\) before" and look for positive differences:
$$ \{80,\ 200,\ 280,\ -50\} $$Step 2 — Summarize. \(n = 4\), \(\overline{x}_{d} = 127.5\), and \(s_{d} = 144.08\).
Step 3 — Write the hypotheses.
$$ H_{0}: \mu_{d} \leq 0 \qquad H_{a}: \mu_{d} > 0 $$This is a right-tailed test, with distribution \(t_{3}\).
Step 4 — Standardize.
$$ t = \frac{127.5}{\left(\frac{144.08}{\sqrt{4}}\right)} = 1.77 $$Step 5 — Decide. The right-tail p-value is 0.0874. Since \(0.0874 > 0.05\), do not reject \(H_{0}\).
Answer: At the 5% level of significance, there is not sufficient evidence to conclude that SAT scores are higher on average after the prep class. Three of the four students improved, two of them substantially — and the test still fails to reject. With only four pairs, \(df = 3\), and the standard deviation of 144 is inflated by the one student who dropped 50 points. Four subjects is simply not enough to separate a real effect from this much noise.
Daniel Kwon, a college softball coach and the faculty advisor to the school's LGBTQ+ athletes' alliance, was interested in whether the college's strength development class increased his players' maximum lift, in pounds. Four players participated in the study. The amount of weight each could lift was recorded before they took the class, and again after completing it.
| Weight (in pounds) | Player 1 | Player 2 | Player 3 | Player 4 |
|---|---|---|---|---|
| Amount of weight lifted prior to the class | 205 | 241 | 338 | 368 |
| Amount of weight lifted after the class | 295 | 252 | 330 | 360 |
The coach wants to know if the strength development class makes the players stronger, on average.
Solution — a right-tailed test on four players
Step 1 — Record the differences. Subtract the amount lifted prior to the class from the amount lifted after completing it, so an increase is positive: \(\{90, 11, -8, -8\}\). Assume the differences have a normal distribution.
Step 2 — Summarize. \(\overline{x}_{d} = 21.3\) and \(s_{d} = 46.7\).
Step 3 — Identify the test. Using the difference data, this becomes a test of a single mean.
Step 4 — Name the random variable. \(\overline{X}_{d}\), the mean difference in the maximum lift per player. The distribution for the hypothesis test is \(t_{3}\).
Step 5 — Write the hypotheses.
$$ H_{0}: \mu_{d} \leq 0 \qquad H_{a}: \mu_{d} > 0 $$Step 6 — Compute. The p-value is 0.2150.
Step 7 — Decide. If the level of significance is 5%, the decision is not to reject the null hypothesis, because \(\alpha <\) p-value.
Answer: At a 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the strength development class helped to make the players stronger, on average.
The differences \(\{90, 11, -8, -8\}\) are right-skewed, and 90 may well be an extreme outlier. It alone pulls the sample mean up to \(+21.3\); the other three differences average \(-1.7\), pointing the opposite way. The method of this section requires that the matched pairs have differences drawn from a normal population, and it is important to confirm that assumption rather than assume it. With a sample this small there is no way to check it from the data, and a single unusual value dominates everything. The coach's next step should be a larger study, not a different test.
9.4.4 When the Sample Is Too Small to Trust
Omar Nasrallah, who coaches a rec-league team alongside his husband, and four of his players think they can throw the same distance with their dominant hand (throwing) and their off-hand (catching hand). Conduct a hypothesis test to determine whether the mean difference in distances between the dominant and off-hand is significant. Test at the 5% level.
| Player 1 | Player 2 | Player 3 | Player 4 | Player 5 | |
|---|---|---|---|---|---|
| Dominant Hand | 120 | 111 | 135 | 140 | 125 |
| Off-hand | 105 | 109 | 98 | 111 | 99 |
Solution — dominant versus off-hand throwing distance
Step 1 — Compute the differences as "dominant \(-\) off-hand": \(\{15, 2, 37, 29, 26\}\). Every player threw farther with the dominant hand.
Step 2 — Summarize. \(n = 5\), \(\overline{x}_{d} = 21.8\), and \(s_{d} = 13.59\).
Step 3 — Write the hypotheses. The players believe the distances are the same, and "is the difference significant" gives no direction, so this is two-tailed:
$$ H_{0}: \mu_{d} = 0 \qquad H_{a}: \mu_{d} \neq 0 $$Step 4 — Standardize. The distribution is \(t_{4}\):
$$ t = \frac{21.8}{\left(\frac{13.59}{\sqrt{5}}\right)} = 3.59 $$Step 5 — Decide. The two-tailed p-value is 0.0230. Since \(0.0230 < 0.05\), reject \(H_{0}\).
Answer: At the 5% level of significance, there is sufficient evidence to conclude that there is a difference in the distances the players throw with their dominant and off-hands. The players' belief is not supported.
Why five pairs was enough here and four was not in Try It Now 9.4.2. Nothing about the sample size changed much — what changed is consistency. All five differences here are positive, so \(s_{d} = 13.6\) against a mean of 21.8. In Try It Now 9.4.2 one of four differences went the wrong way, and \(s_{d} = 144\) against a mean of 127.5. A paired test rewards agreement across pairs far more than it rewards raw sample size.
Seven eighth graders at Kennedy Middle School measured how far they could push the shot-put with their dominant (writing) hand and their weaker (non-writing) hand, with their science teacher Amari Boateng (they/them) recording the results. The students thought that they could push equal distances with either hand. Conduct a hypothesis test to determine whether the mean difference in distances between the children's dominant and weaker hands is significant.
| Distance (in feet) using | Student 1 | Student 2 | Student 3 | Student 4 | Student 5 | Student 6 | Student 7 |
|---|---|---|---|---|---|---|---|
| Dominant Hand | 30 | 26 | 34 | 17 | 19 | 26 | 20 |
| Weaker Hand | 28 | 14 | 27 | 18 | 17 | 26 | 16 |
Solution — a two-tailed paired test
Step 1 — Record the differences. Subtract the distance with the weaker hand from the distance with the dominant hand: \(\{2, 12, 7, -1, 2, 0, 4\}\). The differences have a normal distribution.
Step 2 — Summarize. \(\overline{x}_{d} = 3.71\) and \(s_{d} = 4.5\).
Step 3 — Name the random variable. \(\overline{X}_{d}\), the mean difference in the distances between the hands. The distribution for the hypothesis test is \(t_{6}\).
Step 4 — Write the hypotheses. The students thought the distances were equal, and no direction is claimed, so the test is two-tailed:
$$ H_{0}: \mu_{d} = 0 \qquad H_{a}: \mu_{d} \neq 0 $$Step 5 — Compute. The test statistic is \(t = 2.18\) and the p-value is 0.0716.
Step 6 — Decide. Assume \(\alpha = 0.05\). Since \(\alpha <\) p-value, do not reject \(H_{0}\).
Answer: At the 5% level of significance, from the sample data, there is not sufficient evidence to conclude that there is a difference in the children's weaker and dominant hands in pushing the shot-put.
A near miss worth noticing. The p-value of 0.0716 sits just above 0.05, and five of the seven students did push farther with the dominant hand. Compare this with Try It Now 9.4.3, where the same two-tailed question rejected on only five pairs — the difference is that student 4 here went backwards and student 6 was exactly even, and two non-confirming pairs out of seven are enough to keep the p-value above the line. Do not read "do not reject" as "the hands are the same." It means seven children could not settle it.
Problem Set 9.4
Use the following information to answer the next five exercises. A study was conducted to test the effectiveness of a software patch in reducing system failures over a six-month period. Results for randomly selected installations are shown below. The "before" value is matched to an "after" value, and the differences are calculated. The differences have a normal distribution. Test at the 1% significance level.
| Installation | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
| Before | 3 | 6 | 4 | 2 | 5 | 8 | 2 | 6 |
| After | 1 | 5 | 2 | 0 | 1 | 0 | 2 | 2 |
Problem 1. What is the random variable?
Problem 1 Solution
Step 1 — Recognize the design: Eight installations are each measured twice, before and after the patch, so this is a matched-pairs design. Subtracting each installation's own before-value from its own after-value collapses the two samples into a single list of differences, and that list of differences is the data the test actually uses.
Answer: \(\overline{X}_{d}\), the mean difference in the number of system failures per installation.
Problem 2. State the null and alternative hypotheses.
Problem 2 Solution
Step 1 — Fix the direction of subtraction: Compute "after \(-\) before." A patch that reduces failures should leave fewer failures after than before, so an effective patch shows up as a negative difference.
Step 2 — Write the hypotheses:
$$ H_{0}: \mu_{d} \geq 0 \qquad H_{a}: \mu_{d} < 0 $$Answer: \(H_{0}: \mu_{d} \geq 0\) and \(H_{a}: \mu_{d} < 0\); this is a left-tailed test.
Problem 3. What is the p-value?
Problem 3 Solution
Step 1 — Form the differences as "after \(-\) before," so a drop in failures reads as negative:
$$ \{-2,\ -1,\ -2,\ -2,\ -4,\ -8,\ 0,\ -4\} $$Step 2 — Summarize. \(n = 8\), \(\overline{x}_{d} = -2.875\), and \(s_{d} = 2.4749\).
Step 3 — Standardize. \(df = 8 - 1 = 7\), so use \(t_{7}\):
$$ t = \frac{-2.875}{\left(\frac{2.4749}{\sqrt{8}}\right)} = -3.2857 $$Answer: The left-tail p-value is 0.0067.
Problem 4. Draw the graph of the p-value.
Problem 4 Solution
Step 1 — Choose the curve. The test statistic in 9.4.3 came from \(t_{7}\), so sketch a \(t_{7}\) curve centered at 0.
Step 2 — Mark the statistic and shade. Mark \(t = -3.2857\) (the standardized value of \(\overline{x}_{d} = -2.875\)) to the left of center. Shade the region from that point out to the curve's left tail; this is a left-tailed test, so only the left side is shaded.
Answer: A \(t_{7}\) curve centered at 0, with the region to the left of \(t = -3.2857\) shaded; the shaded area equals the p-value, 0.0067.
Problem 5. What conclusion can you draw about the software patch?
Problem 5 Solution
Step 1 — Compare to \(\alpha\). At the 1% level, \(\alpha = 0.01\). The p-value from 9.4.3 is 0.0067, and \(0.0067 < 0.01\), so reject \(H_{0}\).
Answer: With a p-value of 0.0067 we reject the null hypothesis. There is enough evidence to support that the software patch is effective in reducing the number of system failures.
Use the following information to answer the next five exercises. A study was conducted to test the effectiveness of a juggling class. Before the class started, six subjects juggled as many balls as they could at once. After the class, the same six subjects juggled as many balls as they could. The differences in the number of balls are calculated. The differences have a normal distribution. Test at the 1% significance level.
| Subject | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| Before | 3 | 4 | 3 | 2 | 4 | 5 |
| After | 4 | 5 | 6 | 4 | 5 | 7 |
Problem 6. State the null and alternative hypotheses.
Problem 6 Solution
Step 1 — Fix the direction of subtraction: Compute "after \(-\) before." A class meant to increase how many balls a student can juggle should leave students juggling more after than before, so a positive difference is the sign of improvement.
Step 2 — Write the hypotheses:
$$ H_{0}: \mu_{d} \leq 0 \qquad H_{a}: \mu_{d} > 0 $$Answer: \(H_{0}: \mu_{d} \leq 0\) and \(H_{a}: \mu_{d} > 0\); this is a right-tailed test.
Problem 7. What is the p-value?
Problem 7 Solution
Step 1 — Form the differences as "after \(-\) before":
$$ \{1,\ 1,\ 3,\ 2,\ 1,\ 2\} $$Step 2 — Summarize. \(n = 6\), \(\overline{x}_{d} = 1.6667\), and \(s_{d} = 0.8165\).
Step 3 — Standardize. \(df = 6 - 1 = 5\), so use \(t_{5}\):
$$ t = \frac{1.6667}{\left(\frac{0.8165}{\sqrt{6}}\right)} = 5.0000 $$Answer: The right-tail p-value is 0.0021.
Problem 8. What is the sample mean difference?
Problem 8 Solution
Step 1 — Recall the differences computed in 9.4.7 as "after \(-\) before": \(\{1, 1, 3, 2, 1, 2\}\).
Answer: \(\overline{x}_{d} = 1.6667\).
Problem 9. Draw the graph of the p-value.
Problem 9 Solution
Step 1 — Choose the curve. The test statistic in 9.4.7 came from \(t_{5}\), so sketch a \(t_{5}\) curve centered at 0.
Step 2 — Mark the statistic and shade. Mark \(t = 5.0000\) (the standardized value of \(\overline{x}_{d} = 1.6667\)) to the right of center. Shade the region from that point out to the curve's right tail; this is a right-tailed test, so only the right side is shaded.
Answer: A \(t_{5}\) curve centered at 0, with the region to the right of \(t = 5.0000\) shaded; the shaded area equals the p-value, 0.0021.
Problem 10. What conclusion can you draw about the juggling class?
Problem 10 Solution
Step 1 — Compare to \(\alpha\). At the 1% level, \(\alpha = 0.01\). The p-value from 9.4.7 is 0.0021, and \(0.0021 < 0.01\), so reject \(H_{0}\).
Answer: At the 1% level of significance, with a p-value of 0.0021, we reject the null hypothesis. There is sufficient evidence to conclude that the juggling class increases, on average, the number of balls a student can juggle.
Use the following information to answer the next five exercises. Dr. Priya Raghunathan, who founded her clinic's LGBTQ+ health program, wants to know if a blood pressure medication is effective. Six subjects have their blood pressures recorded. After twelve weeks on the medication, the same six subjects have their blood pressure recorded again. For this test, only systolic pressure is of concern. Test at the 1% significance level.
| Patient | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| Before | 161 | 162 | 165 | 162 | 166 | 171 |
| After | 158 | 159 | 166 | 160 | 167 | 169 |
Problem 11. State the null and alternative hypotheses.
Problem 11 Solution
Step 1 — Fix the direction of subtraction: Compute "after \(-\) before." A medication meant to lower systolic pressure should leave pressure lower after twelve weeks than before, so a negative difference is the sign of improvement.
Step 2 — Write the hypotheses:
$$ H_{0}: \mu_{d} \geq 0 \qquad H_{a}: \mu_{d} < 0 $$Answer: \(H_{0}: \mu_{d} \geq 0\) and \(H_{a}: \mu_{d} < 0\); this is a left-tailed test.
Problem 12. What is the test statistic?
Problem 12 Solution
Step 1 — Form the differences as "after \(-\) before":
$$ \{-3,\ -3,\ 1,\ -2,\ 1,\ -2\} $$Step 2 — Summarize. \(n = 6\), \(\overline{x}_{d} = -1.3333\), and \(s_{d} = 1.8619\).
Step 3 — Standardize. \(df = 6 - 1 = 5\), so use \(t_{5}\):
$$ t = \frac{-1.3333}{\left(\frac{1.8619}{\sqrt{6}}\right)} = -1.7541 $$Answer: \(t = -1.7541\).
Problem 13. What is the p-value?
Problem 13 Solution
Step 1 — Read the tail from the test statistic. From 9.4.11 this is a left-tailed test, and from 9.4.12 the statistic is \(t = -1.7541\) on \(t_{5}\), so the p-value is the area to the left of \(-1.7541\).
Answer: The p-value is 0.0699.
Problem 14. What is the sample mean difference?
Problem 14 Solution
Step 1 — Recall the differences computed in 9.4.12 as "after \(-\) before": \(\{-3, -3, 1, -2, 1, -2\}\).
Answer: \(\overline{x}_{d} = -1.3333\).
Problem 15. What is the conclusion?
Problem 15 Solution
Step 1 — Compare to \(\alpha\). At the 1% level, \(\alpha = 0.01\). The p-value from 9.4.13 is 0.0699, and \(0.0699 > 0.01\), so do not reject \(H_{0}\).
Answer: We decline to reject the null hypothesis. There is not sufficient evidence to support that the medication is effective. At the 1% level, 0.0699 is far above \(\alpha\).
Key Terms
matched or paired samples — two measurements taken on the same individuals or objects, so that the observations are linked and the two-sample methods of §9.1–§9.3 do not apply.
difference data — the single list obtained by subtracting each pair; it is the sample the test actually uses.
\(\mu_{d}\) — the population mean of the differences, the parameter tested in a matched-pairs design.
\(\overline{x}_{d}\) and \(s_{d}\) — the sample mean and sample standard deviation of the differences.
paired-sample t-test — a Student's t-test for a single population mean applied to the differences, with \(df = n - 1\) where \(n\) is the number of pairs.