Why covariance matrix is computed like this?
Mostrar comentarios más antiguos
Hi, all
I know am asking a quite fundamental question, but I really can't remember the answer that my teacher taught me in class.
Let A be a matrix has m rows and n columns, the covariance matrix C is computed as follows
C = (AT)(A)/(m-1)
where (AT) is the transpose of A.
My question is, why it is divided by (m-1)? I remember it also can be divided by m, and it is all about sample size or something....
Can anyone help me to answer this question? Many thanks for your kindly help.
Best regards Wenlong
1 comentario
Walter Roberson
el 31 de Ag. de 2012
I believe it is a "degrees of freedom" issue.
Respuestas (1)
Ilya
el 31 de Ag. de 2012
0 votos
m-1 in the denominator gives the unbiased estimate, and m gives the max likelihood estimate.
Categorías
Más información sobre Resizing and Reshaping Matrices 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!