Page 1 of 1
Correlation
Posted: Wed Aug 25, 2010 11:48 am
by mr.interested
Hello,
I'm trying to compute a correlation matrix for a number of series, and then take, say, 100 at least correlated series. Is there any way to achieve this? In other words, how can I take names of those 100 series which are at least correlated among the entire sample?
Best
Re: Correlation
Posted: Wed Aug 25, 2010 11:50 am
by EViews Gareth
what does "and then take, say, 100 at least correlated series" mean?
Re: Correlation
Posted: Wed Aug 25, 2010 12:26 pm
by mr.interested
what does "and then take, say, 100 at least correlated series" mean?
OK, so let's say I have 10,000 series + 1 index, and I want to create a portfolio of 100 series which have the lowest correlation with the index. As I understand, I would have to create a correlation matrix, and then take names of 100 series that have the lowest correlation with the index. How can I do that?
Re: Correlation
Posted: Wed Aug 25, 2010 1:13 pm
by EViews Gareth
I think I would loop through them calculating the covariance once at a time, recording the covariances in to a column of a matrix. Then you could sort the matrix and take the top (or bottom) 100.
Re: Correlation
Posted: Thu Aug 26, 2010 5:10 am
by mr.interested
I think I would loop through them calculating the covariance once at a time, recording the covariances in to a column of a matrix. Then you could sort the matrix and take the top (or bottom) 100.
Thank you Gareth.