题目
单项选择题
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
查看解析
标准答案
Please login to view
思路分析
We start by restating the scenario and listing the options to analyze them clearly.
Question: You define an objective function objective(w) = a * sharpe_ratio(w, μ, Σ, rf) and minimize it subject to constraints to locate the portfolio that maximizes the Sharpe ratio. The available choices for a are: rf, 1, 0, You cannot find the maximum Sharpe ratio using the minimize function., -1.
Option 1: a = rf. Here, a is a scalar multiplier for the Sharpe ratio, not the risk-free rate itself. Using rf as the multiplier would mix the constant rate into the optimization objective in a way that doesn’t systematically steer the optimizer toward maximizing Sharpe. This choice misinterprets the role of a as a scaling factor rather......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Which statement is (are) false about resampled efficient frontier?
The optimal portfolio on the efficient frontier for a given investor does not depend on_______
Question at position 15 Without imposing no-shorting constraints, you found the tangency portfolio of 3 assets A, B, and C to have weights [0.6, 0.6, -0.2], respectively. What is the most precise thing you can say about the weights of the tangency portfolio once you impose no-shorting constraints?The weights will be [0.5, 0.5, 0.0].The weight on asset C will increase.The weights will remain the same: [0.5, 0.7, -0.2].None of the statements above are necessarily true.The weights on both assets A and B will decrease.
Partners healthcare case: Which is of commodities or real estate improve the risk return profile and the efficient frontier of the investments?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!