Say x = how many cups of coffee a person had yesterday and y = how many cups of coffee a person had today. Say a sample of three people results in the data pairs
x y
1 3
2 2
3 1
What is the sample correlation of x and y?
X= cups of coffee a person had yesterday |
Y= cups of coffee a person had today |
||||||
1 |
3 |
-1 |
1 |
-1 |
1 |
1 |
|
2 |
2 |
0 |
0 |
0 |
0 |
0 |
|
3 |
1 |
1 |
-1 |
-1 |
1 |
1 |
|
Total |
6 |
6 |
0 |
0 |
-2 |
2 |
2 |
mean |
2 |
2 |
The coefficient of correlation between two variables can be obtained by
Hence the sample correlation coefficient between x and y is -1.
Get Answers For Free
Most questions answered within 1 hours.