Pearson Correlation coefficient
r=∑(xi−xˉ)2∑(yi−yˉ)2∑(xi−xˉ)(yi−yˉ)
Let x be hand and y be height
xˉ=517+15+19+17+21=17.8
yˉ=5150+154+169+172+175=164
∑(xi−xˉ)(yi−yˉ)=(17−17.8)(150−164)+(25−17.8)(154−164)+(19−17.8)(169−164)+(17−17.8)(172−164)+(21−17.8)(175−164)=−26
∑(xi−xˉ)2=(17−17.8)2+(25−17.8)2+(19−17.8)2+(17−17.8)2+(21−17.8)2=64.8
∑(yi−yˉ)2=(150−164)2+(154−164)2+(169−164)2+(172−164)2+(175−164)2=506
Therefore
r=506∗64.8−26=−0.000793
Since we have 10 data points, the degrees of freedom are
10−2=8 The critical value for the correlation coefficient with 8 degrees of freedom is
−+0.632. We conclude that the correlation is significant if it is greater than the critical value. In our case, −0.000793>−0.632 therefore we can conclude that there is a significant correlation between hand and height
Comments
Dear Saksham, thank you for correcting us.
For person B hand = 15 not 25 this Change the whole answer.