fbpx

What is the Coefficient of Correlation?

Coefficient of Correlation

Share This...

Coefficient of Correlation

The coefficient of correlation, also known as the correlation coefficient or Pearson’s correlation coefficient (denoted by ‘r’), is a statistical measure that quantifies the strength and direction of the linear relationship between two variables. The correlation coefficient ranges from -1 to 1, where:

  • A value of 1 indicates a perfect positive linear relationship between the variables, meaning that when one variable increases, the other also increases proportionally.
  • A value of -1 indicates a perfect negative linear relationship, meaning that when one variable increases, the other decreases proportionally.
  • A value of 0 suggests no linear relationship between the variables, meaning that the variables do not appear to be related in a linear manner.

The correlation coefficient is a widely used tool in finance, economics, and various other fields to analyze the relationship between different variables, such as stock prices, interest rates, or economic indicators.

It’s important to note that correlation does not imply causation. A high correlation between two variables indicates that they have a strong linear relationship, but it does not necessarily mean that changes in one variable cause changes in the other.

To calculate the correlation coefficient, you can use the following formula:

\(\large r = \frac{n(\Sigma xy) – (\Sigma x)(\Sigma y)}{\sqrt{[n\Sigma x^2 – (\Sigma x)^2][n\Sigma y^2 – (\Sigma y)^2]}} \)

where:

  • n is the number of data points.
  • Σxy is the sum of the product of each pair of x and y values.
  • Σx and Σy are the sums of x and y values, respectively.
  • Σx2 and Σy2 are the sums of the squares of x and y values, respectively.

When r is close to 1 or -1, it indicates a strong linear relationship between x and y. If rr is close to 0, it indicates little to no linear relationship between x and y.

Example of the Coefficient of Correlation

Let’s go through a small example to calculate the coefficient of correlation rr between two sets of data points.

Suppose we have the following pairs of xx and yy values:

x: 1, 2, 3, 4, 5
y: 2, 3, 5, 4, 6

Given these values, we can calculate the necessary sums:

  1. Σx
  2. Σy
  3. Σxy
  4. Σx2
  5. Σy2

Σx = 1 + 2 + 3 + 4 + 5 = 15
Σy = 2 + 3 + 5 + 4 + 6 = 20
Σxy = 1(2) + 2(3) + 3(5) + 4(4) + 5(6) = 60
Σx2 = 12 + 22 + 32 + 42 + 52 = 55
Σy2 = 22 + 32 + 52 + 42 + 62 = 90

Using the formula for r:

\(\large r = \frac{n(\Sigma xy) – (\Sigma x)(\Sigma y)}{\sqrt{[n\Sigma x^2 – (\Sigma x)^2][n\Sigma y^2 – (\Sigma y)^2]}} \)

And plugging in our values:

\(\large r = \frac{5(60) – (15)(20)}{\sqrt{[5(55) – (15)^2][5(90) – (20)^2]}} \)

Let’s break it down step-by-step:

Numerator:
5(60) − 15(20) = 300 − 300 = 0

Denominator:
5(55) − (15)2 = 275 − 225 = 50
5(90) − (20)2 = 450 − 400 = 50

\(\sqrt {50 × 50} = \sqrt {2500} ​= 50 \)

So,
\(r = \frac{0}{50} = 0 \)

The solution for this example is r = 0. This means that there’s no linear correlation between the two sets of data points.

Other Posts You'll Like...

Want to Pass as Fast as Possible?

(and avoid failing sections?)

Watch one of our free "Study Hacks" trainings for a free walkthrough of the SuperfastCPA study methods that have helped so many candidates pass their sections faster and avoid failing scores...