题目
题目
单项选择题

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道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

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