Correlation
What correlation measures, positive and negative relationships, scatter diagrams, Karl Pearson’s coefficient with its properties and step deviation method, and Spearman’s rank correlation with given, worked-out and repeated ranks.
The Idea
3 topics to learn here
What correlation measures
Covariation, not causation.
- 1
Correlation analysis asks: do two variables move together, in the same direction, and how strongly? Example: temperature, hill-station visitors and ice-cream sales; supply of tomatoes and their price.
- 2
It measures covariation, not causation. Migratory birds’ arrival and local birth rates may correlate by pure coincidence.
- 3
A third variable can create a link: ice-cream sales and drowning deaths rise together because hot weather drives both.
- 4
We assume the relationship is linear, one shown by a straight line.
✗High correlation proves that one variable causes the other.
✓It only shows that they move together; the link may be coincidence or due to a third variable.
Does correlation prove cause and effect?
✅ No, it shows only covariation.
Positive and negative correlation
Sign of the relationship.
- 1
Positive: variables move in the same direction. When income rises, consumption rises; temperature and ice-cream sales rise together; irrigation and yield.
- 2
Negative: variables move in opposite directions. When the price of apples falls, demand rises; more hours of study lower the chance of failing; higher interest rates lower demand for funds.
- 3
Three tools measure correlation: the scatter diagram, Karl Pearson’s coefficient and Spearman’s rank correlation.
Price rises and demand falls: which correlation?
✅ Negative.
Scatter diagram
Shows form, direction and closeness.
- 1
A scatter diagram plots paired values as points. The overall direction and the closeness of the points to a line show the relationship without any number.
- 2
Points around an upward line: positive correlation. Around a downward line: negative. No line pattern: no correlation. Points exactly on a rising or falling line: perfect positive or negative correlation.
- 3
If the points are widely spread around the line, the correlation is low; if they lie close, it is high.
- 4
A scatter diagram also shows non-linear relations (curves), for which Pearson’s r should not be used. So look at the scatter diagram before calculating r.
What does a scatter diagram not give?
✅ A numerical value of correlation.
Measuring It
3 topics to learn here
Karl Pearson’s coefficient of correlation
r = Σxy ÷ √(Σx² × Σy²).
- 1
Karl Pearson’s r (product moment correlation) gives the degree of linear relationship between X and Y. With deviations x = X − X̄ and y = Y − Ȳ: r = Σxy ÷ √(Σx² · Σy²) (equivalently covariance ÷ (σx σy)).
- 2
The sign of covariance fixes the sign of r; if covariance is zero, r is zero.
- 3
Worked example: years of schooling X = 0, 2, 4, 6, 8, 10, 12 and yield (₹ ‘000 per acre) Y = 4, 4, 6, 10, 10, 8, 7. X̄ = 6, Ȳ = 7; Σxy = 42, Σx² = 112, Σy² = 38. So r = 42 ÷ √(112 × 38) = 0.644. Schooling and yield are positively and fairly strongly correlated.
- 4
Step deviation method uses the fact that r does not change with origin or scale. Price index X = 120, 150, 190, 220, 230 and money supply Y = 1800, 2000, 2500, 2700, 3000 (₹ crore): with A = 100, h = 10, B = 1700, k = 100, r = 0.987, a very strong positive link.
- 5
Another example: annual growth of national income against saving as % of GDP (1992-93 to 2001-02: 14, 17, 18, 17, 16, 12, 16, 11, 8, 10 against 24, 23, 26, 27, 25, 25, 23, 25, 24, 23) gives r = 0.32, a weak positive link.
| X | Y | x = X−6 | y = Y−7 | xy | x² | y² |
|---|---|---|---|---|---|---|
| 0 | 4 | -6 | -3 | 18 | 36 | 9 |
| 2 | 4 | -4 | -3 | 12 | 16 | 9 |
| 4 | 6 | -2 | -1 | 2 | 4 | 1 |
| 6 | 10 | 0 | 3 | 0 | 0 | 9 |
| 8 | 10 | 2 | 3 | 6 | 4 | 9 |
| 10 | 8 | 4 | 1 | 4 | 16 | 1 |
| 12 | 7 | 6 | 0 | 0 | 36 | 0 |
| Total | 42 | 112 | 38 |
What is r for Σxy = 42, Σx² = 112, Σy² = 38?
✅ 0.644.
Properties and interpretation of r
Know what the number means.
- 1
r has no unit: it is a pure number (r between height in feet and weight in kg could be 0.7).
- 2
-1 ≤ r ≤ +1; a value outside the range means an error in calculation. Negative r: inverse relation; positive r: same direction.
- 3
r does not change when each variable is shifted (origin) or rescaled by positive common factors, so the step deviation method is allowed.
- 4
r = 0: no linear relation (other kinds may exist). r = ±1: perfect exact linear relation. Close to ±1: strong; close to 0: weak.
- 5
Examples: r = 0.1 between marks in English and statistics is weak; r = 0.9 means high English marks go with high statistics marks. For vegetable supply and price, r = −0.9 means a big price fall with larger supply, while −0.1 means a small fall.
- 6
Common sense matters: if doctors sent to epidemic villages and the number of deaths show a positive correlation, the reasons lie elsewhere (terminal cases, delayed benefit, other causes of deaths).
- 7
Zero correlation does not mean independence: X = −3, −2, −1, 1, 2, 3 with Y = 9, 4, 1, 1, 4, 9 has r = 0, yet Y = X².
Can r be 1.4?
✅ No; r lies between -1 and +1.
Spearman’s rank correlation
rs = 1 − 6ΣD² ÷ (n³ − n).
- 1
Used when variables cannot be measured but can be ranked (honesty, beauty), when exact measuring is not possible, when the relation is non-linear but has a clear direction, and when extreme values would distort Pearson’s r.
- 2
Formula: rs = 1 − 6ΣD² ÷ (n³ − n), where D is the difference between the two ranks of an item. It lies between -1 and +1 and is read like r, though usually less exact since only ranks are used.
- 3
Case 1: ranks given. Three judges rank five contestants: A: 1, 2, 3, 4, 5; B: 2, 4, 1, 5, 3; C: 1, 3, 5, 2, 4. Rank correlation: A and B = 1 − 6×14 ÷ 120 = 0.30; A and C = 1 − 6×10 ÷ 120 = 0.50; B and C = 1 − 6×28 ÷ 120 = −0.40. A and C agree most; B and C differ most. (The book prints 0.9 for B and C, a slip.)
- 4
Case 2: ranks not given. Marks in statistics 85, 60, 55, 65, 75 and economics 60, 48, 49, 50, 55 give ranks (1, 4, 5, 3, 2) and (1, 5, 4, 3, 2); ΣD² = 2, so rs = 1 − 12 ÷ 120 = 0.90.
- 5
Case 3: repeated ranks. Tied items get the average rank (three values of 50 at ranks 9, 10, 11 each get 10). Add a correction (m³ − m) ÷ 12 for each tied group to ΣD². For the 12-item example ΣD² = 198 and the correction is about 3, giving rs ≈ 0.30, a weak positive link.
- 6
Rank correlation differs from Pearson’s r because ranks lose the size of the gaps between values.
| Judges | ΣD² | rs |
|---|---|---|
| A and B | 14 | 0.30 |
| A and C | 10 | 0.50 |
| B and C | 28 | -0.40 |
How is a tied rank assigned?
✅ As the average of the ranks the tied items would take.
🔤 Key words
Each science word with its meaning and its Hindi name. Cover the meaning and try to say it first.
- Correlationसहसंबंध
The direction and strength of the relationship between two variables.
- Positive correlationधनात्मक सहसंबंध
Both variables move in the same direction.
- Negative correlationऋणात्मक सहसंबंध
The variables move in opposite directions.
- Scatter diagramप्रकीर्ण आरेख
A graph of paired values as points.
- Karl Pearson’s rकार्ल पियर्सन सहसंबंध गुणांक
A numerical measure of linear relationship, between -1 and +1.
- Covarianceसहप्रसरण
Average product of the deviations of X and Y from their means.
- Linear relationshipरैखिक संबंध
One that can be shown by a straight line.
- Spearman’s rank correlationस्पियरमैन कोटि सहसंबंध
A correlation computed from ranks of items.
- Rankकोटि
Position of an item when arranged by size or quality.
- Common rankसमान कोटि
Average of the ranks tied items would have taken.
- Perfect correlationपूर्ण सहसंबंध
r = +1 or -1: all points lie exactly on a line.
- Causationकारण-परिणाम संबंध
One variable producing a change in another; not shown by correlation alone.
🛂 One-look revision
One stamp per part. Read the key fact, then try to recall the whole topic.
- CorrelationDirection and strengthNot causation
- PositiveSame directionIncome and consumption
- NegativeOpposite directionsPrice and demand
- ScatterShows form without numberCheck before using r
- Pearson rΣxy ÷ √(Σx²Σy²)Linear only
- Range-1 ≤ r ≤ 1No unit
- r = 0No linear relationNot independence
- Step deviationr unaffected by origin and scalePrice index: 0.987
- Spearman1 − 6ΣD² ÷ (n³ − n)For ranks and attributes
- TiesAverage rank plus correctionCase 3: about 0.30
- ExampleSchooling and yield: 0.644Positive, fairly strong
❔ Questions and answers
Tap a question to see the answer. Try answering in your head first.