Question at position 15 Rather than tracing out the efficient frontier, you decide to calculate the Sharpe ratio-maximizing portfolio directly. You wrote the function to calculate the sharpe ratio of a portfolio given its weights as follows: def sharpe_ratio(w, μ, Σ, rf): r = w.transpose @ μ σ = np.sqrt(w.transpose @ Σ @ w) return (r - rf) / σ You then define an objective function objective(w): def objective(w): return a * sharpe_ratio(w, μ, Σ, rf) and minimize it subject to constraints using scipy.optimize.minimize. Which value of a will allow you to find the Sharpe ratio-maximizing portfolio? rf10You cannot find the maximum Sharpe ratio using the minimize function.-1单项选择题

A

rf

B

1

C

0

D

You cannot find the maximum Sharpe ratio using the minimize function.

E

-1

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!