主要内容

债券的价格和收益率曲线非平行转变

这个例子展示了如何构建一个债券投资组合对冲利率风险的国债到期20年。关键利率持续时间使您能够确定的价格的敏感性债券收益率曲线的非平行变化。这个示例使用bndkrdur构建投资组合对冲利率风险的20年来美国公债到期。

指定键。

解决= datetime (2008、12、2);CouponRate = 5.500/100;成熟= datetime (2028、8、15);价格= 128.68;

这种债券的利率风险对冲与以下四个新发行国债:

Maturity_30 = datetime (2038、5、15);% 30年期公债Coupon_30 = .045;Price_30 = 124.69;Maturity_10 = datetime (2018、11、15);% 10年期Coupon_10 = .0375;Price_10 = 109.35;Maturity_05 = datetime (2013、11、30);% 5年注Coupon_05 = .02点;Price_05 = 101.67;Maturity_02 = datetime (2010、11、30);% 2年期国债Coupon_02 = .01250;Price_02 = 100.72;

你可以得到财政部或零线https://www.treas.gov/offices/domestic-finance/debt-management/interest-rate/yield.shtml:

ZeroDates = daysadd(结算,(30 90 180 360 360 * 360 * 360 * 5360 * 360 360 * 360 * 20 * 30);ZeroRates = ((0.09 0.07 0.44 0.81 0.90 1.16 - 1.71 2.13 - 2.72 3.51 - 3.22) / 100) ';

计算关键利率期限的债券和对冲组合。

BondKRD = bndkrdur(表(ZeroDates ZeroRates)、CouponRate定居,成熟,“keyrates”,2 5 10 20);HedgeMaturity = [Maturity_02; Maturity_05; Maturity_10 Maturity_30);HedgeCoupon = [Coupon_02; Coupon_05; Coupon_10 Coupon_30);HedgeKRD = bndkrdur(表(ZeroDates ZeroRates)、HedgeCouponHedgeMaturity定居,“keyrates”(2 5 10 20))
HedgeKRD =4×41.9675 0 0 0 0.1269 4.6152 0 0 0 0.2229 0.7081 2.1487 14.5172 0.2129 0.7324 7.4010

计算,美元持续时间为每个仪器和每一个关键利率(假设持有100债券)。

PortfolioDD = 100 * * BondKRD价格;HedgeDD = HedgeKRD。* [Price_30; Price_10 Price_05; Price_02]
HedgeDD =4×41030.0139 - 0.5047×0.2453 0 0 0 0 0 0 0.0224 0.0713 0.2164 1.4622 0.0216 0.0745 0.7525

计算债券卖空的数量来获得一个关键利率持续时间0对整个投资组合。

NumBonds = PortfolioDD / HedgeDD
NumBonds =1×43.8973 6.1596 23.0282 80.0522

这些结果表明销售4、6 2 - 23和80年债券分别,5 - 10 -,和30年期公债达到一个投资组合是中性的关于2 -,5 - 10 -,和30年期利率。

另请参阅

||||||||||

相关的话题