Professional Documents
Culture Documents
Financial Modelling
Financial Modelling
For 1.6;
For 2.5: Create column “BAC below VaR” with if function and another column “C below VaR”
To get the probability; Sum both colums; if it’s 0 or 1 it means that one of the two stocks is below
vaR. We want the value to be 2.
For 2.6: Create columns for each stock, including DJI, where they are tested if below VaR (like
previous question).
Create another column “sum” that sums all stocks except DJI.
ASSIGMENT 2
SAMPLE EXAM
Exercise MeanVariance in class.
1. To build the opportunity set, we can assign three rand() columns to represent each asset class,
as long as the sum is 1.
Now get the variance using the weights and covariance matrix given
For the second one, fix volatility, maximize return and change weights.
Plot the efficient froniter using the volatility and expected return columns with volatility in X and
returns in Y
Workshop 2
In order to build the efficient frontier of the tangency portfolio, we need to use lambda