Field note · February 12, 2025

A essentially none correlation, and what it is not

A measured correlation of -0.05 between two columns, what its square says, and the diagnostic that costs one line.

1 min read ·Statistics ·statistics

population and gdp_per_capita_usd on world-indicators move together — essentially nonely, and negatively. r = -0.05 over 720 rows.

That is essentially none. Squared, it says the linear relationship accounts for 0.3% of the variance in either column. Which is to say: nothing you would build anything on.

python
df[["population", "gdp_per_capita_usd"]].corr(method="pearson")
# also worth running:
df[["population", "gdp_per_capita_usd"]].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.