Skip to content

Business Mathematics and Basic Statistics · Ch 16 — Bivariate Statistics — Correlation and Regression

Pearson's Correlation Coefficient

2

Pearson's Correlation Coefficient

Covariance tells us the direction in which two variables move together, but its size is tied to whatever units xx and yy happen to be measured in, so a covariance of, say, 1.2 carries no meaning on its own — is that a strong relationship or a weak one? Karl Pearson's correlation coefficient fixes this by dividing the covariance by the product of the two variables' own standard deviations, which cancels out the units and squeezes the result onto a fixed scale.

Note

Pearson's Correlation Coefficient

r=Cov(x,y)σxσy=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2∑(yi−yˉ)2r = \dfrac{\text{Cov}(x,y)}{\sigma_x\sigma_y} = \dfrac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sqrt{\sum(x_i-\bar{x})^2}\sqrt{\sum(y_i-\bar{y})^2}}

where σx,σy\sigma_x, \sigma_y are the standard deviations of xx and yy. Always −1≤r≤1-1 \le r \le 1.

  • rr close to +1+1: a strong positive linear relationship (as xx increases, yy tends to increase too).
  • rr close to −1-1: a strong negative linear relationship (as xx increases, yy tends to decrease).
  • rr close to 00: little or no linear relationship (the variables may still be related in a non-linear way that rr does not detect).

The geometric point of view. Plotting every pair (xi,yi)(x_i, y_i) as a point on a graph gives a scatter diagram, and Pearson's rr has a direct visual meaning on it: the closer the plotted points cluster around a single straight line, the closer ∣r∣|r| is to 1; an upward-sloping cluster gives a positive rr, a downward-sloping cluster gives a negative rr, and a shapeless cloud of points with no visible line gives an rr close to 00. This geometric picture is exactly why rr is described as measuring the strength of linear association — it is, in effect, measuring how tightly the data hugs its own best-fitting straight line.

Figure 1 — Scatter diagram of the advertising-expenditure-vs-sales data (Worked Example 1) with both regression lines and the mean point (x̄, ȳ) = (3, 4) marked, illustrating the geometric point of view of Pearson's correlation coefficient
Figure 1 — Scatter diagram of the advertising-expenditure-vs-sales data (Worked Example 1) with both regression lines and the mean point (x̄, ȳ) = (3, 4) marked, illustrating the geometric point of view of Pearson's correlation coefficient
…

Definition 1Pearson's Correlation Coefficient

A unit-free measure of the strength and direction of the linear relationship between two variables, r=Cov(x,y)/(σxσy)r = \text{Cov}(x,y)/(\sigma_x\sigma_y), alw …

Definition 2Scatter Diagram

A graph plotting every paired observation (xi,yi)(x_i, y_i) as a point; the shape and tightness of the resulting cloud of points is the geometric picture behind Pears …