开始使用免费开始使用

GMV 组合

全球最小波动率组合(global minimum volatility,简称 GMV 组合)是在给定风险水平下标准差(风险)最低且回报最高的投资组合。

收益很难预测,但波动率和相关性往往随时间更稳定。这意味着,尽管 MSR 组合在样本内通常表现更优,GMV 组合在样本外往往能跑赢 MSR 组合。当然,在金融领域,真正重要的是样本外的结果。

本练习是课程的一部分

Python 投资组合风险管理入门

查看课程

练习说明

  • RandomPortfolios 按波动率值从低到高排序(升序排名)。
  • GMV_weights_array 按行与 StockReturns 相乘,得到加权后的股票收益。
  • 最后,查看随时间累计收益的图表。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Sort the portfolios by volatility
sorted_portfolios = RandomPortfolios.sort_values(by=['____'], ascending=____)

# Extract the corresponding weights
GMV_weights = sorted_portfolios.iloc[0, 0:numstocks]

# Cast the GMV weights as a numpy array
GMV_weights_array = np.array(GMV_weights)

# Calculate the GMV portfolio returns
StockReturns['Portfolio_GMV'] = StockReturns.iloc[:, 0:numstocks].mul(____, axis=1).sum(axis=1)

# Plot the cumulative returns
cumulative_returns_plot(['Portfolio_EW', 'Portfolio_MCap', 'Portfolio_MSR', 'Portfolio_GMV'])
编辑并运行代码