SOP: Comparing Two Related Sets of Results by the Paired t-Test
GIFSQ ID: SOP-0908
Principle
When paired scores are available: for example, when each panelist rates two samples of a product, or when two methods of analysis are compared on the same samples: the paired t-test (t-by-difference) removes the effect of differences between the pairs from the estimate of error, making it a more discriminating test than the test for independent lots. The null hypothesis is that the mean of the differences is zero.
Materials
- The n pairs of scores (x₁ from lot/method 1, x₂ from lot/method 2)
- The source’s t-distribution table for (n − 1) degrees of freedom
Procedure
For each pair, compute the algebraic difference d = x₁ − x₂, keeping the sign
↓
Add the differences to obtain Σd and square each difference and add to obtain Σd²
↓
Compute the t-value using the expression below
↓
Compare the calculated t-value with the tabulated values at the 5% and 1% levels for (n − 1) degrees of freedom; if it is greater than or equal to the tabulated value, reject the null hypothesis
Calculation
t = Σd / √{[n·Σd² − (Σd)²] / (n − 1)}
Where,
- d = algebraic difference between the paired scores (x₁ − x₂)
- Σd = algebraic sum of the differences
- Σd² = sum of the squares of the differences
- n = number of pairs of scores
- The t-value has (n − 1) degrees of freedom
Worked example 1: panel ratings of two samples
Ten panelists rated samples A and B. Differences d (A − B): −2, −1, 3, 5, 6, 0, −1, 3, 5, −2; d²: 4, 1, 9, 25, 36, 0, 1, 9, 25, 4.
Σd = 16; Σd² = 114; n = 10
t = 16/√[(10 × 114 − 16²)/9] = 16/√(884/9) = 16/9.91 = 1.614
With 9 degrees of freedom a value of 2.26 is required for significance at the 5% level (two-tailed). Hence the null hypothesis is not questioned and the difference between the two sample means does not differ significantly.
Worked example 2: moisture by two methods
Ten analysts determined moisture by two different methods. Differences d (Method 1 − Method 2): 0.2, −0.4, 0.2, 0.2, 0.4, 0.5, −0.4, −0.1, −0.2, 0.0.
Σd = 0.4; Σd² = 0.90; n = 10
t = 0.4/√[(10 × 0.90 − 0.4²)/9] = 0.4/√(8.84/9) = 0.4/0.9911 = 0.404
With 9 degrees of freedom a value of 2.26 is required for significance even at the 5% level; hence the difference between the sample means is called not significant.
Note: the source prints analyst I’s difference as 0.2, but 2.7 − 2.9 = −0.2; the source’s Σd = 0.4, Σd² = 0.90 and t = 0.404 all require −0.2 (the printed list with +0.2 sums to 0.8).
Precautions
- Use the paired test only when the two sets of scores are genuinely related (paired); for independent lots use the two-sample t-test.
- The null hypothesis is that the mean of the differences is zero.
- The t-test and the F-test should not be used for acceptance of lots.
References
Ranganna, S., Handbook of Analysis and Quality Control for Fruit and Vegetable Products, 2nd edition.