Q.Calculate Karl Pearson's Coefficient of Correlation between advertising expenditure (X, in ₹'000) and sales (Y, in ₹ lakh) from the following data: X: 2, 4, 6, 8, 10; Y: 3, 6, 7, 10, 14.
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. …
Karl Pearson's r needs the deviations of both variables from their own means, then a ratio of their combined product-sum to the square root of their separate squared-deviation sums. …
Using ∑x⋅∑y (the products of the TOTALS) in the numerator instead of ∑xy (the sum of the individual PRODUCTS of each pair's deviations) — these are entirely differe …