The correlation coefficient formula (Pearson's ) measures the strength and direction of a linear relationship between two variables, producing a value between and .
Quick Reference:
Pearson correlation formula:
Range:
Interpretation: (perfect positive), (perfect negative), (no linear correlation)
Type: Statistical measure — bivariate analysis
Used in: Statistics, data science, economics, psychology, biology, machine learning
Definition
The Pearson correlation coefficient quantifies how closely two variables and vary together in a linear pattern. A positive means both variables increase together; a negative means one increases as the other decreases; means no linear association.
The formula normalises the joint variation (covariance) by the product of the individual standard deviations, ensuring the result always lies in .
Variable Key
Symbol | Meaning |
|---|---|
Pearson correlation coefficient | |
Number of data pairs | |
Values of the first variable | |
Values of the second variable | |
Sum of products of each – pair | |
Sum of squares of values | |
Sum of squares of values | |
Sum of all values | |
Sum of all values |
Alternative Form Using Means
The correlation coefficient can also be written as:
where and are the means of and respectively. This form makes the intuition clearer: measures how much and deviate from their means in the same direction at the same time.
Interpreting The Correlation Coefficient
Value of | Interpretation |
|---|---|
to | Very strong positive correlation |
to | Strong positive correlation |
to | Moderate positive correlation |
to | Weak positive correlation |
to | Very weak or no linear correlation |
Negative values | Same scale, opposite direction |
Origin of Correlation Coefficient Formula
Karl Pearson (1857–1936, UK) developed the correlation coefficient in 1895, building on earlier work by Francis Galton (1822–1911, UK). Galton had noticed that tall parents tend to have tall children (though not as tall as the parents) — a phenomenon he called "regression to the mean." Pearson formalised this observation into a precise numerical measure. Their work established the mathematical foundation of modern statistics.
Worked Example of Correlation Coefficient
Find the correlation coefficient for the following data: : .
1 | 2 | 2 | 1 | 4 |
2 | 4 | 8 | 4 | 16 |
3 | 5 | 15 | 9 | 25 |
4 | 4 | 16 | 16 | 16 |
5 | 5 | 25 | 25 | 25 |
Σ = 15 | Σ = 20 | Σ = 66 | Σ = 55 | Σ = 86 |
. Applying the formula:
Final answer: — strong positive correlation.
Common Confusions With The Correlation Coefficient Formula
Correlation does not imply causation. A high between two variables does not mean one causes the other. Ice cream sales and drowning rates are strongly correlated (both rise in summer) — the cause is a third variable (hot weather), not a direct link.
The correlation coefficient measures linear relationships only. Two variables can have a strong non-linear relationship (e.g. quadratic) with . Always inspect a scatter plot alongside .
is not a percentage. does not mean "70% correlated." The coefficient of determination means that of the variation in is explained by its linear relationship with .
Was this article helpful?
Your feedback helps us write better content
