Correlation

By Jude Wallis · Updated

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

Correlation is a single number, written rr, that reports how tightly the points of a scatterplot cluster around a straight line and which way that line tilts. It is the average product of standardized values, 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 the explanatory variable. Both variables have to be quantitative, and it is the standardizing that strips the units out.

Five afternoons at a drinks stall pair the high temperature in degrees Celsius, 20, 22, 24, 26 and 28, with cups sold, 15, 21, 18, 27 and 30. Those data give r=0.9150r = 0.9150. Rewrite the temperatures in Fahrenheit as 68, 71.6, 75.2, 78.8 and 82.4 and rr is still 0.9150, while the fitted slope drops from 1.8 cups per degree to 1.0. Swap the roles of the two variables so that cups predicts temperature and rr comes out at 0.9150 again, because the formula treats xx and yy symmetrically. The slope does not.

Here is the sentence to stop writing: "r=0.90r = 0.90 is twice as strong as r=0.45r = 0.45." Correlation is not on a ratio scale, so the arithmetic of everyday comparison does not apply to it. Squaring turns each value into a share of variation explained, and 0.902=0.810.90^2 = 0.81 against 0.452=0.20250.45^2 = 0.2025, four times as much rather than twice. The same mistake produces "r=0.90r = 0.90 means 90 percent of the points lie on the line", which describes nothing rr measures.

Two limits matter more than any threshold for what counts as strong. rr sees straight-line patterns only, so a tight curve can still return a value near 0. And rr is not resistant: one point far from the rest moves it on its own, which is why you read the scatterplot before you trust the number.

Correlation is topic 5.2 in Unit 5 of the Fall 2026 AP Statistics course. Association is the wider idea that rr is one measure of, and the two are set against each other on the correlation vs association page.

Correlation is the entire mechanism behind diversification. Combining assets reduces risk only when their returns are less than perfectly correlated, so the value of rr between two holdings decides whether owning both helps at all: diversification.

Where this comes up

27 pages on the site use this term.

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