You are on page 1of 1

X,Y: m(x): m(y): s(x): s(y): c(x,y): r:

Random variables Mean of X Mean of Y Standard deviation of X Standard deviation of Y Covariance between X and Y Correlation coefficient between X and Y, -1r1

Given a sample of n observations for X and Y, we can compute: m(x) = S X(i) / n for i from 1 to n. m(y) = S Y(i) / n for i from 1 to n. s(x) = S [X(i)-m(x)] / (n-1) for i from 1 to n. s(y) = S [Y(i)-m(y)] / (n-1) for i from 1 to n. c(x,y) = S [X(i)-m(x)][Y(i)-m(y)] / (n-1) for i from 1 to n. Then the correlation between X and Y can be estimated as r = c(x,y) / [s(x)s(y)]

You might also like