Sub topic 10
Reading the Correlation Coefficient
This chapter assumes you understand variables, averages, and basic graphs. You will learn how to interpret Pearson’s correlation coefficient, usually written as r, and how to avoid common errors.
What the coefficient measures
A correlation coefficient summarizes the direction and strength of a linear relationship between two measured variables. A linear relationship is one that can be approximated by a straight line.
The value of r always falls between -1 and +1:
| Value of r | Meaning |
|---|---|
| +1.00 | Perfect positive linear relationship |
| 0.00 | No linear relationship |
| -1.00 | Perfect negative linear relationship |
The sign shows the direction:
- A positive value means that higher values of one variable tend to occur with higher values of the other.
- A negative value means that higher values of one variable tend to occur with lower values of the other.
- A value near zero means little or no linear pattern.
The absolute value shows strength. For example, r = -0.80 describes a stronger relationship than r = +0.35 because 0.80 is larger than 0.35. There is no universal boundary between weak and strong correlations. Researchers interpret the size in the context of the subject, measurement quality, and previous research.
A worked example
The following code calculates Pearson’s r for hours of sleep and quiz scores:
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 result is about +0.89. This is a strong positive linear relationship in this small sample. Students who slept more hours generally had higher quiz scores.
The coefficient does not say that every student who sleeps more will score higher. Individual points can differ from the overall pattern.
Reading a scatterplot
A scatterplot displays one dot for each person or observation. The closer the dots are to a straight line, the stronger the linear relationship.
A curved pattern can produce a correlation near zero even when the variables are related. An extreme outlier, which is an unusual observation, can also make r much larger or smaller.
What r cannot establish
A correlation does not establish that one variable causes the other. A third variable may influence both. For example, outdoor temperature could affect both ice-cream sales and swimming-pool attendance. Directionality is another problem: when two variables correlate, the data may not show which one influences the other.
Correlation also does not prove that a relationship is important in practice. Consider the size of the effect, the quality of the measurements, and the sample before drawing a conclusion.
Exercise
A study reports r = -0.72 between daily stress and hours of sleep. What does this coefficient indicate?
Show answer
It indicates a fairly strong negative linear relationship: people reporting more stress tended to report fewer hours of sleep. It does not establish that stress causes reduced sleep.