Question
Question: Calculate the coefficient of correlation between \(x\) and \(y\) for the data x| 1| 2| 3| 4| 5| ...
Calculate the coefficient of correlation between x and y for the data
x | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
---|---|---|---|---|---|---|---|---|---|---|
y | 3 | 10 | 5 | 1 | 2 | 9 | 4 | 8 | 7 | 6 |
A) 0.12
B) 0.19
C) 0.22
D) 0.62
Solution
To calculate the coefficient to correlation, we will be using Karl Pearson’s coefficient of correlation which is given by rxy=n∑xi2−(∑xi)2n∑yi2−(∑yi)2n∑xiyi−∑xi∑yi. Since there are ten terms, n=10. A table is drawn to find the required terms to be substituted in Karl Pearson’s coefficient of correlation equation and do further simplification.
Complete step-by-step answer:
We need to find the correlation coefficient between x and y.
Karl Pearson’s coefficient of correlation is given as
rxy=n∑xi2−(∑xi)2n∑yi2−(∑yi)2n∑xiyi−∑xi∑yi
Where n is the number of terms.
xi is the sum of values of x.
yi is the sum of values of y.
Now, find the values,
x | y | x2 | y2 | xy |
---|---|---|---|---|
1 | 3 | 1 | 9 | 3 |
2 | 10 | 4 | 100 | 20 |
3 | 5 | 9 | 25 | 15 |
4 | 1 | 16 | 1 | 4 |
5 | 2 | 25 | 4 | 10 |
6 | 9 | 36 | 81 | 54 |
7 | 4 | 49 | 16 | 28 |
8 | 8 | 64 | 64 | 64 |
9 | 7 | 81 | 49 | 63 |
10 | 6 | 100 | 36 | 60 |
∑xi=55 | ∑yi=55 | ∑xi2=385 | ∑yi2=385 | ∑xiyi=321 |
Substitute the values in the formula,
⇒rxy=10×385−(55)210×385−(55)210×321−55×55
Simplify the terms,
⇒rxy=3850−3025×3850−30253210−3025
Subtract the values,
⇒rxy=825×825185
We know that,
a×a=(a)2=a
Use this formula in the denominator,
⇒rxy=825185
Divide numerator by the denominator,
∴rxy=0.22
Hence, option (C) is correct.
Note: The degree of correlation can be determined as follows:
There will be a perfect correlation between two variables if the value of the correlation coefficient is near ±1, that is, as one variable increases, the other variable tends to also increase (if positive) or decrease (if negative).
There will be a high degree of correlation or strong correlation between two variables if the value of the correlation coefficient lies between ±0.5 and ±1.
There will be a moderate degree of correlation or medium correlation between two variables if the value of the correlation coefficient lies between ±0.3 and ±0.49.
There will be a low degree of correlation or a small correlation between two variables if the value of the correlation coefficient lies below ±0.29.
There will be no correlation between the two variables if the value of the correlation coefficient is zero.