Regression

Pearson Correlation Coefficient Calculator

Calculate Pearson's r, R-squared & p-value for any dataset. Free Pearson correlation coefficient calculator with step-by-step interpretation.

Pearson Correlation Coefficient Calculator

Calculate the Pearson correlation coefficient (r) — also known as Pearson’s r — to measure the strength and direction of the linear relationship between two quantitative variables.

How to Use This Calculator

  1. Enter X values: First variable’s data (comma or space separated)
  2. Enter Y values: Second variable’s data (must have same number of values as X)
  3. Click Calculate: Get correlation coefficient, r², and significance test
  4. Interpret results: Understand the strength and direction of the relationship

Input Example

X values: 2, 3, 4, 5, 6
Y values: 65, 70, 75, 80, 85

Understanding the Results

Pearson Correlation Coefficient (r)

The correlation coefficient ranges from -1 to +1:

ValueInterpretation
+1.0Perfect positive correlation
+0.7 to +1.0Strong positive correlation
+0.3 to +0.7Moderate positive correlation
0 to +0.3Weak positive correlation
0No linear correlation
-0.3 to 0Weak negative correlation
-0.7 to -0.3Moderate negative correlation
-1.0 to -0.7Strong negative correlation
-1.0Perfect negative correlation

Coefficient of Determination (r²)

r² tells you what proportion of the variation in one variable can be explained by the other:

  • r = 0.8r² = 0.64 → 64% of variation explained
  • r = 0.5r² = 0.25 → 25% of variation explained
  • r = -0.9r² = 0.81 → 81% of variation explained

Statistical Significance

The calculator performs a hypothesis test:

  • H₀: No correlation exists in the population (ρ = 0)
  • Hₐ: Correlation exists in the population (ρ ≠ 0)

Significant result (p < 0.05): The correlation is unlikely due to chance

Not significant (p ≥ 0.05): The correlation could be due to random variation

Interpreting Correlation Direction

Positive Correlation (r > 0)

  • As X increases, Y tends to increase
  • Points slope upward on a scatter plot
  • Example: Study hours and test scores

Negative Correlation (r < 0)

  • As X increases, Y tends to decrease
  • Points slope downward on a scatter plot
  • Example: Exercise and resting heart rate

No Correlation (r ≈ 0)

  • No clear linear relationship
  • Points are randomly scattered
  • Example: Shoe size and intelligence

Important: Correlation ≠ Causation

Just because two variables are correlated doesn’t mean one causes the other!

Common Scenarios:

  1. Reverse causation: Y might cause X instead
  2. Third variable: Z causes both X and Y
  3. Coincidence: The correlation is spurious

Classic Example

Ice cream sales and drowning deaths are positively correlated.

❌ Does ice cream cause drowning? No!

✅ Both are caused by hot weather (a third variable)

When to Use Correlation Analysis

✅ Appropriate Uses:

  • Exploring relationships between variables
  • Identifying potential predictors for regression
  • Validating measurement instruments
  • Analyzing trends in financial data

❌ Inappropriate Uses:

  • Proving causation
  • When relationship is clearly non-linear
  • With categorical data (use chi-square instead)
  • When data has severe outliers

Assumptions

Pearson correlation assumes:

  1. Linearity: The relationship is linear (not curved)
  2. Continuous variables: Both X and Y are quantitative
  3. Normal distribution: Data is approximately normally distributed
  4. No outliers: Extreme values can distort correlation
  5. Homoscedasticity: Constant variance across the range

Tip: Always visualize your data with a scatter plot first!

Example Interpretations

Strong Positive Correlation

r = 0.85, r² = 0.72, p < 0.001

“There is a strong positive correlation between study hours and test scores (r = 0.85, p < 0.001). Study hours explain 72% of the variation in test scores. Students who study more tend to score higher.”

Weak Negative Correlation

r = -0.25, r² = 0.06, p = 0.12

“There is a weak negative correlation between age and reaction time (r = -0.25, p = 0.12). However, this correlation is not statistically significant, suggesting the relationship may be due to chance. Age explains only 6% of the variation in reaction time.”

Other Correlation Types:

  • Spearman’s rho: For ordinal data or non-normal distributions
  • Kendall’s tau: For small samples with tied ranks
  • Point-biserial: When one variable is binary

Next Steps:

After finding correlation, you might want to:

  1. Create a scatter plot to visualize the relationship
  2. Perform linear regression to model the relationship
  3. Test for causation with experimental design

Common Applications

Science

  • Temperature and plant growth
  • Dose and response in pharmacology
  • Age and cognitive performance

Finance

  • Stock price movements
  • Economic indicators
  • Risk and return relationships

Social Sciences

  • Income and education level
  • Screen time and sleep quality
  • Personality traits and behavior

Health

  • BMI and blood pressure
  • Exercise and heart rate
  • Age and bone density
Statistical Tables
Z-table, t-table, chi-square & F-table — free printable reference tables.
View Tables →

Want to learn the theory?

Our lessons explain the statistical concepts behind this calculator with clear examples.

Browse Lessons →