Coefficient of Correlation
-
Calculate the value of correlation coefficient and interpret it.
Pearson’s correlation coefficient between two variables is defined as the covariance of the two variables divided by the product of their standard deviations.
\[r = \dfrac{\Sigma X Y}{n\sigma_x \sigma_y}\] or, \[r = \dfrac{\Sigma X Y}{\sqrt{\Sigma X^2 \Sigma Y^2}}\] where,
X = deviation from mean, = x- \(\bar{x}\)
Y = deviation from mean, = y- \(\bar{y}\)
\(\sigma_x\), \(\sigma_y\) = standard deviation of x and y series
n = no. of values of the two variables.
The correlation coefficient ranges from -1 to 1.
\[\large r^{2}= b_{xy}* b_{yx}\]
-
If the points are perfectly aligned in a straight line, then r = 1 (for positive slope)
-
If the points are perfectly aligned in a straight line, then r = -1 (for negative slope)
-
For random points which are scattered without any pattern, r = 0
where r = Karl Pearson’s coefficient of correlation