Correlating stock returns in python

Question

You are given the following dataset, containing closing stock prices for a number of large publicly traded companies. Using this, find the Pearson correlation coefficient for the returns of each pair of equities, and plot a correlation matrix.

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now