How do you compare 2 correlation matrices?

4 vues (au cours des 30 derniers jours)
Imraan
Imraan le 23 Août 2011
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 commentaires
the cyclist
the cyclist le 23 Août 2011
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 le 23 Août 2011
Agree with the cyclist. Define most similar? minimum absolute difference?
[junk idx] = min(sum(sum(abs(bsxfun(@minus,corrmat3d,corrmat_care_about)),1),2))

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by