1. Covariance and the correlation coefficient
For pairs with means , the covariance is
Its sign shows the direction of the linear trend, but its size depends on units. Dividing by the standard deviations gives Karl Pearson's correlation coefficient
Key properties
- . only when all points lie on one straight line.
- has no units. It is unchanged by a change of origin and scale: if and , then when have the same sign, and when they have opposite signs.
- measures only linear association. means uncorrelated, not independent. Points on a parabola , with symmetric about 0, give .
- is not "twice as strong" as ; compare instead (see regression).
For the 1/n versus 1/(n-1) question: use the same divisor in covariance and variances and it cancels in .