01 · Definition

Reading the correlation coefficient

The correlation coefficient, r, is a single number between -1 and +1 that summarizes how tightly two variables move together in a straight-line pattern.

Scale — "how strong, and in which direction?" r = +1 → perfect positive · r = 0 → no linear relationship · r = -1 → perfect negative

Positive means both variables rise together (ice cream sales and temperature). Negative means one rises as the other falls (tire tread depth and miles driven). Near-zero means knowing one tells you nothing about the other.

The trap — "correlation is not causation" correlation ≠ proof that A causes B

Two variables can correlate because A causes B, B causes A, both are caused by a third factor, or it's pure coincidence. Correlation only tells you they move together — never why.

02 · Worked example

Study hours vs. exam score

Ten students tracked their study hours the week before an exam. Switch between this real pattern and two other common shapes to build intuition for what different r values actually look like as a point cloud.

Real-world dataset

Hours studied vs. exam score, 10 students

Students who studied more tended to score higher — a strong, but not perfect, positive relationship (r ≈ 0.87). A couple of students beat the trend either direction, which is normal.

1
What the points show

Each point is one student: x = hours studied, y = exam score. As points trend from bottom-left to top-right, that's a positive correlation.

2
Why it isn't r = 1.0

A couple of students studied a lot but scored only average, and one studied little but scored well — real relationships almost never fit a perfectly straight line.

3
The causation question

Does studying cause the higher score, or do more disciplined students both study more and score higher for unrelated reasons? Correlation alone can't answer that.

Scatter plot · auto-rotating
r ≈0.87
Study hours (r ≈ 0.87)
Price vs demand (r ≈ -0.8)
Shoe size vs IQ (r ≈ 0)
03 · Common trap

Four reasons two things might correlate

A→B

Direct causation

A genuinely causes B. More hours of sunlight really does cause faster plant growth.

The relationship you're hoping for
C→A,B

A confounding variable

Ice cream sales correlate with drowning incidents — both are actually driven by hot weather, not each other.

The most common trap in real data
B→A

Reversed causation

Struggling companies often hire more consultants — it can look like "consultants cause struggle" when it's the reverse.

Easy to get backwards
🎲

Pure coincidence

With enough variables, some will correlate by chance alone — famously, US spending on science correlates with suicide rates. Purely coincidental.

Why large-scale "data mining" needs care
04 · Check yourself

Quick practice

Scenario

A city finds that neighborhoods with more fire trucks dispatched also report more fire damage. A city council member concludes "fire trucks cause fire damage — send fewer trucks." What's the flaw?

A confounding variable — bigger fires cause both
No flaw — the data supports the conclusion
Reversed causation — damage causes trucks