Field note · October 25, 2024
A weak correlation, and what it is not
A measured correlation of 0.19 between two columns, what its square says, and the diagnostic that costs one line.
year and population on world-indicators move together — weakly, and positively. r = 0.19 over 720 rows.
That is weak and positive. Squared, it says the linear relationship accounts for 3.5% of the variance in either column. Which is to say: nothing you would build anything on.
df[["year", "population"]].corr(method="pearson")
# also worth running:
df[["year", "population"]].corr(method="spearman")Run Spearman next to Pearson every time. They agree when the relationship is roughly linear and diverge when it is monotone but curved — and the gap between them is a free diagnostic that costs one line.
A correlation this small is compatible with a real relationship that is not linear, with a real relationship confined to one segment, and with nothing at all. It does not distinguish between them, and neither does a bigger sample.
Look at the scatter before quoting r. Anscombe's quartet is four datasets with identical correlation coefficients and nothing else in common, and the correlation explorer will draw this pair so you can see which case you are in.
Longer treatment in Correlation, confounding, and Simpson's paradox.