Correlation Co-efficient
A correlation coefficient is a statistical measure of the degree to which changes to the value of one variable predict change to the value of another. In positively correlated variables, the value increases or decreases in tandem. In negatively correlated variables, the value of one increases as the value of the other decreases.
Correlation coefficients are expressed as values between +1 and -1.
A coefficient of +1 indicates a perfect positive correlation: A change in the value of one variable will predict a change in the same direction in the second variable.
A coefficient of -1 indicates a perfect negative: A change in the value of one variable predicts a change in the opposite direction in the second variable. Lesser degrees of correlation are expressed as non-zero decimals. A coefficient of zero indicates there is no discernable relationship between fluctuations of the variables.
Formula
r=N∑xy−(∑x)(∑y)[N∑x2−(∑x)2][N∑y2−(∑y)2]√r=N∑xy−(∑x)(∑y)[N∑x2−(∑x)2][N∑y2−(∑y)2]
Where −
· NN = Number of pairs of scores
· ∑xy∑xy = Sum of products of paired scores.
· ∑x∑x = Sum of x scores.
· ∑y∑y = Sum of y scores.
· ∑x2∑x2 = Sum of squared x scores.
· ∑y2∑y2 = Sum of squared y scores.
Example
Problem Statement:
Calculate the correlation co-efficient of the following:
X | Y |
1 | 2 |
3 | 5 |
4 | 5 |
4 | 8 |
Solution:
∑xy=(1)(2)+(3)(5)+(4)(5)+(4)(8)=69∑x=1+3+4+4=12∑y=2+5+5+8=20∑x2=12+32+42+42=42∑y2=22+52+52+82=118r=69−(12)(20)4(42−(12)24)(118−(20)24√=.866∑xy=(1)(2)+(3)(5)+(4)(5)+(4)(8)=69∑x=1+3+4+4=12∑y=2+5+5+8=20∑x2=12+32+42+42=42∑y2=22+52+52+82=118r=69−(12)(20)4(42−(12)24)(118−(20)24=.866