AP® Statistics · Unit 5 · Topic 5.2

What Correlation Measures

Correlation r is the average of the products of standardized x and y values for every point, giving one number between -1 and 1 that measures how strongly two variables move together in a straight-line pattern.

A scatterplot full of dots is hard to summarize in words, but if the dots roughly trace a line, one number can capture how tightly they hug it and which way it tilts. That number is r. To build it, turn every x and every y into a z-score, so each measures how many standard deviations a value sits above or below its own mean. Multiply each point's zx by its zy, then average those products across all the points. That average is r.

Think about what the sign of each product tells you. A point above-average in both x and y, or below-average in both, gives a positive product, since two negatives multiply to a positive. A point that's above-average in one and below in the other gives a negative product. If most points fall in the quadrants where x and y move together, positive products dominate and r comes out positive and close to 1. If points scatter evenly across all four quadrants, the positive and negative products cancel, and r lands near 0. Points far from both means, in standardized units, contribute the most weight, which is why outliers can swing r a lot.

Correlation only ever measures straight-line association. That restriction is exactly why the next idea, the least-squares regression line, exists: r tells you how well a line fits, and the line itself gives you the equation for predicting y from x. Residuals later check whether that linear story was ever the right one to tell.

Key terms

correlation (r)
A number between -1 and 1 measuring the strength and direction of a linear relationship between two quantitative variables.
z-score
A standardized value showing how many standard deviations a data point is above or below its mean.
quadrant
One of four regions formed by the vertical and horizontal lines through the means of x and y on a scatterplot.
linear relationship
A pattern between two variables that is well described by a straight line, as opposed to a curve.

Watch it explained

  1. How it worksWalk me through r as an average of products of z-scores, quadrant by quadrant.
  2. Worked exampleFind r for the pairs (1,2), (2,4), (3,5), (4,4), and (5,7) using standardized values.
  3. Common mistakeWhy isn't a correlation of 0 evidence that two variables are unrelated?

Check yourself

Your turn1 of 2
Correlation r is computed as the average of the products of standardized x and y values for each point. If these products are 0.35, 0.27, 0.78, and -0.4 for four data points, find r.

End of topic.