Scatter Plots and Correlation
A scatter plot shows whether two measurements tend to rise and fall together. The correlation boils that down to one number between and : its sign says which way the points trend, and its size says how tightly they hug a straight line.
What the symbols mean
- Correlation coefficient
+1: perfect upward line; −1: perfect downward line; 0: no linear trend.
- SD of x
Standardizes the x values.
- SD of y
Standardizes the y values.
Explanation
Correlation is simply a measure of how closely two things move together in a straight-line way, like study hours and exam scores. The formula looks intimidating, but it's built from pieces you know: (the z-score of , how far above or below average it is) times (the z-score of ), added up over all the points, then divided by (roughly an average). So is basically the average product of z-scores. Bear with it; the next paragraph shows why that's such a natural thing to compute.
Reading : think about what that product does. If a point is above average in both and , both z-scores are positive and the product is positive. If it's below average in both, two negatives make a positive again. Those are the upper-right and lower-left quadrants around the means, and they push up. A point that's high in one and low in the other gives a negative product and pulls down. So ends up positive when the points mostly sit in the "both high or both low" quadrants, and negative when they don't.
Properties:
- has no units, and changing units (inches to centimeters) doesn't change it. That's because it's built from z-scores, which have already divided the units out.
- only measures linear association. A perfect parabola can have .
- is sensitive to outliers.
A common mistake. When two variables are strongly correlated, it's tempting to conclude one causes the other. Correlation is not causation. Two variables can move together because a lurking variable drives both (bigger fires bring more firefighters and more damage), or by plain coincidence.
See it
Worked examples
Find for the points , , , , .
- 1
The means are and . The products of deviations sum to .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find for the points , , , , .
Which correlation shows the strongest linear relationship?
Heights are converted from inches to centimeters. What happens to ?
for a data set. Which is true?
Cities with more firefighters have more fire damage. Most likely:
Five students' study hours and exam scores are , , , and . Find the correlation .
The correlation between and is 0.9. What is the correlation between and ?
The hardest one here. Get it, and you've got this lesson.
Find the correlation of the points , , , , , which lie exactly on .
Where it's used
Finance tracks correlations between assets to diversify, medicine screens for risk factors, and data scientists check correlations before building models.