Correlation Coefficient Calculator

Find Pearson's r between two paired variables.

Correlation (r) 0.9812
0.9627

Formula: r = cov(x,y) ÷ (σx · σy)

Step-by-step with your numbers:
1. Values used:
2. x₁ = 1
3. y₁ = 2
4. x₂ = 2
5. y₂ = 4
6. x₃ = 3
7. y₃ = 5
8. x₄ = 4
9. y₄ = 8
10.
11. Correlation (r) = 0.9812
12. R² = 0.9627
Did we solve your problem today?

Pearson's r measures the strength and direction of a linear relationship (−1 to +1).

How the Math Works

The Pearson correlation coefficient (r) measures the linear relationship between two variables by comparing how much they vary together (covariance) relative to their individual variability (standard deviations). The formula r = cov(x,y) ÷ (σx · σy) first calculates the covariance of x and y, which quantifies how much the variables change in tandem. This is then divided by the product of their standard deviations (σx and σy), which normalizes the value to a range between -1 and 1. A value of 1 indicates perfect positive correlation, -1 perfect negative correlation, and 0 no linear relationship. This standardization ensures the coefficient is unitless and comparable across different datasets.

Practical Applications

This calculation is widely used in research and data analysis to identify relationships between variables. For example, in economics, it might determine if increased advertising spend correlates with higher sales. In healthcare, it could assess whether a new drug reduces symptoms. Businesses use it to link customer demographics with purchasing behavior, while scientists apply it to validate hypotheses about natural phenomena. However, users must remember that correlation does not imply causation—two correlated variables may be influenced by a third factor or coincidence. Statistical software and calculators automate this process, enabling quick analysis of experimental or observational data.

Day-to-Day Use

In daily life, correlation analysis helps make informed decisions. For instance, tracking exercise frequency and energy levels reveals if physical activity boosts well-being. Parents might explore links between screen time and sleep quality in children. Investors use it to see how stock prices move relative to market trends. Even in personal choices, like diet and health metrics, correlation calculations reveal patterns that guide smarter lifestyle decisions. By identifying these relationships, individuals can optimize routines, predict outcomes, and navigate data-driven choices more effectively.

Worked example

Sample pairs → r ≈ 0.96 (strong positive).

FAQ

Correlation = causation?

No — a strong r doesn't prove one variable causes the other.