Statistical Analysis

Analyzing stock data in the S&P 500 using the Modern Portfolio Theory


1/ Correlation Matrix

Covariance Matrix Visualization

  • As seen from the matrix, stocks like JPM & BRK-B are highly positively correlated with each other (0.98) => their prices move together, can increase portfolio risk if held in one portfolio.
  • On the other hand, JPM & PG have the lowest and negative correlation (-0.68) => they prices move oppositely, helping to diversify and reduce overall volatility in portfolio.

  • 2/ Efficient Frontier

    Efficient Frontier Visualization

  • X-axis (Risk): Measured by standard deviation of returns; higher standard deviation = higher variability
  • Y-axis (Return): The expected (or average) annual return of the portfolio.
  • Each dot in the scatter plot is a unique portfolio. Each portfolio is a combination of some of the 502 stocks in the S&P500.
  • The efficient frontier is the outer boundary of this plot, featuring portfolios that maximize return for a given level of risk, or minimize risk for a given level of return.