Video Transcript
A data set can be summarized by the following: π is equal to eight, the sum of the π₯-values in the data set equals 78, the sum of the π¦-values equals negative 73, the sum of the product of the π₯- and π¦-values equals negative 752, the sum of the π₯-values squared equals 792, and the sum of the π¦-values squared equals 735. Calculate the product-moment correlation coefficient for this data set, giving your answer correct to three decimal places.
Okay, so in this example, we have a set of data with eight data points. Thatβs what it means that π equals eight. Each of these points has an π₯- as well as π¦-value. So weβre talking about a bivariate data set. If we add up all eight of the π₯-values β thatβs what this Greek letter β indicates, a sum β then we get a total of 78. Likewise, we can add up all of the π¦-values and get this answer, and so forth for the rest of these sums. It turns out that all of this information will be useful to us in calculating this product-moment correlation coefficient.
Another name for this is the Pearson correlation coefficient. This coefficient is a number that indicates just how well the one variable in the data set correlates with the other. The correlation coefficient in general can be as low as negative one and as great as positive one. These coefficient values represent perfect inverse correlation or perfect direct correlation, respectively. And then a Pearson correlation coefficient of zero indicates that the variables are not correlated with one another at all.
Itβs possible to calculate mathematically this correlation coefficient, sometimes called π or π sub π₯π¦. Itβs given by this expression. In our numerator, we have the sum of the product of the π₯- and π¦-values of our data set. And from this, we subtract the number of points in the data set multiplied by the average π₯-value and the average π¦-value. Then in the denominator, we have the square root of the sum of the π₯-values in our data set squared minus the number of points in the data set multiplied by the average π₯-value squared all multiplied by the square root of the same thing for the π¦-values.
Considering this equation overall, notice that we could exchange π₯ with π¦ and π¦ with π₯ and π sub π₯π¦ would come out the same. That is, given a set of bivariate data β data with two variables β whether we call the one variable π₯ and the other π¦ or π¦ then π₯ makes no difference as far as the Pearson correlation coefficient is concerned. Anyway, weβve been given enough information to calculate π sub π₯π¦ for this given data set.
Before we plug these values in though, letβs note that the average π₯-value of a data set equals the sum of all the π₯-values divided by π, the number of data points. And similarly, the average π¦-value of the data set is given by this expression. We can write our product-moment correlation coefficient or Pearson correlation coefficient this way then. And then we substitute in all the given information.
We have the sum of the product of π₯ and π¦, the number of data points in the set, the average value of π₯, the average value of π¦, as well as the sum of the π₯-values squared and the sum of the π¦-values squared. When we enter this whole entire expression in our calculator, we get a result which to three decimal places is negative 0.864. We see then that these data points are inversely correlated and that this correlation is not far away from the extreme value of perfect inverse correlation. Negative 0.864 then is the product-moment or Pearson correlation coefficient of this data set.