Skip to content

Economics · Ch 6 — Correlation

Step Deviation Method To Calculate Correlation Coefficient

6.3.4

Step Deviation Method To Calculate Correlation Coefficient

When the values of the variables are large, computing rr directly is tedious. The step deviation method cuts the labour by exploiting the property that rr is independent of change of origin and scale.

The variables are transformed as

U=X−Ah,V=Y−BkU = \frac{X - A}{h}, \qquad V = \frac{Y - B}{k}

where AA and BB are assumed means and hh, kk are common factors of the same sign. Then rUV=rXYr_{UV} = r_{XY}, so we may compute rr from the simpler UU, VV values.

Worked example (Example 2): price index (X) vs money supply in Rs crore (Y).

Original data: X = 120, 150, 190, 220, 230; Y = 1800, 2000, 2500, 2700, 3000. Choosing A=100A = 100, h=10h = 10, B=1700B = 1700, k=100k = 100 gives the transformed table:

UVU2U^2V2V^2UVUV
21412
5325915
98816472
1210144100120
1313169169169
ΣU = 41ΣV = 35ΣU² = 423ΣV² = 343ΣUV = 378

With N=5N = 5, applying formula (3) in terms of UU and VV:

r=∑UV−(∑U)(∑V)N∑U2−(∑U)2N  ∑V2−(∑V)2N=378−41×355423−4125  343−3525r = \frac{\sum UV - \dfrac{(\sum U)(\sum V)}{N}}{\sqrt{\sum U^2 - \dfrac{(\sum U)^2}{N}} \; \sqrt{\sum V^2 - \dfrac{(\sum V)^2}{N}}} = \frac{378 - \dfrac{41 \times 35}{5}}{\sqrt{423 - \dfrac{41^2}{5}} \; \sqrt{343 - \dfrac{35^2}{5}}}

=378−287423−336.2  343−245=9186.8  98≈0.98= \frac{378 - 287}{\sqrt{423 - 336.2}\;\sqrt{343 - 245}} = \frac{91}{\sqrt{86.8}\;\sqrt{98}} \approx 0.98 …