Paired-Samples t Tests

 

Data Set

The same group of people rated both brands of coffee. Half of the subjects tasted brand A first. Half of the subjects tasted brand B first. 

Is there a difference in the mean ratings between the two brands of coffee?


The null hypothesis states that there is no difference in the mean ratings between the two brands of coffee. The difference between means equals zero.



The alternative hypothesis states that there is a significant difference in the mean ratings between the two brands of coffee. It is a two-sided test. 

Set a significance level

Use a .05 significant level.

 

SPSS for Windows

Input

Analysis

Choose Analyze \ Compare Means \ Paired-Samples T Test. Select both "a" and "b" as Paired Variables.

Click the right arrow button. Click OK. 

SPSS Output

Note that the correlation between the two ratings scores are positive (.545). The high ratings on the brand A are associated with the high ratings on the brand B. However, the relationship is not significant (p > .05). 
 


Using the Traditional Formula to Compute the Paired-Samples t Test
 

r = .545
 


1. The unbiased standard deviation for the difference scores is equal to 1.059 as shown above.

2. You may also use the following formula to compute the unbiased standard deviation for the paired differences.

Since the same person rated both brands of coffee, the two ratings are correlated. The unbiased standard deviation for the paired differences is S(A-B) and can be also computed as 

 

S(A-B) = 1.059

Variance of a Difference: s (A-B)

Note that there is a covariance  term (rsAsB) since the two variables are related.

 



 
 

 

The observed sample mean difference is .7. The standard error of the difference between two dependent means is .335. Compute the t ratio.

 

 

t = .7 / .335 = 2.09. 

 

The observed probability is larger than .05

 

Report the results.


A paired-samples t test was conducted to evaluate the hypothesis that there was a difference in the mean ratings between the two brands of coffee. The mean rating for coffee A was 7 (SD = 1.155) and the mean rating for coffee B was 6.3 (SD = 1.059). The test was not significant, t(9) = 2.09, p > .05.