Suppose that you want to create a function that receives the…
Suppose that you want to create a function that receives the weights, the expected return on risky assets, and the covariance matrix between the assets, and returns the annualized portfolio volatility and expected return. def ER_SD(TO BE FILLED): ERp = w @ ER * 100 * 252 SDp = np.array(np.sqrt(w @ Cov @ w)) * 100 * np.sqrt(252) return SDp, ERpWhat should we substitute TO BE FILLED for in order to achieve the desired result?