Loading the interactive tool…

Pearson correlation
calculator

Explore linear association in paired observations.

Calculate the Pearson correlation coefficient

r = 0.77459667

Positive linear association
in these sample pairs.

Number of pairs (n)5
Mean of X values3
Mean of Y values4
View the paired observations
XY
12
24
35
44
55

Keep pairs aligned. Constant X or Y gives undefined r. Correlation does not establish causation.

How it works

1

Keep pairs aligned

Each X value is paired with the corresponding Y value in the same order.

2

Calculate the coefficient

We use the Pearson correlation formula on the paired values.

3

Inspect the scatterplot

Look for a linear pattern, outliers or unusual features in the points.

For these 5 pairs:

r = 6 / √60 ≈ 0.77459667

Limits

Low linear correlation can hide a curved relationship. Outliers can change the coefficient.

Questions, Answered.

Does r = 0 prove there is no relationship?

No. A nonlinear pattern can still be present; inspect the points.

Why is a constant list rejected?

The coefficient divides by the spread of each list. With no variation, Pearson’s r is undefined.

Must both lists have the same length?

Yes. Each X value needs its corresponding Y observation. Keep the original observation order aligned.

CORRELATION DETECTIVE

Which point changes r most?

Pick the added point that changes r the most.
Reveal all three effects, then remix the example.

Try the influence challenge