Correlation Coefficient Calculator
Use this correlation coefficient calculator to measure the strength and direction of the linear relationship between two quantitative variables. It returns Pearson's r, a scatter plot, and full significance test results.
Enter comma, space, or newline separated numbers
Enter comma, space, or newline separated numbers
Common values: 0.10, 0.05, 0.01
What is the Pearson Correlation Coefficient?
The Pearson correlation coefficient (r) measures the strength and direction of the linear relationship between two continuous variables. It ranges from -1 to 1:
- r = 1: Perfect positive linear relationship.
- r = -1: Perfect negative linear relationship.
- r = 0: No linear relationship.
Hypotheses for the Significance Test
- H₀ (Null Hypothesis): The population correlation coefficient is zero (ρ = 0). There is no linear relationship between the variables.
- H₁ (Alternative Hypothesis): The population correlation coefficient is not zero (ρ ≠ 0). There is a linear relationship between the variables.
Formula
r = Σ((x - x̄)(y - ȳ)) / √[Σ(x - x̄)² × Σ(y - ȳ)²]
Assumptions
- Both variables should be continuous (interval or ratio level).
- There should be a linear relationship between the variables.
- There should be no significant outliers.
- The variables should be approximately normally distributed.