Problem while using covariance function cov()

조회 수: 2 (최근 30일)
Anuja Srivastava
Anuja Srivastava 2015년 7월 26일
댓글: Anuja Srivastava 2015년 7월 30일
hello, I am new to matlab and image processing so I have a quite basic query. I read somewhere that covariance matrix can be calculate as d*d' (where d is a matrix of size 1x81920). but matlab also has an inbuilt func. cov() to find covariance matrix. So my question is how to decide which one to use? (As both of them are giving different answers)and what is the main difference between two of them?
  댓글 수: 2
Jon
Jon 2015년 7월 26일
Which you use depends on which definition of covariance you wish to employ. Matalb's documentation for the cov() function clearly writes how it computes covariance. The signals' means are removed and there is a bias correction factor (1/N-1).
Covariance is a single quantity, not a matrix. You can compute the covariance matrix, which is contains the variances along the diagonal and the covariances where i~=j.
Where did you read about d*d' being covariance? There is no covariance if there is only one signal (just variance).
Anuja Srivastava
Anuja Srivastava 2015년 7월 30일
Thanks Jon for the explanation.. :)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by