10.3 Inference for Paired Samples
When we conduct a study involving the same participants who have been measured at two points in time, we are working with paired samples. This type of experimental design allows researches to control for confounding variables. Compare this to the situation with two independent samples, in which there are differences between the sampling units that contribute to the variability in the data. By creating a meaningful pairing, other differences that would exist with independent samples are eliminated, so a source of variability has been reduced, and the focus can be on the treatment differences. By eliminating a source of variation, the estimate of the standard deviation will be smaller, increasing the power of the the test. If the treatment is not effective, then the expectation is that the responses from each individual at both points in time would be similar, so the difference would be close to zero.
In the paired sample case, researchers measure the same participants. The measurement for each participant will be taken at two distinct time points. In order to analyze the data, the differences are examined. Consider several scenarios:
- Ten vehicles are selected randomly from a particular fleet and each vehicle had emissions measured for highway driving and city driving. The mean of the ten measures of emissions for highway driving is and the mean of the ten emission measures for city driving is . The mean difference between emissions, is the target of investigation. There are 10 mean differences to examine and the focus on the investigation is to determine if there is evidence to conclude .
- Thirteen adult females between the ages of 50 and 70 participate in a study to evaluate the effect of diet on blood cholesterol levels. The mean blood cholesterol level is measured for the 13 individuals initially, , and then again after three months on a diet, . There are 13 mean differences to examine. If diet has no effect, the expectation is that the mean difference, will be close to zero. If the diet is effective then the expectation is that after the treatment, the blood cholesterol level will be reduced. Thus, researchers will determine if there is evidence to conclude .
- A maintenance manager will test a new repair method on 9 of the injection molding machines to see if a new repair method increases the expected time between repairs. The mean time between repairs for each of the 9 machines prior to the intervention is . After the new repair method is employed, the mean time between repairs for each machine is recorded as . If the new repair technique makes no difference in the time between repairs, then the expectation is that mean difference will be close to zero. The target of the investigation is to see if there is evidence to conclude , so the 9 mean differences will be examined.
Paired-Samples Inference
For a matched pair or paired sample inference, the following characteristics and assumptions should be present:
- Simple random sampling is used.
- There are no outliers.
- Two measurements (samples) are drawn from the same pair of individuals or objects.
- The variable of interest is measured on a continuous scale.
- Differences are calculated from the matched or paired samples.
- The differences form the sample that is used for the hypothesis test or confidence interval.
- The matched pairs have differences that come from a population of differences that is normal or the sample should be large.
As we have learned, when we use the Student’s t-distribution, the population from which the data comes must be normally distributed. For paired samples, the normality assumption applies to the population of paired differences rather than the raw data. As long as the paired differences do not show significant skewness and the sample size is large enough, the Student’s t-distribution can be used, thanks to the Central Limit Theorem.
In a hypothesis test for matched or paired samples, subjects are matched in pairs and differences are calculated. The differences are the data values under analysis. The population mean for the differences, , is then tested using a Student’s-t test for a single population mean with – 1 degrees of freedom, where is the number of differences.
Inference for Paired Samples
When performing inference for paired data involving a single population mean difference, , the underlying sampling distribution of the sample mean difference, is the Student’s t-distribution as long as there was simple random sampling and the population of differences is approximately normally distributed.
Hypothesis Testing
To test a null hypothesis of the form ; ; or ,
We assume is true, so
The test statistic (t-score) is
Probability associated with the test statistic can be found from the Student’s t-distribution with degrees of freedom.
If , calculate the p-value as the sum of the areas in the tails cut off by and .
If calculate the p-value as the area to the left of the test statistic, .
If calculate the p-value as the area to the right of the test statistic, .
Confidence Interval
The two-tailed hypothesis test is equivalent to finding a % confidence interval for and failing to reject if the test statistic falls inside the confidence interval:
Example 1 – Pain Reduction Through Hypnotism
A study was conducted to investigate the effectiveness of hypnotism in reducing pain. Results for randomly selected subjects are shown in Table 1. A lower score indicates less pain. For each subject, the pain level is recorded, and then after the treatment, the pain level is recorded again. Assume the differences have a normal distribution. Is there evidence to conclude that average pain levels are lower after treatment with hypnotism? Conduct a hypothesis test at a 5% significance level. Then create the 95% confidence interval for the mean difference in pain after hypnotism and compare the result to the hypothesis test.
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:
Calculate the differences for each of the matched pairs as shown in Table 2. Note that by creating the difference as (Pain Level After Treatment – Pain Level Before Treatment), when the difference is negative, it means the subject showed an improvement, so a decrease in pain.
After Treatment | Before Treatment | After – Before = Difference |
---|---|---|
6.8 | 6.6 | 0.2 |
2.4 | 6.5 | -4.1 |
7.4 | 9 | -1.6 |
8.5 | 10.3 | -1.8 |
8.1 | 11.3 | -3.2 |
6.1 | 8.1 | -2 |
3.4 | 6.3 | -2.9 |
2 | 11.6 | -9.6 |
- In order to test the hypothesis that pain levels are reduced after treatment, the alternate hypothesis will state that the mean difference is less than 0. The null hypothesis is zero or positive, meaning that there is the same or more pain felt after hypnotism.
- The data for the hypothesis test are the eight differences: {0.2, –4.1, –1.6, –1.8, –3.2, –2, –2.9, –9.6} and we assume the differences come from a normal distribution. We will use a t-test statistic with degrees of freedom. Without that assumption, we could create a normal probability plot to assess the normality of the differences. The sample mean and sample standard deviation of the differences are and Verify these values. We begin the hypothesis by assuming the null hypothesis is true, so the test statistic has a Student’s t distribution, with 7 degrees of freedom.
- The test statistic is .
- The p-value is the probability of observing a sample mean difference as extreme as we did under the assumption that the null hypothesis is true. A statistical program can calculate the p-value. See Figure 1.
The p-value is the probability or approximately 0.95%.
- Assuming the null hypothesis is true, the probability we would observe a sample mean difference as extreme as the one we observed is 0.0095. There is less than a 1% chance of observing a sample as least as extreme as we did, which a small probability and less than a 5% level of significance. Because this is highly unlikely, we conclude that we have evidence to reject the null hypothesis. The data supports the claim that the mean pain level after hypnosis is less than before hypnosis.
The 95% confidence interval for the mean difference in pain after hypnotism is calculated as
With 95% confidence the mean difference in pain after hypnosis, is in the interval (-5.96, -0.69). Note the interval does not include the value 0, so the null hypothesis from the hypothesis test was rejected at a 5% significance level.
Feedback/Errata