Sub topic 11
Reading the Correlation Coefficient
This chapter assumes you know what a correlational study is, what a variable is, and how to compute a mean. You should also be comfortable reading a scatterplot. Here you will learn to read Pearson's r, to compute it, and to avoid the common mistakes in interpreting it.
What the coefficient tells you
A correlation coefficient is a single number that summarizes how two measured variables move together. The most common one is Pearson's r. It ranges from -1.00 to +1.00. It carries two pieces of information: a sign and a magnitude.
- The sign gives the direction. A positive r means that higher values on one variable tend to go with higher values on the other. A negative r means that higher values on one tend to go with lower values on the other.
- The magnitude is the distance from zero, ignoring the sign. It gives the strength. Values near 0 mean a weak or absent linear relationship. Values near -1 or +1 mean the points fall close to a straight line.
A negative r is not "worse" than a positive one. An r of -.60 is exactly as strong as an r of +.60. Only the direction differs.
Computing r in Python
The example below uses eight students. It records hours slept and quiz score. Neither variable is manipulated, so this is a correlational design.
from statistics import correlation # Python 3.10+
hours_slept = [5, 6, 7, 8, 9, 6, 7, 8]
quiz_score = [62, 65, 70, 78, 84, 60, 72, 80]
r = correlation(hours_slept, quiz_score)
print(f"Pearson r = {r:.2f}")The output is a strong positive value, about +.95. Students who slept more tended to score higher. The code gives no information about why. Sleep might improve recall, but motivated students might also sleep more regularly. The next chapter takes up that problem.
Rough guidelines for strength
Verbal labels vary across fields. A common rule of thumb for psychology is below. Treat it as a starting point, not a law.
| Absolute value of r | Common label |
|---|---|
| 0.00 to 0.10 | Negligible |
| 0.10 to 0.30 | Small or weak |
| 0.30 to 0.50 | Moderate |
| 0.50 and above | Large or strong |
Psychological variables are affected by many influences at once. For that reason, r values above .50 are uncommon in real data. A correlation of .30 can be meaningful, depending on the stakes and the cost of measurement.
r squared: shared variance
Squaring r gives the proportion of variability in one variable that is statistically accounted for by the other. For r = .30, r² = .09, so about 9% of the variance is shared. The other 91% is related to other factors or to measurement error.
This shows why strength is not linear. A correlation of .60 is twice as large as .30, but it shares four times as much variance (.36 versus .09).
Reading a scatterplot
The coefficient summarizes a scatterplot, and the plot can show things the number hides. Look at three features.
- Direction. The cloud of points slopes upward for positive r and downward for negative r.
- Tightness. Points hugging an imaginary line mean a high magnitude. A wide, round cloud means r near zero.
- Shape. Pearson's r measures only linear association. A curved pattern can produce r near zero even when the variables are strongly related.
Common errors and edge cases
Treating r = 0 as "no relationship"
Consider the relationship between arousal and performance. Performance is often lowest at very low and very high arousal and highest at moderate arousal, which makes an inverted U. A Pearson r over that whole range could be close to zero, although the two variables are clearly related. Always plot the data first.
Restricted range
If your sample covers only a narrow slice of one variable, r shrinks. Suppose you correlate SAT scores with college GPA, but you only have students at a highly selective university. Most of them have high SAT scores, so the observed correlation will be lower than it would be in the general population. The relationship has not vanished. The sample simply cannot show it.
Outliers
One extreme point can raise or lower r a great deal, especially in a small sample. The same eight students could produce a very different r if one student had a typo in their score. Check for outliers and decide, with a stated reason, whether they are data errors or real observations.
Pooling different groups
Combining subgroups can create, remove, or reverse a correlation. If two groups differ on both variables, the pooled r may reflect group differences rather than the relationship within each group. This is a version of Simpson's paradox.
Reading too much into the sign of a small sample
With few observations, r bounces around from sample to sample. An r of .40 from ten people is much less trustworthy than an r of .40 from five hundred. A later chapter covers significance testing and confidence intervals for this reason. For now, remember that r is a descriptive statistic of your sample. It is only an estimate of the population value.
Reading r as causation
A strong r does not show that one variable causes the other. It is consistent with X causing Y, Y causing X, or a third variable causing both. Only an experiment with random assignment supports a causal claim.
A checklist for interpreting any r
- State the sign and say what it means in the units of the variables.
- State the magnitude and compare it with what is typical for the field.
- Look at the scatterplot for curvature, outliers, and subgroups.
- Ask whether the range of each variable is restricted.
- Note the sample size and how the sample was drawn.
- Avoid causal language.
Exercise
A researcher finds r = -.45 between daily hours of social media use and self-reported well-being in a sample of 300 adults. (a) Describe the direction and rough strength. (b) How much variance is shared? (c) Name one reason the researcher cannot conclude that social media use lowers well-being.
Show answer
(a) The relationship is negative and moderate: more hours of use tend to go with lower well-being. (b) r² = (-.45)² ≈ .20, so about 20% of the variance is shared. (c) Any of these is acceptable: people with low well-being may turn to social media (reverse direction), a third variable such as loneliness or stress may affect both, and no variable was manipulated or randomly assigned.
Exercise
A study of professional basketball players finds almost no correlation between height and points scored. Give two reasons this does not mean height is irrelevant to basketball skill.
Show answer
First, restricted range: professional players are all very tall, so there is little variation in height left to correlate with scoring. Second, the relationship may not be linear, or other factors such as position and playing time may swamp it. In the general population the relationship would likely be much stronger.