Question Video: Calculating a Correlation Coefficient from Summary Statistics | Nagwa Question Video: Calculating a Correlation Coefficient from Summary Statistics | Nagwa

Question Video: Calculating a Correlation Coefficient from Summary Statistics Mathematics • Third Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

A data set can be summarized by the following: 𝑛 = 8, βˆ‘π‘₯ = 78, βˆ‘π‘¦ = βˆ’73, βˆ‘π‘₯𝑦 = βˆ’752, βˆ‘π‘₯Β² = 792, and βˆ‘π‘¦Β² = 735. Calculate the product-moment correlation coefficient for this data set, giving your answer correct to three decimal places.

03:34

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.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy