Sample Covariance
Covariance measures how two variables vary together: it is positive when they tend to increase together and negative when one rises as the other falls. It is used to compute correlation and regression slopes and in multivariate statistics.
LaTeX
\operatorname{cov}(x,y)=\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar x)(y_i-\bar y)Variables
- paired observations
- sample means
- number of pairs
Example
Find the covariance of and .
- , .
- .
- .
Answer: .