Given:
n = 10
Σdxdy = 3044
Σdx = −17 assumed (instead of −170 see note below)
Σdy = −20
Σdx2 = 2264
Σdy2 = 8288
Hence, Karl Pearson's coefficient of correlation is 0.7.
Note:
1. If we take Σdx equal to −170, then the calculation of Karl Pearson's coefficient of correlation is as follows:
Since, the square root of a negative number is not defined among the set of real numbers, thus we have assumed Σdx as −17.
2. The answer as per the book is 0.78 and the answer as per our calculation is 0.70. The difference in the answer may be due to the assumption (i.e. Σdx = −17) made by us.