Analyze the linear relationship between two sets of data.
Enter two datasets to calculate the Pearson correlation coefficient (r), a measure of linear association. The calculator also provides r-squared, covariance, and other key statistics.
Explore different scenarios to understand how Pearson correlation works.
As one variable increases, the other variable tends to increase. This example shows a near-perfect positive linear relationship.
X: 10, 20, 30, 40, 50
Y: 15, 25, 35, 45, 55
As one variable increases, the other variable tends to decrease. This example demonstrates a strong negative linear relationship.
X: 5, 10, 15, 20, 25
Y: 50, 40, 30, 20, 10
There is no clear linear relationship between the variables. The points are scattered randomly.
X: 1, 5, 2, 8, 9, 4, 6, 7, 3, 10
Y: 7, 2, 9, 4, 5, 1, 8, 3, 10, 6
A classic educational example exploring the relationship between hours spent studying and final exam scores.
X: 2, 3, 5, 6, 8
Y: 65, 70, 75, 80, 90