Pearson Correlation Coefficient Calculator
Discover the linear relationship between two sets of data with this easy-to-use calculator. Visualize your data and understand the correlation strength.
Enter Your Data Sets
Input your datasets below, with values separated by commas. Ensure both datasets have the same number of values.
Correlation Result
Pearson Correlation Coefficient (r):
Data Visualization
Understanding Pearson Correlation Coefficient
The Pearson correlation coefficient, denoted as \( r \), measures the strength and direction of a linear relationship between two variables. It ranges from -1 to +1.
- +1: Perfect positive correlation. As one variable increases, the other tends to increase.
- 0: No linear correlation. Changes in one variable are not related to changes in the other.
- -1: Perfect negative correlation. As one variable increases, the other tends to decrease.
The formula for Pearson correlation coefficient is:
$$ r = \frac{\sum_{i=1}^{n}(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{n}(x_i - ar{x})^2} \sqrt{\sum_{i=1}^{n}(y_i - \bar{y})^2}} $$
Learn more about Pearson correlation coefficient on Wikipedia.