Ask HN: Need help with correlation [Finance]
If you look at the map you will notice 11 key areas: Health care, Consumer Cyclicals, Financial Technology, Energy, Capital Goods, Telecom, Utilities, Basic Materials, Transport and Consumer Staples.
Each key area has certain number of core companies. How do I find the correlation between those areas?
[If we have two stocks S and T whose correlation has to be find, then cor(S,T) = sigma (( S(i) - SA) (T(i) - TA)) / (sigmassigmatn)
S(i) & T(i) are closing prices of the stock on the ith day, SA & TA are the mean prices of the stocks, sigmas = standard deviation of S, sigmat = standard deviation of T and n is the number of the days over which the correlation is to be found - Grabbed from a research paper]
Can above info be extended to find the correlation between those 11 key areas? If so, how?
Thank you for your thoughts!
7 comments
[ 2.7 ms ] story [ 19.3 ms ] threadEdit: What are you looking to do with the correlation? As a technical indicator, it can be interesting to see when markets diverge/converge in price. Is this what you're after?
Also, what you call a key area is referred to as a "sector" in investing. There are many ETF managers that try to track the various sectors, though your easiest bet might be the Sector SPDRs. Their webpage already has a correlation tool if you just want to use theirs:
http://www.sectorspdr.com/correlation/
Simply enter one of their ETFs (eg. "XLF") and look at the correlation of the other Sector SPDRs.
Basically, if you haven't done this kind of stuff before, this not the type of strategy you should start with.