0:00
Hello.
00:01
So here we are trying to calculate the correlation coefficient between the distance and price.
00:06
So the correlation coefficient, r, is going to be calculated as the sum of xx times zy divided by n minus 1.
00:15
Now z x is going to be the z score for the x variable, and zy is going to be the z score for the y variable.
00:22
So the value of z x is calculated as x minus x bar divided by the static deviation.
00:28
So we have to first find the mean of the x and y's.
00:33
So we get that x bar.
00:36
The mean is going to be equal to the sum of all the x is divided by n.
00:41
That is going to be equal to 14 ,053 divided by five.
00:51
So x bar here is equal to 2 ,810 .6.
00:55
And then we get that y bar is the sum of the ys divided by n.
01:00
That's going to be 953 divided by 5, which is going to be equal to 190 .6.
01:09
And then we can take each of the y minus y bar squared and take the sum to find the standard deviation.
01:19
So the standard deviation we know for x is going to be equal to, well, the sum of each x minus x bar squared divided by n minus 1 and then taking the square root.
01:33
So that's going to be equal to 1149 .17.
01:41
And then likewise, the standard deviation of y is equal to the sum of each y minus y bar squared by n minus 1, taking the square root, giving us 72 .02.
01:53
So then to find the correlation coefficient r is going to be equal to the sum of xx times z, which is going to give us 2 .7409.
02:09
And then we divide that by n minus 1.
02:11
We divide that by 4, giving us the correlation coefficient is 0 .69.
02:18
So therefore, the correlation coefficient between the distance and the price is going to be 0 .69.
02:25
Then in b, we want to calculate the correlation coefficient using the price as the x variable and distance as the y variable...