Result of two simultaneous tests conducted in a class have been given in following table. Calculate the Karl Pearson's coefficient of correlation for scores obtained by students in these two different tests.
Imagine you're tracking two things at once — say, hours spent studying and exam scores. You notice a pattern: when study hours go up, scores tend to go up too. That's correlation in its simplest form: a measure of how two variables move together.
But here's the key intuition: correlation is not about causation. Just because two things move together doesn't mean one causes the other. Ice cream sales and drowning incidents both rise in summer — they're correlated, but ice cream doesn't cause drowning. Both are driven by a third factor (heat).
The Core Idea
Correlation quantifies the strength and direction of a linear relationship between two variables. It answers three questions:
Direction: Do they move in the same direction (positive) or opposite directions (negative)?
Strength: How tightly do they follow that pattern — is it a perfect line, or a loose cloud of points?
Form: Is the relationship linear (a straight line) or something else? Correlation only measures linear relationships.
Watch out
Correlation is blind to non-linear relationships. Two variables could have a perfect U-shaped relationship and still show zero correlation.
The Precise Statement: Pearson's Correlation Coefficient
The most common measure is Pearson's correlation coefficient, denoted by r. It's a single number between −1 and +1.
This is the same formula written more compactly: covariance divided by the product of standard deviations.
What the Numbers Mean
Value of r
Interpretation
+1
Perfect positive linear relationship (all points on an upward-sloping line)
+0.7 to +0.99
Strong positive correlation
+0.3 to +0.69
Moderate positive correlation
0 to +0.29
Weak positive correlation
0
No linear relationship
−0.29 to 0
Weak negative correlation
−0.69 to −0.3
Moderate negative correlation
−0.99 to −0.7
Strong negative correlation
−1
Perfect negative linear relationship (all points on a downward-sloping line)
Tip
| The sign tells direction, the absolute value tells strength. An r of −0.9 is just as strong as +0.9 — only the direction differs.
The Intuition Behind the Formula
The numerator ∑(xi−xˉ)(yi−yˉ) is the covariance. For each point, it asks: is this point above or below the mean in both variables?
If a point is above the mean in xand above the mean in y, the product (xi−xˉ)(yi−yˉ) is positive.
If a point is above in x but below in y, the product is negative.
Summing all these products tells you whether the overall pattern is positive or negative.
The denominator ∑(xi−xˉ)2∑(yi−yˉ)2 is just a scaling factor — it ensures r always falls between −1 and +1, regardless of the units of measurement.
Important
Correlation is unitless. Changing hours to minutes or scores to percentages doesn't change r — it's a pure number.
A Simple Example
Suppose you have five students:
Hours studied (x)
Exam score (y)
1
40
2
50
3
60
4
70
5
80
Here xˉ=3, yˉ=60. Every point lies exactly on the line y=10x+30. Computing r gives exactly +1 — perfect positive correlation.
Now change the last point to (5, 50). The pattern is still upward but not perfect. r drops to about +0.6 — moderate positive correlation.
What Correlation Does NOT Tell You
Causation: r=0.9 does not mean x causes y. There could be a third variable, or the relationship could be coincidental.
Non-linear relationships: A perfect circle has r=0 even though x and y are perfectly related.
Outliers: A single extreme point can dramatically change r. Always plot your data first.
Slope: r doesn't tell you how steep the line is — only how tightly points cluster around it.
Note
| Always visualize your data with a scatter plot before trusting r. Anscombe's quartet is a famous demonstration of four very different datasets that all have the same r≈0.816.
The Bottom Line
Correlation is a precise, standardized measure of linear association. It tells you whether two variables move together, how consistently they do so, and in which direction. But it's a tool, not an oracle — use it with scatter plots, context, and a healthy skepticism about causation.
Karl Pearson's coefficient of correlation between the two test scores is r≈0.977 — a very strong positive correlation.
r=∑(xi−xˉ)2∑(yi−yˉ)2∑(xi−xˉ)(yi−yˉ)
n=8, xˉ=56/8=7, yˉ=40/8=5
∑(x−xˉ)(y−yˉ)=84, ∑(x−xˉ)2=132, ∑(y−yˉ)2=56
r=132×5684=739284≈85.9884≈0.977
✓Final answer
r≈0.977 (very strong positive correlation)
Between the first-test and second-test scores of the 8 students, Karl Pearson's coefficient of correlation is r≈0.977, indicating a very strong positive linear relationship.
r=∑(xi−xˉ)2∑(yi−yˉ)2∑(xi−xˉ)(yi−yˉ)
where xi,yi are the paired scores and xˉ,yˉ their means.
Working table:
Student
Priya
Rahul
Tanya
Priyanka
Sneha
Naveen
Neeraj
Sunil
Total
X (test 1)
1
3
4
6
8
9
11
14
56
Y (test 2)
1
2
4
4
5
7
8
9
40
x−xˉ
-6
-4
-3
-1
1
2
4
7
0
y−yˉ
-4
-3
-1
-1
0
2
3
4
0
(x−xˉ)(y−yˉ)
24
12
3
1
0
4
12
28
84
(x−xˉ)2
36
16
9
1
1
4
16
49
132
(y−yˉ)2
16
9
1
1
0
4
9
16
56
n=8; xˉ=856=7; yˉ=840=5.
From the table: ∑(x−xˉ)(y−yˉ)=84, ∑(x−xˉ)2=132, ∑(y−yˉ)2=56.
r=132×5684=739284.
7392≈85.98, so r≈85.9884≈0.977.
Self-check:0.9772×7392≈7057, and 842=7056 — matches (rounding). Since −1≤r≤1 and r is close to +1, this confirms a very strong, positive linear relationship. ✓
✓Final answer
Karl Pearson's coefficient of correlation r≈0.977 (very strong positive correlation between the two tests)