How do you compare 2 correlation matrices?

조회 수: 4 (최근 30일)
Imraan
Imraan 2011년 8월 23일
Hi,
I have 7 correlation matrices, and would like to see which correlation matrix (1 to 6) is most similar to correlation matrix 7. The correlation matrices are 63 x 63 matrices. I used "corrcoef" to create them, so i do have the underlying data
Thanks for your help
I have the following toolboxes in matlab:
Curve Fitting Toolbox
Database Toolbox
Datafeed Toolbox
Financial Toolbox
Optimization Toolbox
Parallel Computing Toolbox
Parallel Computing Toolbox
Spreadsheet Link EX
Statistics Toolbox
  댓글 수: 2
the cyclist
the cyclist 2011년 8월 23일
Do you have a definition in your head of what you mean by "most similar"? If so, then is it a mathematical definition, a firm conceptual definition, or a hazy conceptual definition?
Sean de Wolski
Sean de Wolski 2011년 8월 23일
Agree with the cyclist. Define most similar? minimum absolute difference?
[junk idx] = min(sum(sum(abs(bsxfun(@minus,corrmat3d,corrmat_care_about)),1),2))

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by