Two variables can move in the same direction while the numerical size of that movement changes with the units.
To ask whether months with higher advertising spending also have higher sales, we need to examine how the two variables move together. But the numerical size of covariance changes depending on whether spending is recorded in dollars or thousands of dollars.
Correlation standardizes covariance so that the direction and strength of a linear relationship can be compared without depending on measurement units.
Key question
How can joint movement between two variables be summarized in a unit-free number?
What does covariance describe?
| Covariance | Interpretation |
|---|---|
| Positive | when x is above its mean, y also tends to be above its mean |
| Negative | when x is above its mean, y tends to be below its mean |
| Near zero | weak linear co-movement |
Sample covariance
cov(x,y) = Σ(xᵢ−x̄)(yᵢ−ȳ) / (n−1)
If the two deviations have the same sign, their product is positive; if they have opposite signs, it is negative. Covariance is measured in x-units × y-units, which makes its magnitude hard to compare across scales.
Why standardize with correlation?
Pearson correlation
r = cov(x,y) / (sₓsᵧ)
Standardization removes the units and restricts the result to −1 through 1. Changing y from dollars to thousands of dollars changes covariance but leaves correlation unchanged.
How should correlation be read?
| r | Meaning |
|---|---|
| +1 | all points lie on an upward-sloping line |
| 0 | no visible linear relationship |
| −1 | all points lie on a downward-sloping line |
r=−0.8 and r=0.8 indicate similar linear strength but opposite direction. In simple linear regression with an intercept, r² equals the proportion of sample variation in y explained by the fitted line.
Strength depends on context
Whether 0.3 is small or meaningful depends on the field, measurement reliability, observed range, and purpose of the analysis.
What can correlation miss?
Inspect first
Before computing correlation, examine a scatterplot for direction, curvature, groups, and unusual observations.
Change the relationship and scale
First change the relationship direction and inspect the signs of covariance and correlation. Then rescale the y-axis and compare how covariance changes while correlation remains stable.
Covariance
8.86
Correlation
0.90
What to notice
Covariance changes with measurement units. Correlation is standardized, so it preserves the direction and linear strength under a simple rescaling.