covariance
#probability #statistics
Definition
The covariance of two random variables and is defined by:
or equivalently,
Note that variance is a special case:
General rules
Sample covariance matrix
for a sample of data on random variables we may define the sample covariance matrix as a -by- matrix where
with as estimate of covariance between -th and -th variables underlying the data; we may also write
Notes
- intuitively, is a "measure of the joint variability of two random variables"
- the sample covariance is an unbiased estimate of the covariance matrix
- see also: sample mean (c.f. mean)
See also
References:
- https://cs229.stanford.edu/section/cs229-prob.pdf
- https://www.randomservices.org/random/expect/Covariance.html
- V. M. Panaretos, Statistics for Mathematicians. in Compact Textbooks in Mathematics. Cham: Springer International Publishing, 2016. doi: 10.1007/978-3-319-28341-8. p. 158.
- https://en.wikipedia.org/wiki/Covariance
- https://en.wikipedia.org/wiki/Sample_mean_and_covariance