Correlation Coefficient Calculator
Enter two comma-separated lists of numbers to find the Pearson correlation coefficient (r) between them.
Enter a finite value within the formula’s domain and supported numeric range.
The editable 0.3/0.7 thresholds are examples. This description is not a significance test or evidence of causation.
r = Σ((x−x̄)(y−ȳ))/√(Σ(x−x̄)²·Σ(y−ȳ)²); y = a+bx; 2 ≤ n ≤ 1000; Var(x),Var(y) > 0. List rows use commas or spaces; separate rows with a newline or semicolon. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
Method, assumptions and limits
Enter two comma-separated lists of numbers to find the Pearson correlation coefficient (r) between them.
r = Σ((x−x̄)(y−ȳ))/√(Σ(x−x̄)²·Σ(y−ȳ)²); y = a+bx; 2 ≤ n ≤ 1000; Var(x),Var(y) > 0. List rows use commas or spaces; separate rows with a newline or semicolon.
Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
Frequently asked questions
How should I interpret this estimate?
r = Σ((x−x̄)(y−ȳ))/√(Σ(x−x̄)²·Σ(y−ȳ)²); y = a+bx; 2 ≤ n ≤ 1000; Var(x),Var(y) > 0. List rows use commas or spaces; separate rows with a newline or semicolon. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
How we verified this calculator
The calculator is checked against 2 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
X values = -2,0,2
Y values = 5,1,-3
|
Correlation coefficient (r): -1
R²: 1
b (y = a + b·x): -2
a (y = a + b·x): 1
|
| 2 |
X values = 100000000000,100000000001,100000000002
Y values = 3,5,7
|
Correlation coefficient (r): 1
b (y = a + b·x): 2
a (y = a + b·x): -199999999997
|