IP331.com | Online Tools
HomeStatistics ToolsCorrelation Coefficient Calculator

Correlation Coefficient Calculator

Calculate Pearson r with Step-by-Step Derivation

Enter X values (comma-separated)
Enter Y values (comma-separated)

Correlation Formula

r = Σ[(xᵢ - x̄)(yᵢ - ȳ)] / √[Σ(xᵢ - x̄)² × Σ(yᵢ - ȳ)²]
Covariance = Σ[(xᵢ - x̄)(yᵢ - ȳ)] / (n-1)
r = Covariance / (σₓ × σᵧ)

Pearson correlation measures the strength of linear relationship between two continuous variables.

Both datasets must have the same number of values. Outliers can significantly affect correlation.

What is Pearson Correlation?

Pearson correlation coefficient (r) quantifies the linear relationship between two variables X and Y. It ranges from -1 to +1, where positive values indicate positive correlation and negative values indicate negative correlation.

Positive Correlation

r > 0: As X increases, Y tends to increase (e.g., height & weight)

Negative Correlation

r < 0: As X increases, Y tends to decrease (e.g., temperature & coat sales)

No Correlation

r ≈ 0: No linear relationship (e.g., shoe size & IQ)

Perfect Correlation

|r| = 1: All points lie on a straight line

💡 Example: X = [1,2,3,4,5], Y = [2,4,5,4,5]. x̄=3, ȳ=4. Σ(x-x̄)(y-ȳ)=6. r = 6/√(10×2) ≈ 0.9487.

Applications

Statistics Data Analysis Finance Social Sciences Market Research

Frequently Asked Questions

What is Pearson correlation coefficient?
Pearson r measures linear relationship between two variables. Range: -1 to +1. +1 = perfect positive correlation, -1 = perfect negative correlation, 0 = no linear relationship.
What does correlation tell us?
Correlation indicates strength and direction of linear association. It does NOT imply causation. High correlation could be due to third variable or coincidence.
How to interpret r value?
|r| ≥ 0.8 = strong correlation, 0.5 ≤ |r| < 0.8 = moderate correlation, 0.3 ≤ |r| < 0.5 = weak correlation, |r| < 0.3 = negligible correlation.
When to use Pearson correlation?
Use when both variables are normally distributed, relationship is linear, and data is paired. For non-linear or ordinal data, use Spearman rank correlation instead.

More Statistics Tools

Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.

© 2026 IP331.com — Free Online Tools. All rights reserved.

About · Contact · Privacy Policy · Cookie Policy · Terms of Use · Disclaimer · Sitemap