Correlating stock returns in python


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.


Access restricted

Subscribe to premium account to see the solution.

Get premium now