In short
The correlation r measures the direction and strength of a linear relationship between two quantitative variables. It is always between −1 and 1: values near ±1 mean the points lie close to a line; values near 0 mean a weak linear relationship. r has no units, doesn't change if you swap x and y or change units, and can be misleading for curved patterns. Correlation does not imply causation.
What you need to know
- Interpret the correlation r in context.
- State the properties of r.
- Explain why r describes only linear relationships.
- Explain why a strong correlation does not establish causation.
What r measures
r averages the products of the z-scores of x and y. When above-average x values go with above-average y values (and below with below), most products are positive, so r is positive. You will almost always find r with technology; the formula explains what it measures.
For the 10 students in topic 5.1, r = 0.95. Interpretation: there is a strong, positive, linear relationship between hours studied and test score for these students.
Properties of r
- −1 ≤ r ≤ 1. r = ±1 only when all points lie exactly on a line.
- The sign gives the direction; the size (|r|) gives the strength.
- r has no units, and changing units (hours to minutes, marks to percentages) doesn't change it.
- Swapping x and y doesn't change r.
- r measures linear relationships only: a perfect curve can have r near 0.
Example: the height of a ball thrown upward against time follows a perfect parabola, but because it rises and then falls, r could be close to 0. Always look at the scatterplot before interpreting r. A value like r = 0.2 tells you the linear relationship is weak, not that there is no relationship.
r is also sensitive to a point far from the rest of the data: a single unusual point can make r much larger or smaller. Another reason to look at the graph first.
Correlation is not causation
Across Indian cities, the number of fans sold in a month and the number of cold drinks sold are strongly positively correlated. Fans don't cause cold-drink purchases; hot weather increases both. A variable like this, related to both x and y, is a lurking (confounding) variable.
Even a correlation of 0.95 between study hours and scores doesn't prove that studying more causes higher scores. Students who choose to study more might differ in motivation, prior knowledge or sleep. To show causation, randomly assign subjects to different amounts of the explanatory variable.
Key terms
- Correlation r
- A number from −1 to 1 measuring the direction and strength of a linear relationship.
- Lurking variable
- A variable not studied that affects both x and y and can create an association.
- Linear relationship
- A pattern in which points scatter around a straight line.
- Perfect correlation
- r = 1 or −1; all points lie exactly on a line.
Common mistakes
'r = 0 means no relationship.'
r = 0 means no linear relationship; a curve is still possible.
'r = 0.9 means 90% of points are on the line.'
r measures strength of linear association; it is not a percentage.
Concluding causation from a high r.
Correlation alone never shows causation.
How this topic is tested
- Look at the scatterplot before using r.
- Interpret r with 'linear' and the variable names.
- When asked about causation, name a plausible lurking variable.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
Which value of r shows the strongest linear relationship?
Question 2 · SP 3 · Analyze Data
Heights are converted from centimetres to inches. What happens to r between height and weight?
Question 3 · SP 4 · Interpret Results
A scatterplot shows a clear U-shaped pattern and r = 0.03. The best conclusion is:
Question 4 · SP 4 · Interpret Results
Across schools, the number of computers and average test score have r = 0.7. A principal says buying computers will raise scores. What's the main problem?
Question 5 · SP 3 · Analyze Data
Which statement about r is true?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Exploring data · 4 points
For 25 randomly chosen days, a city records the number of air-conditioners sold and the number of hospital visits for heat exhaustion. The correlation is r = 0.81, and the scatterplot is roughly linear.
- (a) Interpret r in context.
- (b) A reporter says air-conditioners cause heat exhaustion. Explain why this is not justified.
- (c) If sales were recorded in hundreds of units instead of units, what would r be? Explain.
Scoring guide: one point for each of the following
Part (a)
- There is a strong, positive, linear relationship between daily air-conditioner sales and heat-exhaustion hospital visits.
Part (b)
- These are observational data, so correlation does not show causation;
- a lurking variable, daily temperature, increases both sales and hospital visits.
Part (c)
- Still 0.81, because r does not depend on the units of measurement.
Connected topics
Frequently asked questions
Do I need to calculate r by hand?
Rarely. Know what it measures and how to read it from calculator or computer output.
What's the difference between r and r²?
r gives direction and strength; r² (topic 5.5) is the proportion of variation in y explained by the line.
Can r be computed for categorical data?
No. Both variables must be quantitative.