主要内容

zbtyield.

从优惠券债券数据给出零曲线引导

描述

example

[滋润,CurveDates] = zbtyield(Bonds,产量Settle)使用Bootstrap方法返回给定零曲线给定优惠券债券及其收益率。

零曲线包括源自输入的理论零优惠键的成熟的收益率Bondsportfolio. The bootstrap method that this function uses doesnotrequire alignment among the cash-flow dates of the bonds in the input portfolio. It uses theoretical par bond arbitrage and yield interpolation to derive all zero rates; specifically, the interest rates for cash flows are determined using linear interpolation. For best results, use a portfolio of at least 30 bonds evenly spaced across the investment horizon.

example

滋润,CurveDates= zbtyield(___,OutputCompounding.)为此添加可选参数OutputCompounding..

例子

全部收缩

给定数据并产生12张优惠券的成熟度,两个具有相同的到期日;并鉴于共同的结算日期。

Bonds = [datenum('6/1/1998')0.0475 100 2 0 0;数据项('7/1/2000')0.06 100 2 0 0;数据项('7/1/2000') 0.09375 100 6 1 0; datenum('6/30/2001')0.05125 100 1 3 1;数据项('4/15/2002') 0.07125 100 4 1 0; datenum('1/15/2000') 0.065 100 2 0 0; datenum('9/1/1999')0.08 100 3 3 0;数据项('4/30/2001')0.05875 100 2 0 0;数据项('11 / 15/199')0.07125 100 2 0 0;数据项('6/30/2000') 0.07 100 2 3 1; datenum('7/1/2001')0.0525 100 2 3 0;数据项('4/30/2002')0.07 100 2 0 0];产量= [0.0616 0.0605 0.0687 0.0615 0.0615 0.060 0 0.060 0.0608 0.060303.0608 0.06555 0.0646 0.06550 0.0646 0.0655 0.0646 0.06030303030]settr = datenum('12 / 18/197');

为零曲线设定半轴复合。

OutputCompounding = 2;

执行功能zbtyield.它在成熟日期返回零曲线。请注意两个债券的平均零率,与相同的成熟日期。

[ZeroRates, CurveDates] = zbtyield(Bonds, Yields, Settle,...OutputCompounding.)
Zerorates =11×10.0616 0.0603 0.0657 0.0590 0.0649 0.0650 0.0606 0.0611 0.0643 0.0614 ⋮
CurveDates =11×1729907 730364 730439 730500 730667 730668 730971 731032 731033 731321 ⋮

Given data and yields to maturity for 12 coupon bonds (two with the same maturity date), and given the common settlement date, compute the zero curve using约会时间inputs.

Bonds = [datenum('6/1/1998')0.0475 100 2 0 0;数据项('7/1/2000')0.06 100 2 0 0;数据项('7/1/2000') 0.09375 100 6 1 0; datenum('6/30/2001')0.05125 100 1 3 1;数据项('4/15/2002') 0.07125 100 4 1 0; datenum('1/15/2000') 0.065 100 2 0 0; datenum('9/1/1999')0.08 100 3 3 0;数据项('4/30/2001')0.05875 100 2 0 0;数据项('11 / 15/199')0.07125 100 2 0 0;数据项('6/30/2000') 0.07 100 2 3 1; datenum('7/1/2001')0.0525 100 2 3 0;数据项('4/30/2002')0.07 100 2 0 0];产量= [0.0616 0.0605 0.0687 0.0615 0.0615 0.060 0 0.060 0.0608 0.060303.0608 0.06555 0.0646 0.06550 0.0646 0.0655 0.0646 0.06030303030]settr = datenum('12 / 18/197');OutputCompounding = 2;t = Array2table(绑定,'VariableNames',{'Maturity','CouponRate','面对','Period','基础','EndMonthRule'}); disp(t)
到期优惠券比例Face Period Basis EndMonthRule __________ __________ ____ ______ _____ ____________ 7.2991e+05 0.0475 100 2 0 0 7.3067e+05 0.06 100 2 0 0 7.3067e+05 0.09375 100 6 1 0 7.3103e+05 0.05125 100 1 3 1 7.3132e+05 0.07125 100 4 1 0 7.305e+05 0.065 100 2 0 0 7.3036e+05 0.08 100 3 3 0 7.3097e+05 0.05875 100 2 0 0 7.3044e+05 0.07125 100 2 0 0 7.3067e+05 0.07 100 2 3 1 7.3103e+05 0.0525 100 2 3 0 7.3134e+05 0.07 100 2 0 0
t.maturity = dateTime(t.maturity,'vectormfrom','datenum','Locale','en_US');Settle = datetime(Settle,'vectormfrom','datenum','Locale','en_US');[Zerorates,曲面] = zbtyield(t,产量,沉降,...OutputCompounding.)
Zerorates =11×10.0616 0.0603 0.0657 0.0590 0.0649 0.0650 0.0606 0.0611 0.0643 0.0614 ⋮
CurveDates =11x1 datetime01-Jun-1998 01-Sep-1999 15-Nov-1999 15-Jan-2000 30-Jun-2000 01-Jul-2000 30-Apr-2001 30-Jun-2001 01-Jul-2001 15-Apr-2002 30-Apr-2002

采用zbtyield.to compute the real zero rates from the real yields of inflation-linked bonds.

% Load the dataloadusbond_02Sep2008settr = datenum('02-Sep-2008');

计算实际产量,然后计算真正的零率。

Reawelyields = Bndyield(Tipsprice,Tips Coupon,Sollat​​,提示atturity);提示字体= [提示暗淡提示Coupon];[展览,曲线] = zbtyield(提示字,重新曝光,定居)
展览会=26×10.0069 0.0094 0.0092 0.0111 0.0110 0.0119 0.0116 0.0128 0.0126 0.0136 ⋮
CurveDates =26×1734153 734243 734518 734974 735065 7358777 735065 73506 735339 735430 735430 735430 735430 735614 73566

输入参数

全部收缩

优惠券键信息要生成零曲线,指定为6列表或an-通过-2ton-通过-6matrix of bond information, where the table columns or matrix columns contains:

  • 到期(第1列,必填项)债券的到期日,作为序列日期。采用数据将日期字符向量转换为串行日期编号。如果输入Bonds是一张桌子,到期日期可以是串行日期编号,日期字符向量或DateTime数组。

  • 优惠券比例(Column 2, Required) Decimal fraction indicating the coupon rate of the bond.

  • Face(第3列,可选)债券的赎回或面值。默认=100.

  • (Column 4, Optional) Coupons per year of the bond. Allowed values are0,1,2(default),3,4,6,和12.

  • 基础(Column 5, Optional) Day-count basis of the bond. A vector of integers.

    • 0 =实际/实际(默认)

    • 1 = 30/360 (SIA)

    • 2 =实际/ 360

    • 3 = actual/365

    • 4 = 30/360 (BMA)

    • 5 = 30/360 (ISDA)

    • 6 = 30/360 (European)

    • 7 =实际/ 365(日语)

    • 8 = actual/actual (ICMA)

    • 9 =实际/ 360(ICMA)

    • 10 =实际/ 365(ICMA)

    • 11 = 30/360e(ICMA)

    • 12 = actual/365 (ISDA)

    • 13 = BUS/252

    • 有关更多信息,请参阅基础.

  • 终止(Column 6, Optional) End-of-month rule. This rule applies only when到期is an end-of-month date for a month having 30 or fewer days.0= ignore rule, meaning that a bond's coupon payment date is always the same numerical day of the month.1=设置规则(默认),这意味着债券的优惠券付款日期始终是本月的最后一个实际日期

:

Note

  • 如果Bonds是一张桌子,到期日期可以是串行日期编号,日期字符向量或DateTime数组。

  • 如果Bonds是一个矩阵,是一个n-通过-2ton-通过-6每行描述键的矩阵,前两列(到期and优惠券比例) are required. The remainder of the columns are optional but must be added in order. All rows inBonds必须具有相同数量的列。

.

数据类型:|

产量达到每个债券的成熟度Bonds,指定为aN-通过-1column vector. The number of rows (n) must match the number of rows inBonds.

Note

Yield to maturity must be compounded semiannually.

数据类型:

结算日期表示零曲线的推导中的时间零,指定为序列日期号,日期字符向量或DateTime数组。Settle表示导出零曲线的时间零,通常是所有键的通用结算日期。

数据类型:|char|约会时间

(Optional) Compounding frequency of output滋润, specified using the allowed values:

  • 0— Simple interest (no compounding)

  • 1- 年度复合

  • 2— Semiannual compounding (default)

  • 3— Compounding three times per year

  • 4- 季度复合

  • 6- 双月复合

  • 12- 每月复合

  • -1- 连续复合

数据类型:

Output Arguments

全部收缩

沿着到期日定义的投资地平线的每个点隐含零率,作为一个m-通过-1十进制部分矢量在哪里m是具有独特成熟日期的债券数量。在汇总,利率滋润构成零曲线。

如果more than one bond has the same到期日期,zbtyield.returns the mean zero rate for that到期. Any rates before the first到期are assumed to be equal to the rate at the first到期, that is, the curve is assumed to be flat before the first到期.

与之相当的成熟日期滋润, returned as am-通过-1独特成熟日期的矢量,在哪里mis the number of bonds of different maturity dates. These dates begin with the earliest到期日期和最终结束到期日期在Bonds表or matrix.

如果是输入BondsorSettle那时有DateTime值CurveDatesCurveDatesis datetimes. OtherwiseCurveDates是序列日序。

References

[1] Fabozzi, Frank J. “The Structure of Interest Rates.” Ch. 6 in Fabozzi, Frank J. and T. Dessa Fabozzi, eds.固定收益证券的手册。4th ed. New York, Irwin Professional Publishing, 1995.

[2] McEnally, Richard W. and James V. Jordan. “The Term Structure of Interest Rates.” in Ch. 37 in Fabozzi and Fabozzi,同i

[3] Das, Satyajit. “Calculating Zero Coupon Rates.” inSwap and Derivative Financing.Appendix to Ch. 8, pp. 219–225. New York, Irwin Professional Publishing, 1994.

在R2006A之前介绍