Covariance, a 2x2 matrix?
Mostrar comentarios más antiguos
Hello,
I calculated the covariance between two sets of data (2 columns of data). And I got a 2x2 covariance matrix (see picture). But what is the covariance now? I thought that it would be just 1 number?...
2 comentarios
Azzi Abdelmalek
el 12 de Jun. de 2015
You don't need to post a picture, just paste your code
Sam
el 13 de Jun. de 2015
Respuestas (1)
James Tursa
el 12 de Jun. de 2015
Editada: James Tursa
el 12 de Jun. de 2015
0 votos
The nancov function assumes you have two variables because you have two columns of data, so it returns a 2x2 covariance matrix. The diagonal containing the variances of the variables and the off diagonals containing the covariances between the variables.
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!