Presentation is loading. Please wait.

Presentation is loading. Please wait.

Karl’s Pearson Correlation

Similar presentations


Presentation on theme: "Karl’s Pearson Correlation"— Presentation transcript:

1 Karl’s Pearson Correlation
Dr. Anshul Singh Thapa

2 Karl’s Pearson Correlation
This is also known as product moment correlation and simple correlation coefficient. It gives a precise numerical value of the degree of linear relationship between two variables X and Y. The linear relationship may be given by Y = a + bX This type of relation may be described by a straight line. The intercept that the line makes on the Y-axis is given by a and the slope of the line is given by b. It gives the change in the value of Y for very small change in the value of X. On the other hand, if the relation cannot be represented by a straight line as in Y = X2 the value of the coefficient will be zero. It clearly shows that zero correlation need not mean absence of any type of relation between the two variables. Let X1, X2, ..., XN be N values of X and Y1, Y2 ,..., YN be the corresponding values of Y. In the subsequent presentations the subscripts indicating the unit are dropped for the sake of simplicity. The arithmetic means of X and Y are defined as

3 Karl’s Pearson Correlation
The Pearson’s Correlation coefficient is usually calculated for two continuous variables. If either or both the variables are not continuous than some other statistical procedure are to be used. Understanding product moment correlation requires understanding of mean, variance and covariance.

4 Mean: Mean of variable X and variable Y have to be calculated separately. Mean of variable is sum of scores divided by the number of observations. Variance: The variance of variable X and variable Y have to be calculated separately. The variance of the variable is the sum of squares of the deviations of ach score from the mean and divided by number of observation. Covariance: the covariance is the number that indicates the association between the two variables. To compute covariance, deviation of each score of the variable from its mean and deviation of each score of the variable from its mean is initially calculated. Then product of these deviations are obtained. Then, these products are summated. This sum gives the numerator for covariance. Divide this sum by the number of observation. The resulting value is covariance.

5 Example No. of years of schooling of farmers X
Annual yield per acre in, 000 (Rs) Y 4 2 6 10 8 12 7

6 Mean (X) Variance (Y) Covariance (XY) Education X (X - X) (X - X)2 Annual Yield Y (Y - Y) (Y – Y)2 -6 36 4 -3 9 18 2 -4 16 12 -2 6 -1 1 10 3 8 7 ΣX = 42 Σ(X - X)2 = 112 ΣY = 49 Σ(Y – Y)2 = 38 Σ(X - X) (Y - Y) = 42

7 Where ; ΣX = sum of all x scores ΣY = sum of all y scores ΣX2= sum of squared of all x scores ΣY2 = sum of squared of all y scores ΣXY = sum of multiplication of each x score by the corresponding y score

8 No. of years of schooling of farmers X
Annual yield per acre in, 000 (Rs) Y 4 2 6 10 8 12 7

9 X Y X2 4 2 6 16 10 36 8 64 100 12 7 144

10 X Y X2 Y2 4 16 2 6 36 10 100 8 64 12 7 144 49

11 X Y X2 Y2 XY 4 16 2 8 6 36 24 10 100 60 64 80 12 7 144 49 84

12 X Y X2 Y2 XY 4 16 2 8 6 36 24 10 100 60 64 80 12 7 144 49 84 ΣX = 42 ΣY = 49 ΣX2 = 364 ΣY2 = 381 ΣXY = 336

13 Calculate Correlation of Coefficient
X Y 6 3 8 2 5 4 7 9 r =

14 Calculate Correlation of Coefficient
X Y 1 5 6 7 8 9 10 12 r = 0.929


Download ppt "Karl’s Pearson Correlation"

Similar presentations


Ads by Google