Statistical Methods in Economics I

Online BA · Sem 2

Lesson 8 of 9Economics

Karl Pearson and Spearman Rank Correlation

Statistical Methods in Economics I

About the video

Correlation Analysis one shot|Business Statistics|Statistics|BBA|BCA|B.COM|B.TECH|Dream Maths

Dream Maths

Study notes

Correlation measures the strength and direction of the relationship between two variables. Karl Pearson's coefficient r measures linear correlation using actual values, while Spearman's rank correlation uses ranks and suits qualitative or ordinal data.

Karl Pearson's Coefficient

  • r = Cov(X,Y)/(SDx x SDy) = sum(dx dy)/sqrt(sum dx^2 x sum dy^2), where dx = x - mean of x and dy = y - mean of y.
  • r lies between -1 and +1: r = +1 is perfect positive, r = -1 is perfect negative, and r = 0 means no linear correlation.
  • r is independent of change of origin and scale (apart from sign if a scale factor is negative).
  • r measures only linear relationships, and correlation does not imply causation.

Spearman's Rank Correlation

  • R = 1 - 6 sum D^2 / (n(n^2 - 1)), where D is the difference between the paired ranks.
  • Used for ranked or qualitative data such as beauty or intelligence.
  • Tied ranks: give each tied item the average of the ranks it would occupy, and add (m^3 - m)/12 to sum D^2 for each tie group of size m.
  • R also lies between -1 and +1.

Key terms

Correlation
The degree of association between two variables.
Covariance
The average product of deviations from the respective means.
Rank correlation
Correlation computed from the ranks of observations rather than their actual values.
Tied ranks
Equal values that are assigned the average of the ranks they would occupy.

Takeaways

  • r = Cov(X,Y)/(SDx x SDy), with -1 <= r <= 1.
  • Spearman R = 1 - 6 sum D^2/(n(n^2 - 1)).
  • Use Spearman's method for ranked or qualitative data, and Pearson's method for quantitative linear data.
Contribute

Was this lesson helpful?

We read every rating and fix the weakest lessons first.