Create a Correlation Table

Correlation tables are one way of visualizing the correlation between different measures. The correlation table here uses stock prices of the members of the Dow Jones Industrial Average and is also color coded, with higher levels of correlation appearing in warmer colors.

    
Get the members of the Dow Jones Industrial Average:
In[3]:=
Click for copyable input
Out[3]=
Get monthly prices for the last 10 members for the last decade:
In[4]:=
Click for copyable input
Find the correlation matrix:
In[5]:=
Click for copyable input
Create the correlation table by overlaying Grid over ArrayPlot with control over ImageSize:
In[14]:=
Click for copyable input
Out[14]=
New to Mathematica? Find your learning path »
Have a question? Ask support »