Hi folks

I was wondering if someone could please check this correlation task and see if I have done it correctly. The correlation is between age and salary. Many thanks.

Printable View

- Mar 13th 2013, 01:27 AMAndrew187Correlation
Hi folks

I was wondering if someone could please check this correlation task and see if I have done it correctly. The correlation is between age and salary. Many thanks. - Mar 13th 2013, 07:38 PMchiroRe: Correlation
Hey Andrew187.

Your answer is correct if the calculations are correct, but in terms of your answer, you should calculate the real correlation from your mean outputs where corr(x,y) = cov(x,y)/SQRT(var(x)var(y)). Since your cov(x,y) > 0 you do have positive correlation (since 789 > 34*11).

Use the formula Var[X] = E[x^2] - E[x]^2 and cov(x,y) = E[xy] - E[x]e[y]