MicrolearnENPTES

Correlation

Lesson 15 of 15 · Stats.Micro

Pearson's r measures the strength and direction of a linear relationship, from −1 (perfect negative) through 0 (none) to +1 (perfect positive). R² = r² is the share of variance explained by the line.

Watch out: r only sees straight lines. A perfect U-shaped curve can have r ≈ 0. And correlation alone does not prove causation.

Ice cream sales and drownings are correlated because both rise in summer, not because one causes the other.

Generate a strong negative correlation: sample r ≤ −0.8.

Show the U-shaped curve and notice that r stays close to zero.

Check yourself

The points form a perfect U shape and r ≈ 0. What can you conclude?

There is a strong relationship, but it is not linear

Explore how Pearson r reflects linear co-dependence, generate target distributions, and analyze variance explained.

Pearson's r is scale-invariant and bounded strictly between -1 and +1. An r of +1 indicates perfect positive collinearity, -1 indicates perfect negative collinearity, and 0 indicates zero linear slope.

Do it in the browser: a real statistics tool, a short mission and instant feedback. No install.

Start this lesson — free
← Least squares regression

All lessons · Stats.Micro