Worked examples · Sheet 1
Paired data and centered sums
Theory used:Paired dataCentered sums
Go to: Exercise 1Exercise 2
Exercise 1
For the pairs , , and , calculate the means, , , and .
Add each column and divide by to obtain and . In the original pair order the predictor deviations are and the response deviations . For and , sum each variable’s squared deviations separately.
For the cross-product retain the two deviations from the same unit, as required for paired data. The first observation has both measurements below their respective means, so its cross-product is positive and equals . The second has predictor equal to its mean and the third has response equal to its mean, so each contributes zero. Consequently .
In the figure the dashed lines divide the plane into quadrants about the point of means. A point in the lower-left or upper-right quadrant contributes positively to , while points on the dashed lines contribute zero.
Exercise 2
A table of four observations reports , , , , and . Recover the three centered sums without reconstructing the pairs.
The column totals give the means even without the individual data because and with .
Use the identities and obtained by expanding the squares and products of deviations. From the sum of squares of subtract , the contribution four values equal to would make. Likewise subtract for . From the sum of cross-products subtract , the combined contribution of the means in the expansion.
The results and are positive because each sums squared deviations that are not all zero. The result shows that products of same-sign deviations outweigh the others in the four pairs. The observed linear association is positive.