Calculate the correlation coefficient between X and Y and comment on their relationship X: 1, 3, 4, 5, 7, 8 Y: 2, 6, 8, 10, 14, 16 (Ans. r = 1)
Step 1: Construct the table and calculate required values
| X | Y | X² | Y² | XY |
|---|---|---|---|---|
| 1 | 2 | 1 | 4 | 2 |
| 3 | 6 | 9 | 36 | 18 |
| 4 | 8 | 16 | 64 | 32 |
| 5 | 10 | 25 | 100 | 50 |
| 7 | 14 | 49 | 196 | 98 |
| 8 | 16 | 64 | 256 | 128 |
| ∑X=28 | ∑Y=56 | ∑X²=164 | ∑Y²=656 | ∑XY=328 |
N = 6
Step 2: Apply the correlation coefficient formula
r = [∑XY - (∑X)(∑Y)/N] / [²/N) × ²/N)]
Numerator = 328 - ()/6 = 328 - 261.33 = 66.67
Denominator = × = × = .33 × .33 = = 66.67
Step 3: Calculate r
r = 66.67/66.67 = 1
Step 4: Comment on the relationship
Since r = 1, there is a perfect positive correlation between X and Y. There exists an exact linear relation between the two variables. The value of r lies between minus one and plus one, and r = 1 indicates perfect correlation. Both X and Y move in the same direction.
Explanation
This question tests the calculation of Karl Pearson's correlation coefficient. The data shows Y = 2X for all values, indicating a perfect linear relationship. The textbook context confirms that 'If r = 1 or r = -1 the correlation is perfect and there is exact linear relation.' The step deviation method or direct method both yield r = 1, as the magnitude of r is unaffected by change of origin and scale.
Solution Steps
Step 1: Calculate ∑X=28, ∑Y=56, ∑X²=164, ∑Y²=656, ∑XY=328 with N=6
Step 2: Calculate numerator = ∑XY - (∑X)(∑Y)/N = 328 - 261.33 = 66.67
Step 3: Calculate denominator = ²/N) × ²/N) = .33 × .33 = 66.67
Step 4: r = 66.67/66.67 = 1, indicating perfect positive correlation with exact linear relation