Correlation Calculator

Calculate the Pearson correlation coefficient between two sets of numbers. This helps measure the strength and direction of a linear relationship between two variables.

Enter the first list of values separated by commas.

Enter the second list of values separated by commas in the same order.

How This Calculator Works

This calculator uses the Pearson correlation coefficient to measure the linear relationship between two sets of numbers. The result ranges from -1 to 1. A value near 1 means a strong positive relationship, a value near -1 means a strong negative relationship, and a value near 0 means little to no linear relationship.

Formula

r = Sum[(x - mean of x) * (y - mean of y)] / sqrt(Sum[(x - mean of x)^2] * Sum[(y - mean of y)^2])

Example

If X values are 1, 2, 3, 4, 5 and Y values are 2, 4, 6, 8, 10, the correlation is 1. That means there is a perfect positive linear relationship between the two variables.

Frequently Asked Questions

What does correlation measure?

Correlation measures the strength and direction of a linear relationship between two variables.

What does a correlation of 1 mean?

A correlation of 1 means there is a perfect positive linear relationship between the two variables.

What does a correlation of -1 mean?

A correlation of -1 means there is a perfect negative linear relationship between the two variables.

What does a correlation near 0 mean?

A correlation near 0 means there is little to no linear relationship between the variables.

Does correlation prove causation?

No. Correlation does not prove that one variable causes changes in the other.

Related Calculators