Correlation

Correlation measures the strength and direction of the linear relationship between two quantitative variables on a unit-free scale from -1 to 1.

Correlation reports how tightly the points in a scatterplot hug a straight line and which way that line tilts, and it carries no units, so switching from inches to centimeters leaves it unchanged. The value rr is computed as r=1n1(xixˉsx)(yiyˉsy)r = \frac{1}{n-1}\sum \left(\frac{x_i - \bar{x}}{s_x}\right)\left(\frac{y_i - \bar{y}}{s_y}\right), where xˉ\bar{x} (read x-bar) and sxs_x are the mean and standard deviation of xx. The catch is that rr sees straight-line patterns only: the five points (2,4)(-2, 4), (1,1)(-1, 1), (0,0)(0, 0), (1,1)(1, 1), (2,4)(2, 4) follow y=x2y = x^2 perfectly, yet r=0r = 0. Correlation is also not resistant, so one far-out point can drag rr up or down on its own.

Where this comes up

19 pages on the site use this term.

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