Scatter plot correlation coefficient

1 reply · 1K views · last reply
kidsasd987
Messages
142
Reaction score
4
Handwritten-style derivation of the correlation coefficient r = cov(x,y)/(σx σy), showing the condition r = 1 implies cov(x,y) = σx σy, followed by sum expressions over i and j with a final condition that the cross sum for i ≠ j equals 0, ending with R.H.S = L.H.S.
how can I interpret the condition "if sum of (xi-x_bar)^2(yj-y_bar)^2=0 when i=/=j?"

why does this make the line linear?
 
Since each term is squared, it is positive definite. So for the entire sum to be equal to 0, each individual term has to be 0. Does that help?