Diversification is a way for investors to reduce investment risk. The asset values within a well-diversified portfolio do not move up and down in perfect synchrony. Find members of the Dow Jones Industrial Average whose returns tend to move in sync.
Build a correlation matrix between stocks.
In[1]:=
X
Out[1]=
Build a graph with edges between stocks with correlation coefficient greater than .
In[2]:=
X
In[3]:=
X
Out[3]=
A largest group of stocks that tend to move in sync.