[Tutor] correlation matrix

Beanan O Loughlin beanan2 at hotmail.com
Sat Jul 21 14:26:44 CEST 2007


hi all,

I am new to python, and indeed to programming, but i have a question 
regarding correlation matrices.

If i have a column vector

x=[1;2;3;4;5]

and its transpose row vector

xt=[1,2,3,4,5]

is there a simple way in python to create a 5x5 correlation matrix, 
obviously symmetric and having 1's on the diagonal?

Thank you very much in advance,

B.

_________________________________________________________________
Get the ultimate real-time chat experience - Windows Live Messenger! 
http://get.live.com/en-ie/messenger/overview



More information about the Tutor mailing list