It measures the strength and direction of a linear relationship between two variables.
It always lies between -1 and +1.
It is denoted by the letter r.
It means there is no linear correlation between the two variables.
Because it gives both the magnitude and the direction of the relationship, making it a robust method for correlation analysis.
Join ALLEN!
(Session 2026 - 27)
Choose class
Choose your goal
Preferred Mode
Choose State
Karl Pearson’s Coefficient of Correlation
Correlation is a statistical measure that shows the degree of relationship between two variables. Karl Pearson’s coefficient of correlation is one of the most widely used methods for determining the strength and direction of this relationship. It plays an important role in statistics, data science, and also in competitive exams like JEE Main, JEE Advanced, and other entrance tests.
1.0Karl Pearson’s Coefficient of Correlation – Definition and Theory
Karl Pearson’s coefficient of correlation measures the linear relationship between two variables.
It is denoted by ‘r’.
The value of Karl Pearson’s coefficient of correlation lies between -1 and +1.
If r = +1 → Perfect positive correlation
If r = -1 → Perfect negative correlation
If r = 0 → No correlation
Karl Pearson’s coefficient of correlation method uses covariance and standard deviation.
Because we scaled both variables by constants, r is unchanged — coding just simplifies arithmetic.
Method 4 — Covariance and standard deviations (conceptual form)
Example 4 (Covariance method, same data as Example 1)
Data: (1, 2), (2, 3), (3, 5), (4, 4). We already found r = 0.8. Show via covariance.
Solution
Means: xˉ=2.5,yˉ=3.5.
Compute sums of deviations:
x
x−xˉ
y
y−yˉ
(x−xˉ)(y−yˉ)
(x−xˉ)2
(y−yˉ)2
1
-1.5
2
-1.5
2.25
2.25
2.25
2
-0.5
3
-0.5
0.25
0.25
0.25
3
0.5
5
1.5
0.75
0.25
2.25
4
1.5
4
0.5
0.75
2.25
0.25
Sum
4.0
5.0
5.0
Population covariance: Cov(X,Y)=n∑(x−xˉ)(y−yˉ)=44=1.
Population standard deviations:
σx=45=1.25,σy=1.25. Thus
r=σXσYCov(X,Y)=(1.25)21=1.251=0.8, same result as Example 1.
4.0Solved Examples on Karl Pearson’s Coefficient of Correlation
Example 1: Find Karl Pearson’s coefficient of correlation for the following data:
X
1
2
3
4
5
Y
2
4
6
8
10
Solution:
Here, Y = 2X.
Clearly, the relation is perfectly linear.
Thus, r = +1.
Example 2: Given the following data, calculate Karl Pearson’s coefficient of correlation:
X
10
12
13
16
17
18
19
Y
40
38
43
45
37
43
49
Solution:
Step 1: Compute mean of X and Y.
Xˉ=710+12+13+16+17+18+19=15
Yˉ=740+38+43+45+37+43+49=42.14
Step 2: Find deviations
dx=X−Xˉ,dy=Y−Yˉ.
Step 3: Apply formula:
r=∑dx2⋅∑dy2∑dx⋅dy
After calculations:
r≈0.82
So, there is a strong positive correlation.
Example 3: If the correlation coefficient between X and Y is r = 0.6, standard deviation of X = 3, standard deviation of Y = 4, and covariance of (X, Y) = ?