Professional Documents
Culture Documents
PrachiSharma V21078 Assignment2
PrachiSharma V21078 Assignment2
Assignment 2
Following are the inferences I have made from the results obtained and are correct up to the best of my knowledge.
For the portfolio, I have chosen three stocks from NIFTY 50, namely, HDFCBANK (Banking), ONGC (Oil & Gas), and
TCS (Technology). I have downloaded monthly stock price data of these three stocks from April 2017 to March 2022.
1
671290952.docx
Next, I have randomly generated 10000 weight vectors of length 3 and scaled each vector to satisfy
i=3
∑ wi=1
i=1
w w2 w3
^ =( i=3 1
w i=3 i=3
)
∑ wi ∑ wi ∑ w i
i=1 i=1 i=1
Next, we will form Variance-Covariance Matrix (C) for our stock data of each stock.
Finally, we will calculate portfolio risk associated with each weight vector by the formula:
2 t
^ Cw
σ =w ^
To calculate expected return of each stock, we find mean for 5*12=60 return values of each stock data.
Finally, we calculate expected portfolio return associated with each weight vector by the formula:
μ=mt w
^
2
671290952.docx