Hypothesis Testing for Matched Pairs

Hypothesis Test for Matched Pairs
When a hypothesis test is performed for matched pairs, the subjects or observations are matched in pairs and then we analyze the differences.
Hypotheses:
Ho:D=0 (there is no difference in the population mean of the differences)
Ha:D=0 (there is a difference in the population mean of the differences)
Basically, we compute the difference between the two means and plug the value into a one-sample t-test on the differences.
- If the mean difference is zero, then the two means are not different.
- If the mean difference is statistically significantly not zero, then the two means are different.
d is the sample mean of the differences
sd is the sample standard deviation of the differences
Test-statistic:
where Dˉ=0 such that:
Degrees of freedom:
where n = number of pairs (or sample size)
Example
Hank's Auto Mall sells used cars and got them all appraised by Auto Corp. He hired another car appraisal company, Vroom Car Appraisal, to get a second opinion on those same cars. Hank wants to see if there is a significant difference between the appraisal values for each of his cars. Is there evidence at the 5% significance level? Eight cars were randomly sampled. Values are in $,000's:
The mean appraisal values for each company are dependent on each other because they are based on the same 8 cars - each car was measured twice. In other words, the cars sampled were not drawn from different, independent populations. Rather, they are drawn from the sample population.
Sample mean of the differences, d=10
Sample standard deviation of the differences, sd=10.3
Sample size, n=8 (not 16!)
What does d mean in this example (in plain English)?
The mean difference in appraisal value between the two appraisers is $10,000.
Hypotheses:
Ho:Dˉ=0
Ha:Dˉ=0 (two-tail test)
Test-statistic:
df=n−1=8−1=7
P-value:

t-table: 0.02< p-value <0.05
Software: p-value = 0.0287
Since the p-value is less than α=0.05, we have evidence that there is a difference between the two appraisal values between the two appraisers.
What happens if we incorrectly do a two-sample test, given the paired nature of the data?
Since the variances are quite equal, suppose we incorrectly do a pooled two-sample test for independent means:
sp=12.07
n1=8
n2=8
(Notice that now it looks like there are 16 cars being appraised, 8 each from 2 different populations!)
t=spn11+n21(x1–x2)−0=12.0781+81(66.75–56.75)=1.66
df=8+8–2=14
Using software: p-value = 0.1198
In this case, the p-value is greater than α=0.05. Doing a two-sample test (incorrectly) suggests that no evidence that the two means differ.

Example: Hypothesis Test for Matched Pairs
The cabbage diet, invented by Dr. Patch, aims at helping people lose weight. According to this diet, eating lots of cabbage soup can reduce your consumption of calories. Six people are asked to track the number of calories consumed during a regular week and a week when they were on the cabbage diet. The number of calories consumed is recorded below:

(a) State the null and alternative hypotheses.
Di=Regular week − Cabbage Diet Week
Ho:Dˉ=0 Ha:Dˉ>0 (one-tail test)
or
Ho:μd=0 Ha:μd>0 (one-tail test)
(b) Compute the test-statistic
t⋅=6193.43178.33−0=2.258
(c) What the p-value?
df=6−1=5

2.015<t<2.571 so the one-sided p-value is between 0.025 and 0.05.
(d) At the 5% significance level, is there evidence that this diet reduces the consumption of calories?
Since the p-value is between 2.5% and 5%, it is less than 5% so reject Ho.
Thus, there is evidence that this diet works.
(e) At the 1% significance level, is there evidence that this diet reduces the consumption of calories?
Since the p-value is between 2.5% and 5%, it is greater than 1% so we fail to reject Ho.
Thus, there is no strong evidence that this diet works.