WEBVTT

00:00.900 --> 00:06.450
Welcome to cloning exercise 60 and we are here to at their sport and our exercise this file is still

00:06.450 --> 00:13.320
on the desktop and the Serbian part to financial data analysis.

00:13.470 --> 00:17.700
And here we select the top of the notebook for coding exercise 16

00:21.100 --> 00:27.790
and coding exercise 16 is all about the application of modern portfolio theory and asset pricing.

00:27.970 --> 00:34.630
So let's have a look here first of all you have to import the data sets the U.S. stocks with six single

00:34.630 --> 00:41.700
stocks and the S&amp;P 500 Total Return and you chose to select a five year period.

00:41.830 --> 00:51.190
And finally you should at the price data of the S&amp;P 500 index to the data frame with the six stocks.

00:51.190 --> 00:57.090
So you should create the adjusted net column market portfolio so the S&amp;P 500 is here.

00:57.100 --> 00:59.440
The market portfolio the applicable.

01:00.010 --> 01:05.260
And then you are asked to calculate the simple daily returns for the six stocks and the market portfolio

01:05.620 --> 01:09.340
and calculate annualized the risk and return.

01:09.340 --> 01:14.980
And also here you can use a user defined function annualized the risk and return.

01:15.010 --> 01:20.650
And again you should assume that the risk return is one point seven percent.

01:21.250 --> 01:27.050
And with this you can calculate the following metrics for the six stocks and for the market portfolio.

01:27.130 --> 01:34.360
So the sharp ratio then the total risk and variance units and the annualized covariance matrix and also

01:34.360 --> 01:41.390
systematic risk and systematic risk beta and then the required return as per the cap M model.

01:41.920 --> 01:44.040
And finally also the alpha.

01:44.560 --> 01:49.750
And then you're asked to visualize systematic risk and and systematic risk for stocks and the market

01:49.750 --> 01:51.420
portfolio in a bar chart.

01:52.150 --> 01:58.910
And the question is which company most likely showed the highest portion of company specific risk.

01:58.960 --> 02:03.010
That can be diversified away in the market portfolio.

02:03.010 --> 02:09.520
And finally you should also visualize these security market line and determine the stocks that underperformed

02:09.550 --> 02:14.260
and over performed the market in terms of systematic risk return.

02:14.680 --> 02:23.080
So in a cap and framework and also you can find that guided and instructed option and also the hint

02:23.080 --> 02:30.570
section at the very end so that's the coding exercise 60 and I hope you have fun and feel free to have

02:30.570 --> 02:34.380
a look at these solutions notebook and solutions video by.
