Correlation coefficient

By Jude Wallis · Published

The correlation coefficient r measures the direction and strength of a linear relationship between two quantitative variables, always between -1 and 1.

The correlation coefficient rr reports two things and nothing else: which way a cloud of points tilts, given by its sign, and how tightly the cloud hugs a straight line, given by its size. It is confined to the interval from 1-1 to 11, and it reaches either end only when every point lies exactly on one line. It has no units and it does not change if you swap which variable is explanatory.

Six students study 1, 2, 3, 4, 5 and 6 hours and score 60, 72, 65, 78, 71 and 86. For these points r=0.8107r = 0.8107, a fairly strong positive linear association, and squaring it gives r2=0.657r^2 = 0.657, so the least-squares line accounts for about 66 percent of the variation in the scores.

Two readings of 0.8107 are wrong. It is not a percentage of points on the line, and rr is not on a ratio scale, so "r=0.8r = 0.8 is twice as strong as r=0.4r = 0.4" fails. Halve this correlation to r=0.4054r = 0.4054 and the variation explained falls from 0.657 to 0.164, roughly a quarter as much rather than half. Strength comparisons belong to r2r^2, not to rr.

The boundary is the word linear. An rr near 0 rules out a net straight-line trend and rules out nothing else. When the xx-values are spaced symmetrically about xˉ\bar{x} (x-bar) and yy depends only on the distance from that center, as on a parabola with its vertex at xˉ\bar{x}, the positive and negative contributions cancel exactly and r=0r = 0 while yy is a perfect function of xx. The symmetry is part of the condition, not decoration: the xx-values 0, 1, 2, 3, 6 have xˉ=2.4\bar{x} = 2.4, and the parabola y=(x2.4)2y = -(x - 2.4)^2 centered there gives r=0.6118r = -0.6118 instead. That case is worked through in does a correlation of zero mean no relationship.

Correlation is topic 5.2 in Unit 5, Regression Analysis.

Where this comes up

More regression and correlation terms, or browse the full statistics glossary.