I try to understand and visualize myself covariance matrix. Supposing I have a matrix A = [ 2 3 4; 5 5 6 ], how do I calculate its covariance matrix, and what is its practical meaning? (All I was able to understand by now is that on the diagonal of the covariance matrix, variances for particular variables are placed, and on the upper and lower fields correlations between those variables.)
- 101
2 Answers
The off diagonal entries are typically covariances rather than correlations. The practical meaning depends on the context. In the most simple case it is just a table summarizing the variation within variables and the strength of the bivariate linear association between variables. For some models (e.g. SEM or LISREL models) the covariance matrix contains all the information necessary to estimate it.
- 21,005
If you have a vector of random variables $X = (X_1,...,X_n)^T$, the co-variance matrix $\Sigma$ can be calculated finding the pairwise co-variance of each of the variables. E.g. $\Sigma_{ij} = Cov(X_i,X_j)$.
So, like you say, along the diagonals you have $\Sigma_{ii} = Cov(X_i, X_i)=Var(X_i)$ and the upper and lower have the co-variance for each pair of variables. The co-variance is numerically describing how each of the variables vary with each other.
I am not sure what you mean by finding the co-variance of a matrix. Perhaps you desire the co-variance matrix between two column vectors?
- 11
A, so it's impossible to tell what you're asking. Could you clarify? – whuber Apr 16 '13 at 15:31