Correlation coefficient (r) explained
By Jude Wallis · Published
The correlation coefficient is a number from to that measures the direction and strength of the linear association between two quantitative variables. Values near or mean the points fall close to a line. Values near 0 mean a weak linear association.
AP Statistics: Unit 5 (topics 5.2 Correlation). Correlation is Unit 5, topic 5.2 in the Fall 2026 AP Statistics course, where r describes the direction and strength of a linear association between two quantitative variables.
What the correlation coefficient measures
The correlation coefficient, written , summarizes a scatterplot of two quantitative variables in one number. It reports two things about the linear pattern:
- Direction. A positive means that as increases, tends to increase. A negative means that as increases, tends to decrease.
- Strength. The closer is to or , the more tightly the points cluster around a straight line. The closer is to 0, the weaker the linear association.
| Value of | What the scatterplot looks like |
|---|---|
| Every point on a line with positive slope | |
| near | Points close to a rising line |
| near | Little or no linear pattern |
| near | Points close to a falling line |
| Every point on a line with negative slope |
Words like strong, moderate, and weak are judgments. There are no official cutoffs, so describe strength from the scatterplot and the value of together.
The correlation coefficient formula
- is the number of data points, each a pair .
- ("x-bar") and ("y-bar") are the sample means of the two variables.
- and are the sample standard deviations of the two variables.
- is the z-score of , and is the z-score of .
So is close to an average of the products of the z-scores. A point that is above the mean in both variables, or below the mean in both, has a positive product and pushes up. A point that is above the mean in one and below in the other has a negative product and pulls down.
In practice technology computes . Working one example by hand shows why the properties below hold. A longer hand calculation is in how to find r by hand.
When to use correlation
Use when all three of these hold:
- Both variables are quantitative. Correlation between a categorical variable such as eye color and anything else has no meaning.
- The scatterplot shows a roughly linear form. A strong curved pattern can produce an near 0, and a clearly curved pattern can also produce an near 1.
- There are no outliers distorting the pattern, or you have checked their effect. Like the mean and standard deviation it is built from, is nonresistant.
Always look at the scatterplot first. The number cannot tell you whether a line is the right model. A residual plot can.
How to interpret r in context
An interpretation states strength, direction, the word linear, and both variables in context:
"There is a strong, positive, linear association between hours studied and quiz score."
Two cautions on wording:
- Say "association", not "causes". Correlation alone never shows that changes in cause changes in . See correlation vs causation.
- is not a percentage. An of 0.96 does not mean 96% of anything. The percentage interpretation belongs to , the coefficient of determination: about 92.4% of the variation in quiz score in the worked example is explained by the linear relationship with hours studied, since . See r vs r-squared.
Properties of r
- Always between and , inclusive.
- No units. The z-scores in the formula have no units, so has none either.
- Unchanged by a change of units. Converting hours to minutes, or points to percent, leaves exactly the same. In the worked example, measuring study time in minutes still gives .
- Symmetric. Swapping which variable is and which is does not change .
- Same sign as the slope of the least-squares regression line. The slope is , and standard deviations are positive.
- Measures linear association only. It says nothing reliable about curved relationships.
- Nonresistant. One unusual point can raise or lower noticeably. Try moving a point in the regression and influential point interactive.
Common mistakes
- Claiming causation. A strong correlation in observational data can come from a third variable related to both.
- Calling the form linear because is large. A high does not prove a linear model is appropriate. Check the scatterplot and the residual plot.
- Reading as "no relationship". It means no linear association. A clear curved relationship can have near 0. See does a correlation of zero mean no relationship.
- Confusing with the slope. A steep line can have a small and a shallow line can have a large one. Slope has units and does not.
- Forgetting the sign when recovering from . Take the square root, then attach the sign of the slope.
- Leaving out "linear" or the context in the interpretation sentence.
The correlation coefficient in AP Statistics
Correlation is Unit 5, topic 5.2 in the Fall 2026 AP Statistics course. Unit 5, Regression Analysis, carries 10-20% of the multiple-choice section.
Be ready to estimate and interpret from a scatterplot, find from regression output (often as the square root of with the sign of the slope), explain what happens to when units change or a point is added or removed, and separate association from causation.
Compute with the regression calculator, then work the correlation and residuals practice set and the scatterplots practice set.
Finding r for hours studied and quiz score
Six students reported hours studied () and quiz score in points (): (1, 52), (2, 60), (3, 57), (4, 70), (5, 74), (6, 83). Find and interpret the correlation coefficient.
Find the means: hours and points.
Find the sample standard deviations. The squared deviations of sum to 17.5, so hours. The squared deviations of sum to 682, so points.
Standardize each value. The z-scores for are , , , , , . The z-scores for are , , , , , .
Multiply the paired z-scores: , , , , , . Every product is positive because each student is on the same side of the mean in both variables.
Add the products: about .
Divide by : .
Check with the equivalent form .
. There is a strong, positive, linear association between hours studied and quiz score for these six students. This does not show that studying more causes higher scores.
Frequently asked questions
What is a good correlation coefficient?
There is no single good value. How large needs to be depends on the field and the purpose. In general, values closer to or indicate a stronger linear association, and the scatterplot should always be checked before trusting the number.
What does a correlation coefficient of 0 mean?
It means there is no linear association between the two variables. It does not mean there is no relationship. Points that follow a symmetric curve, such as a U shape, can have equal to 0 while is closely related to .
Can the correlation coefficient be greater than 1?
No. is always between and inclusive. If a calculation gives a value outside that range, there is an arithmetic error, often from using in one place and in another.
Does a negative correlation mean a weak relationship?
No. The sign gives direction and the distance from 0 gives strength. is a stronger linear association than . See positive vs negative correlation.