top of page

The project measures both the individual securities and the portfolio's performance by calculating their Beta and Expected Return using the Capital Asset Pricing Model(CAPM). Furthermore, it plots the Security Market Line(SML) which serves as a graphical representation of the CAPM model, then it determines whether the securities in the portfolio performed well or not.

Importing required libraries:

Screen Shot 2022-09-12 at 16.28.16.png

Calculating annualized risk, returns, beta, and expected return using the CAPM model:

Screen Shot 2022-09-12 at 16.29.35.png

Determining whether the securities are Undervalued or Overvalued based on their beta and expected return:

Screen Shot 2022-09-12 at 16.29.54.png

Defining the function that will return the summary table and the chart:

Screen Shot 2022-09-12 at 16.30.11.png

The summary table where the portfolio performance is measured:

Tickers, timeframe, and weights could be changed as desired.

Screen Shot 2022-09-12 at 16.30.34.png

Final output where the SML and securities are plotted:

Screen Shot 2022-09-12 at 16.13.59.png
bottom of page